1. Description
This article mainly introduces the installation and deployment of Phoenix. The system environment is as follows: Centos-6.4 (64-bit) jdk-1.7.0_75 hadoop-2.5.0-cdh5.2.0 zookeeper-3.4.5-cdh5.2.0 hbase-0.98.6-cdh5.2.0 solr-4.4.0-cdh5.2.0 hbase-solr-1.5-cdh5.2.0 sqoop-1.4.5-cdh5.2.0 sqoop2-1.99.3-cdh5.2.0 Hive-0.13.1-cdh5.2.0 flume-ng-1.5.0-cdh5.2.0
2. Download
Download the installation package from the official website
Http://phoenix.apache.org/download.html
It is important to note the compatibility of different versions of Phoenix with HBase
I am currently using the HBase version of hbase-0.98.6-cdh5.2.0, so download the phoenix4.x
http://apache.fayea.com/phoenix/
The above download address is the mirror address, if not available, you can select a different mirror address from the download
http://www.apache.org/dyn/closer.cgi/incubator/phoenix/
3. Installation
Installation Process Reference website link
Http://phoenix.apache.org/installation.html
3.1 Upload Deployment
Upload phoenix-4.2.2-bin.tar.gz to server decompression rename to phoenix-4.2.2,"Phoenix_home" to "/usr/local/cdh-5.2.0/ phoenix-4.2.2 "
3.2 Copy jar package
Add the Phoenix-[version]-server.jar under the "Phoenix_home" directory to the Lib directory of all regionserver nodes of the HBase cluster (use phoenix-core-[ Version].jar for Phoenix 3.x), and then restart the HBase cluster.
3.3 Connecting HBase
Enter the "Phoenix_home/bin" directory to launch the client into the CLI interface and execute the following command to connect the HBase cluster.
$./sqlline.py 192.168.187.128,192.168.187.129,192.168.187.130:2181
High-energy warning: The 192.168.187.128,192.168.187.129,192.168.187.130 parameter here is the IP address of the HBase cluster zookeeper cluster, and 2181 is the zookeeper port number.
View all current Tables
>!tables
High-energy warning: CATALOG, SEQUENCE, stats these three tables are the system's own table. Tables that already exist in HBase do not automatically map, and you need to manually create a data table of the same result, as you'll know later in the process.
See if you have the same three more tables from the CLI interface of HBase
> List
The installation was successful.