我已经将我的hadoop2和hbase0.98与凤凰集成,并输入命令sqlline.py localhost
phoenix shell启动,但是当我尝试通过此命令运行apache phoenix示例时:psql.py /usr/local/phoenix/examples/WEB_STAT.sql /usr/local/phoenix/examples/WEB_STAT.csv /usr/local/phoenix/examples/WEB_STAT_QUERIES.sql
我遇到了此错误ERROR client.HConnectionManager$HConnectionImplementation: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
我在单模式下使用hadoop 2.6,在psudo分布式mod中使用hbase 0.98,此外我没有明确安装zookeeper,是否需要明确安装zookeeper?
我的HBASE_HOME / conf / hbase-site.xml文件包含:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:54310/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hduser/hbase/zookeeper</value>
</property>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
<property>
<name>hbase.master</name>
<value>hadoop-master:60000</value>
</property>
</configuration>
我正在运行的java进程
7415 DataNode
7262 NameNode
9119 Jps
7605 SecondaryNameNode
7893 NodeManager
8704 HRegionServer
8544 HMaster
8475 HQuorumPeer
7763 ResourceManager
答案 0 :(得分:0)
您使用的是HDP发行版吗?他们使用/hbase-unsecure
或非Kerberized集群。我不记得它是如何与/hbase
zkCli.sh
或者zookeepershell
查询现有的根节点
ls /
HBase根节点可能名为hbase-unsecure
答案 1 :(得分:0)
您只需将服务器的地址localhost
添加到您的命令中即可。注意您已经运行的命令,sqlline.py localhost
您提供了服务器地址。