1. 安装使用
(1)拷贝对应的安装包,本文使用的是apache-phoenix-4.14.0-cdh5.14.2-bin.tar.gz,解压到你的安装目录,本文的目录为/opt/modules/cdh5.14.2/
(2)将Phoenix安装目录下的phoenix-4.14.0-cdh5.14.2-client.jar拷贝到HBase的lib目录下
(3)将Phoenix安装目录下的phoenix-core-4.14.0-cdh5.14.2.jar 拷贝到HBase的lib目录下
(4)将HBase/conf目录下hbase-site.xml文件覆盖放入Phoenix的bin目录下
安装完成!
2. 启动说明
(1)启动HBase
1. 启动Zookeeper
[fanl@centos7 zookeeper-3.4.5-cdh5.14.2]$ bin/zkServer.sh start
2. 启动HBase
[fanl@centos7 hbase-1.2.0-cdh5.14.2]$ bin/hbase-daemon.sh start master
[fanl@centos7 hbase-1.2.0-cdh5.14.2]$ bin/hbase-daemon.sh start regionServer
[fanl@centos7 cdh5.14.2]$ jps
9808 DataNode
11188 HRegionServer
10997 HMaster
10567 QuorumPeerMain
9675 NameNode
9979 SecondaryNameNode
12188 Jps
(2)启动Phoenix
[fanl@centos7 phoenix-4.14.0-cdh5.14.2]$ bin/sqlline.py centos7:2181
Done
sqlline version 1.2.0
0: jdbc:phoenix:centos7:2181>
3. 操作说明
(1)查看内置命令
0: jdbc:phoenix:centos7:2181> !help
(2)查看已经映射的表
0: jdbc:phoenix:centos7: