Installing Phoenix

Complete the following steps to install Phoenix:
  1. Download the Phoenix archive file associated with the version that you want to install:
  2. Run the following command to extract the content of the archive file to a directory:
    tar -xf phoenix-<version>-incubating.tar.gz
  3. Add the phoenix-<version>-incubating-client-minimal.jar and the phoenix-core-<version>-incubating.jar files to the classpath of every HBase region server. For example, navigate to the directory where you extracted phoenix-3.0.0-incubating.tar.gz, and copy the phoenix-core-3.0.0-incubating.jar and phoenix-core-3.0.0-incubating.jar into the /opt/mapr/hbase/hbase-<version>/lib directory.
    Note: The phoenix-core-3.0.0-incubating.jar and phoenix-core-3.0.0-incubating.jar files are located in phoenix-3.0.0-incubating/common.
  4. Run the following command to restart all of the HBase region servers:
    maprcli node services -hbregionserver restart -nodes <hostname>
  5. Optionally, you can run the following command to verify that the Phoenix JARs were copied to the HBase classpath:
    hbase classpath | grep 'phoenix'
  6. 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:
Now you can start Phoenix.