我有 Debian 6.03 和最好的 friend 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? 如何解决?
最佳答案
您是否配置了 hbase-env.sh 来管理 Zookeeper 本身? 您是否在 hbase-site.xml 中配置了 zookeeper 仲裁?
关于hadoop - 替换 hbase/lib/中的 hadoop*.jar 后,hbase 0.90.5 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8951166/