2010-01-22

Hbase 0.20.2在启动时的小bug

Posted in 云计算 at 13:58 Author:仲远

标签:

Hbase 0.20.x默认的日志输出级别为DEBUG,因此常常会看到一大堆的调试信息,以及一大堆的Exception,可能会让用户比较困惑。

其中一个会造成困惑的Exception就是在重启Hbase的时候,可能会遇到如下的Exception:
java.io.IOException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /hbase/master
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:332)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddress(ZooKeeperWrapper.java:318)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddress(ZooKeeperWrapper.java:250)
        at org.apache.hadoop.hbase.master.ZKMasterAddressWatcher.waitForMasterAddressAvailability(ZKMasterAddressWatcher.java:82)
        at org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:267)
        at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:254)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

不过,虽然有上述的Exception,但是并不影响使用。Hbase的开发人员已经表示,将会在Hbase 0.20.3RC中修正如上bug

另外一种解决办法是,可以将Hbase的conf/log4j.properties的日志级别调整到INFO级,也就是将其中的
log4j.logger.org.apache.hadoop.hbase=DEBUG
改为:
log4j.logger.org.apache.hadoop.hbase=INFO

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word