Installing Phoenix
About this task
Procedure
- Download the Phoenix archive file associated with the version that you want to install: http://phoenix.apache.org/download.html
-
Run the following command to extract the content of the archive file to a directory:
tar -xf phoenix-<version>-incubating.tar.gz
-
Add the
phoenix-<version>-incubating-client-minimal.jar
and thephoenix-core-<version>-incubating.jar
files to the classpath of every HBase region server. For example, navigate to the directory where you extractedphoenix-3.0.0-incubating.tar.gz
, and copy thephoenix-core-3.0.0-incubating.jar
andphoenix-core-3.0.0-incubating.jar
into the/opt/mapr/hbase/hbase-<version>/lib
directory.NOTE: Thephoenix-core-3.0.0-incubating.jar
andphoenix-core-3.0.0-incubating.jar
files are located inphoenix-3.0.0-incubating/common
. -
Run the following command to restart all of the HBase region servers:
maprcli node services -hbregionserver restart -nodes <hostname>
-
Optionally, you can run the following command to verify that the Phoenix JARs were
copied to the HBase classpath:
hbase classpath | grep 'phoenix'
-
On client-only nodes, add the
phoenix-<version>-incubating-client.jar
to the classpath of the Phoenix client (only for use with Hadoop 1.x). For example, copy the JAR from the following directory:<phoenix installation directory>/phoenix-<version>-incubating/hadoop-1/phoenix-<version>-incubating-client.jar
to this directory:/opt/mapr/hadoop/hadoop-<version>/lib