2011-11-08 74 views
3

主要操作系統是Windows 7 64bit。使用VM播放器創建兩個虛擬機CentOS 5.6系統。網絡連接是橋樑。我在CentOS系統上都安裝了Hbase,其中一個是master,另一個是slave。當我進入外殼,並運行狀態「詳情」如何修復Hbase的Zookeeper錯誤

錯誤來自主是

zookeeper.ZKConfig: no valid quorum servers found in zoo.cfg ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: An error is preventing HBase from connecting to ZooKeeper

而且從站的錯誤是

ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.

請給我一些建議。 非常感謝

+0

錯誤在於zookeeper配置是錯誤的 - 你的zoo.cfg是什麼(在zookeeper/conf/dir中) –

回答

3

檢查它是否在.bashrc中,如果沒有,請添加它們並重新啓動所有hbase服務(不要忘記手動運行它們),這對於我來說是通過僞分佈式安裝實現的。我的問題(也可能是你的)是,Hbase沒有檢測到它的配置。

export HADOOP_CONF_DIR=/etc/hadoop/conf 
export HBASE_CONF_DIR=/etc/hbase/conf 
0

我在我的機器上經常看到這一點。我沒有安全防護措施,但最終運行stop-all.sh,並刪除hadoop和dfs(它的一個dfs故障)存儲臨時文件的每個地方。這似乎發生在我的電腦在dfs運行時進入睡眠狀態之後。

我將試驗單用戶模式以避免這種情況。開發時我不需要分配。