共计 819 个字符,预计需要花费 3 分钟才能阅读完成。
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
再次启动:
正文完