欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

安装部署phoenix全文

时间:2023-06-25
1.下载phoenix

 

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 | | | |+------------+--------------+-------------+---------------+----------+------------+--------------------------+

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。