我已在多群集配置上安装了HBase 1.1.3,并希望在其上运行Apache phoenix。我下载了phoenix 4.7,按照这里提到的指南安装了它:https://phoenix.apache.org/installation.html
但是当我运行以下命令时:sqlline.py 它正在被绞死,直到下面所示。
hadoop@hostname:~$ sqlline.py hostname
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:localhost
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/phoenix-4.7.0-HBase-1.1-bin/phoenix-4.7.0-HBase-1.1-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
16/05/10 13:06:18 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
答案 0 :(得分:1)
好吧,Phoenix客户端似乎无法连接到zookeeper集群中的Hbase z节点。请执行以下操作:
答案 1 :(得分:0)
您需要将以下jar添加到Hbase / lib目录。