1.sqlline.py 启动报错。起因是Phoenix不反对python3,应用python2执行

Traceback (most recent call last):  File "./bin/sqlline.py", line 25, in <module>    import phoenix_utils  File "/Users/bigdata/phoenix/phoenix_5_0/bin/phoenix_utils.py", line 208    print "phoenix_class_path:", phoenix_class_path          ^SyntaxError: Missing parentheses in call to 'print'. Did you mean print("phoenix_class_path:", phoenix_class_path)?
具体操作: /usr/bin/python2 /Users/bigdata/phoenix/phoenix_5_0/bin/sqlline.py localhost:2181/hbase

再次启动,遇到以下问题:

phoenix RpcRetryingCaller{globalStartTime=1661941384669, pause=100, maxAttempts=16}, org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

解决办法:
1.停掉hbase,stop-hbase.sh
2.停掉zookeeper,zkServer.sh stop
3.删除hdfs中的/hbase目录,删除zookeeper中/hbase目录
hdfs: hdfs dfs -rm -r /hbase
zookeeper: deleteall /hbase
4.启动zookeeper
5.启动hbase

再次启动: