1、将apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz上传至/opt/software
2、解压至/opt/module
[bigdata@bigdata01 software]$ tar -zxvf apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz -C /opt/module/
3、修改名称
[bigdata@bigdata01 module]$ mv apache-phoenix-5.0.0-HBase-2.0-bin/ phoenix-5.0.0
4、配置环境变量
[bigdata@bigdata01 phoenix-5.0.0]$ sudo vim /etc/profile.d/my_env.sh
加入以下内容
#PHOENIX_HOME export PHOENIX_HOME=/opt/module/phoenix-5.0.0 export PHOENIX_CLASSPATH=$PHOENIX_HOME export PATH=$PATH:$PHOENIX_HOME/bin
使生效
[bigdata@bigdata01 phoenix-5.0.0]$ source /etc/profile.d/my_env.sh
5、复制server.jar文件到/opt/module/hbase-2.0.5/lib/
[bigdata@bigdata01 phoenix-5.0.0]$ cp phoenix-5.0.0-HBase-2.0-server.jar /opt/module/hbase-2.0.5/lib/
6、在当前/opt/module/hbase-2.0.5/lib/路径下将phoenix-5.0.0-HBase-2.0-server.jar分发到其他机器/opt/module/hbase-2.0.5/lib/路径下。
[bigdata@bigdata01 phoenix-5.0.0]$ cd /opt/module/hbase-2.0.5/lib/ [bigdata@bigdata01 lib]$ rsync.sh phoenix-5.0.0-HBase-2.0-server.jar ==================== bigdata02 ==================== sending incremental file list phoenix-5.0.0-HBase-2.0-server.jar sent 41,810,648 bytes received 35 bytes 27,873,788.67 bytes/sec total size is 41,800,313 speedup is 1.00 ==================== bigdata03 ==================== sending incremental file list phoenix-5.0.0-HBase-2.0-server.jar sent 41,810,648 bytes received 35 bytes 27,873,788.67 bytes/sec total size is 41,800,313 speedup is 1.00
7、重启hbase
[bigdata@bigdata01 ~]$ stop-hbase.sh stopping hbase............ [bigdata@bigdata01 ~]$ start-hbase.sh running master, logging to /opt/module/hbase-2.0.5/logs/hbase-bigdata-master-bigdata01.out bigdata03: running regionserver, logging to /opt/module/hbase-2.0.5/logs/hbase-bigdata-regionserver-bigdata03.out bigdata02: running regionserver, logging to /opt/module/hbase-2.0.5/logs/hbase-bigdata-regionserver-bigdata02.out bigdata01: running regionserver, logging to /opt/module/hbase-2.0.5/logs/hbase-bigdata-regionserver-bigdata01.out
8、