【发布时间】:2013-04-24 09:41:36
【问题描述】:
当我将 hbase-site.xml 中的 hbase.rootdir 配置设置为像 file://hbase_root_dir_path 这样的本地文件系统时,hbase 工作正常。但是当我将其更改为hdfs://localhost:9000/hbase,hbase一开始也是可以的。 过了很短的时间(通常是几秒钟),但是,它不起作用。我发现HMaster用jps命令停止了。当然我无法打开localhost:60010网页。我阅读日志,发现错误如下:
INFO org.apache.zookeeper.server.PrepRequestProcessor: Got user-level KeeperException when processing sessionid:0x13e35b26eb80001 type:delete cxid:0x13 zxid:0xc txntype:-1 reqpath:n/a Error Path:/hbase/backup-masters/localhost,35320,1366700487007 Error:KeeperErrorCode = NoNode for /hbase/backup-masters/localhost,35320,1366700487007
INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2182. Will not attempt to authenticate using SASL (unknown error)
ERROR org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler: Failed open of region=person,,1365998702159.a5af90c23325829096517fb3b15bca17., starting to roll back the global memstore size.
java.lang.IllegalStateException: Could not instantiate a region instance.
WARN org.apache.zookeeper.ClientCnxn: Session 0x13e35b26eb80002 for server null, unexpected error, closing socket connection and attempting reconnect
我在 Ubuntu 12.04 LTS 中使用了 hbase 的伪分布式模式。
在我的 /etc/hosts 中,我已经将主机名的 IP 更改为 127.0.0.1。如果关闭,我的 hadoop 安全模式状态。我的 hadoop 版本是 1.0.4,我的 hbase 版本是 0.94.6.1(都是最新的稳定版release),HBase 参考指南说 hbase-0.94.x 与 hadoop-1.0.x 配合得很好。
我认为 HDFS 会导致问题,因为它确实适用于本地文件系统。顺便说一下,有一个 hbase-x.x.x-security 版本,它和 hbase-x.x.x 版本有什么区别,我需要使用安全发布?
【问题讨论】:
-
你的神经网络运行正常吗?能告诉我你的日志和配置文件吗?