2015-12-21 55 views
2

我會嘗試在本地HBase的,我也開始一個ZK服務器,當我試圖創建這樣一個表:節點/ hbase-unsecure不在ZooKeeper中。它應該已被寫入由主

create 'table', 'col' 

錯誤:

ERROR [main] client.ConnectionManager$HConnectionImplementation: The node /hbase-unsecure 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. 

和: 我覺得可能有事情做與HBase的-site.xml中 這裏:

<configuration> 
    <property> 
    <name>hbase.rootdir</name> 
    <value>file:////Users/zhaiyi/Documents/apache-hadoop/hbase</value> 
    </property> 
    <property> 
    <name>>hbase.zookeeper.property.dataDir</name> 
    <value>/Users/zhaiyi/Documents/zookeeper/server1/zookeeper-3.5.1-alpha </value> 
    </property> 
    <property> 
     <name>zookeeper.znode.parent</name> 
     <value>/hbase-unsecure</value> 
    </property> 
</configuration> 

它沒有工作,請求幫助!謝謝!!

PS:HBase的-1.1.2 & Hadoop的2.6.3

回答

1

當HBase的主啓動它應該創造的ZooKeeper的/hbase-unsecure Z序節點。 This page已過時,但描述了HBase如何使用ZK。你應該嘗試的第一件事是重新啓動hbase master以查看是否有幫助。

HBase提供了一個可用於運行zookeeper命令的shell zkcli。例如./hbase zkcli -server host:port ls /應該顯示頂層存在哪些znodes。在你的情況下,你不知道你的ZK服務器在哪裏,但ZK的默認端口是2181。響應該命令應列出錯誤引用的/hbase-unsecure znode。

還要注意,取決於如果HBase的集羣是在安全模式曾經啓動了供應商,創建的Z序節點將/hbase-secure

+0

感謝您的回答,我檢查了zk中沒有節點/ hbase-unsecure。我開始一個獨立的zk server.HBASE_MANAGES_ZK = false。我想知道hbase如何與zk連接,我認爲這是我錯誤的地方 – ZhAIiyI

相關問題