1、官网地址
2、Phoenix 部署
1)解压
[centos@hadoop10 data]$ tar -xvf phoenix-hbase-1.3-4.16.1-bin.tar -C /data/module/
[centos@hadoop10 module]$ mv phoenix-hbase-1.3-4.16.1-bin/ /data/module/phoenix
2)复制server包并拷贝到各个节点的hbase/lib
[centos@hadoop10 module]$ cd ./phoenix/
[centos@hadoop10 phoenix]$ cp phoenix-server-hbase-1.3-4.16.1.jar /data/module/hbase/lib
[centos@hadoop10 phoenix]$ /data/xsync /data/module/hbase/lib/phoenix-server-hbase-1.3-4.16.1.jar
3)配置环境变量
[root@hadoop10 phoenix]# vim /etc/profile.d/my_env.sh
**# PHOENIX_HOME
export PHOENIX_HOME=/data/module/phoenix
export PHOENIX_CLASSPATH=$PHOENIX_HOME
export PATH=$PATH:$PHOENIX_HOME/bin**
4)在 Hbase 家目录下的 conf/hbase-site.xml 文件中添加配置,分发配置文件
[root@hadoop10 phoenix]# vim /data/module/hbase/conf/hbase-site.xml
添加配置
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>
同步配置
[root@hadoop10 phoenix]# /data/xsync /data/module/hbase/conf/hbase-site.xml
5)在 Phoenix 家目录下的 bin/hbase-site.xml 文件中添加配置
[centos@hadoop10 phoenix]$ vim /data/module/phoenix/bin/hbase-site.xml
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>
6)重启HBase
[centos@hadoop10 bin]$ ./stop-hbase.sh
stopping hbase...............
[centos@hadoop10 bin]$ ./start-hbase.sh
starting master, logging to /data/module/hbase/logs/hbase-centos-master-hadoop10.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop11: starting regionserver, logging to /data/module/hbase/bin/../logs/hbase-centos-regionserver-hadoop11.out
hadoop12: starting regionserver, logging to /data/module/hbase/bin/../logs/hbase-centos-regionserver-hadoop12.out
hadoop10: starting regionserver, logging to /data/module/hbase/logs/hbase-centos-regionserver-hadoop10.out
hadoop11: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
hadoop11: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop12: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
hadoop12: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop10: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
hadoop10: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[centos@hadoop10 bin]$ jps
49683 Kafka
63046 Maxwell
31431 QuorumPeerMain
28202 NameNode
80845 HMaster
81021 HRegionServer
28861 JobHistoryServer
81244 Jps
67503 StandaloneSessionClusterEntrypoint
59279 Application
7)连接Phoenix