Starting Phoenix
About this task
Procedure
-
Optionally, run the following command to identify your Zookeeper quorum:
maprcli node listzookeepers
Example output:centos1:5181,centos2:5181,centos3:5181
-
Navigate to the
phoenix-3.0.0-incubating
directory:cd phoenix-3.0.0-incubating
-
Run the following command, indicating a Zookeeper node, to launch SQLLine:
bin/sqlline.py <hostname>:<port>
For example:bin/sqlline.py centos1:5181
Results
0: jdbc:phoenix:<hostname>:<port>>
Now you can use Phoenix to query and manage HBase tables.