【发布时间】:2012-01-21 06:28:14
【问题描述】:
我有 Debian 6.03 和最好的朋友 hbase 和 hadoop 的问题 一步一步,我想要工作配置hbase(第一步独立)和hadoop:
wget http://www.sai.msu.su/apache//hbase/hbase-0.90.5/hbase-0.90.5.tar.gz
tar xzfv hbase-0.90.5.tar.gz
sudo mv hbase-0.90.5 /usr/local/
sudo ln -s hbase-0.90.5/ hbase
sudo chown -R hduser:hadoop hbase*
lrwxrwxrwx 1 hduser hadoop 13 Янв 21 10:11 hbase -> hbase-0.90.5/
drwxr-xr-x 8 hduser hadoop 4096 Янв 21 10:11 hbase-0.90.5
dan@master:/usr/local/hbase$ su hduser
hduser@master:/usr/local/hbase$ bin/start-hbase.sh
starting master, logging to /usr/local/hbase/bin/../logs/hbase-hduser-master-master.out
hduser@master:/usr/local/hbase$ bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.90.5, r1212209, Fri Dec 9 05:40:36 UTC 2011
hbase(main):001:0> list
TABLE
0 row(s) in 0.8560 seconds
但是,在 hbase lib/ 文件夹中解压 hadoop core v 1.0 后 - 我得到了:
hduser@master:/usr/local/hbase$ bin/stop-hbase.sh
hduser@master:/usr/local/hbase$ cp ../hadoop/hadoop-core-1.0.0.jar lib/
hduser@master:/usr/local/hbase$ rm lib/hadoop-core-0.20-append-r1056497.jar
hduser@master:/usr/local/hbase$ bin/start-hbase.sh
starting master, logging to /usr/local/hbase/bin/../logs/hbase-hduser-master-master.out
hduser@master:/usr/local/hbase$ bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.90.5, r1212209, Fri Dec 9 05:40:36 UTC 2011
hbase(main):001:0> list
TABLE
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.
为什么我在替换 hadoop-core*.jar 后需要独立运行 zookeeper? 如何解决?
【问题讨论】:
-
你的 Zookeeper 日志是怎么说的?
-
您的 hbase 无法与 hadoop 通信。检查您的主机文件。如果你有 127.0.1.1 评论它并添加你的 ip 和一些名字并检查