当前位置:   article > 正文

安装部署phoenix全文_hqfvuh

hqfvuh

1.下载phoenix

 

Index of /apache/phoenix (cnnic.cn)

2.解压

  1. [atguigu@hadoop100 module]$ tar -zxvf apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz -C /opt/module/
  2. [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目录中(每个节点都要放)

  1. [atguigu@hadoop102 ~]$ cd /opt/module/hbase-2.0.5/lib/
  2. [atguigu@hadoop102 lib]$ cp /opt/module/phoenix/phoenix-5.0.0-HBase-2.0-server.jar ./
  3. [atguigu@hadoop102 lib]$ cp /opt/module/phoenix/phoenix-core-5.0.0-HBase-2.0.jar ./

重启

  1. [atguigu@hadoop100 hbase-2.0.5]$ bin/stop-hbase.sh
  2. [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
  1. 0: jdbc:phoenix:hadoop100:2181> !tables
  2. +------------+--------------+-------------+---------------+----------+------------+--------------------------+
  3. | TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS | TYPE_NAME | SELF_REFERENCING_COL_NAM |
  4. +------------+--------------+-------------+---------------+----------+------------+--------------------------+
  5. | | SYSTEM | CATALOG | SYSTEM TABLE | | | |
  6. | | SYSTEM | FUNCTION | SYSTEM TABLE | | | |
  7. | | SYSTEM | LOG | SYSTEM TABLE | | | |
  8. | | SYSTEM | SEQUENCE | SYSTEM TABLE | | | |
  9. | | SYSTEM | STATS | SYSTEM TABLE | | | |
  10. +------------+--------------+-------------+---------------+----------+------------+--------------------------+

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/530015
推荐阅读
相关标签
  

闽ICP备14008679号