のhadoop * .jarを置き換えた後、hbase 0.90.5が動作しないDebian 6.03があり、親友hbaseとhadoopに問題がある ステップバイステップで、hbase(スタンドアロンの最初のステップ)とHadoopの:hbase/lib/
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
[email protected]:/usr/local/hbase$ su hduser
[email protected]:/usr/local/hbase$ bin/start-hbase.sh
starting master, logging to /usr/local/hbase/bin/../logs/hbase-hduser-master-master.out
[email protected]:/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のコアV 1.0の後に - 私が得た:
[email protected]:/usr/local/hbase$ bin/stop-hbase.sh
[email protected]:/usr/local/hbase$ cp ../hadoop/hadoop-core-1.0.0.jar lib/
[email protected]:/usr/local/hbase$ rm lib/hadoop-core-0.20-append-r1056497.jar
[email protected]:/usr/local/hbase$ bin/start-hbase.sh
starting master, logging to /usr/local/hbase/bin/../logs/hbase-hduser-master-master.out
[email protected]:/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のコア* .jarファイルを置き換えるスタンドアロンでZooKeeperの必要はなぜ? これを修正する方法は?
あなたの飼い猫のログには何が表示されますか? –
hbaseがhadoopと通信できません。ホストファイルを確認してください。あなたが127.0.1.1をコメントしていれば、それにあなたのIPといくつかの名前を追加してチェックしてください – Infinity