Index of /apache/phoenix (cnnic.cn)
2.解压[atguigu@hadoop100 module]$ tar -zxvf apache-phoenix-5.0.0-Hbase-2.0-bin.tar.gz -C /opt/module/[atguigu@hadoop100 module]$ mv apache-phoenix-5.0.0-Hbase-2.0-bin phoenix
3.修改配置文件将phoenix/目录下 phoenix-5.0.0-Hbase-2.0-server.jar拷贝到各个 Hbase 的 lib目录中(每个节点都要放)
[atguigu@hadoop102 ~]$ cd /opt/module/hbase-2.0.5/lib/[atguigu@hadoop102 lib]$ cp /opt/module/phoenix/phoenix-5.0.0-Hbase-2.0-server.jar ./[atguigu@hadoop102 lib]$ cp /opt/module/phoenix/phoenix-core-5.0.0-Hbase-2.0.jar ./
重启
[atguigu@hadoop100 hbase-2.0.5]$ bin/stop-hbase.sh [atguigu@hadoop100 hbase-2.0.5]$ bin/start-hbase.sh
将hbase的配置文件hbase-site.xml 放到phoenix/bin/下。
[atguigu@hadoop100 bin]$ cp /opt/module/hbase-2.0.5/conf/hbase-site.xml ./
3.启动[atguigu@hadoop100 bin]$ ./sqlline.py hadoop100:2181
0: jdbc:phoenix:hadoop100:2181> !tables+------------+--------------+-------------+---------------+----------+------------+--------------------------+| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS | TYPE_NAME | SELF_REFERENCING_COL_NAM |+------------+--------------+-------------+---------------+----------+------------+--------------------------+| | SYSTEM | CATALOG | SYSTEM TABLE | | | || | SYSTEM | FUNCTION | SYSTEM TABLE | | | || | SYSTEM | LOG | SYSTEM TABLE | | | || | SYSTEM | SEQUENCE | SYSTEM TABLE | | | || | SYSTEM | STATS | SYSTEM TABLE | | | |+------------+--------------+-------------+---------------+----------+------------+--------------------------+