我现在已经更新了Horton Works Data Platform(HDP 2.6.5)上的所有二进制文件,以指向Apache Phoenix v4.14。
我已经重新启动了HBase和Phoenix Query Server,如下所示:
[root@sandbox-hdp bin]# ps -aef|grep queryserver
hbase 26300 1 0 13:35 ? 00:00:00 python /usr/hdp/current/phoenix-server/bin/queryserver.py start
hbase 26301 26300 2 13:35 ? 00:00:06 /usr/lib/jvm/java/bin/java -cp /usr/hdp/current/hbase-client/conf:/etc/hadoop/conf:/usr/hdp/2.6.5.0-292/phoenix/bin/../phoenix-4.14.0-HBase-1.1-client.jar:/usr/hdp/2.6.5.0-292/phoenix/bin/../phoenix-4.14.0-HBase-1.1-queryserver.jar:/usr/hdp/2.6.5.0-292/hadoop/conf:/usr/hdp/2.6.5.0-292/hadoop/lib/*:/usr/hdp/2.6.5.0-292/hadoop/.//*:/usr/hdp/2.6.5.0-292/hadoop-hdfs/./:/usr/hdp/2.6.5.0-292/hadoop-hdfs/lib/*:/usr/hdp/2.6.5.0-292/hadoop-hdfs/.//*:/usr/hdp/2.6.5.0-292/hadoop-yarn/lib/*:/usr/hdp/2.6.5.0-292/hadoop-yarn/.//*:/usr/hdp/2.6.5.0-292/hadoop-mapreduce/lib/*:/usr/hdp/2.6.5.0-292/hadoop-mapreduce/.//*::mysql-connector-java.jar:/usr/hdp/2.6.5.0-292/tez/*:/usr/hdp/2.6.5.0-292/tez/lib/*:/usr/hdp/2.6.5.0-292/tez/conf -Dproc_phoenixserver -Dlog4j.configuration=file:/usr/hdp/2.6.5.0-292/phoenix/bin/log4j.properties -Dpsql.root.logger=INFO,DRFA -Dpsql.log.dir=/var/log/hbase -Dpsql.log.file=phoenix-hbase-queryserver.log org.apache.phoenix.queryserver.server.QueryServer
root 28330 27164 0 13:40 pts/0 00:00:00 grep --color=auto queryserver
但是当我尝试在bin文件夹中执行sqlline.py程序时,它给我一个错误:
[root@sandbox-hdp bin]# ./sqlline.py 127.0.0.1:2181:/hbase-unsecure
Traceback (most recent call last):
File "./sqlline-thin.py", line 53, in <module>
phoenix_utils.common_sqlline_args(parser)
AttributeError: 'module' object has no attribute 'common_sqlline_args'
是否可以通过Ambari升级Phoenix而不是从命令行运行命令?