NativeException:org.apache.hadoop.hbase.MasterNotRunningException:null
我已经成功启动Hadoop和Hbase。但是当我尝试这个操作时, ./hbase shell HBase 外壳;输入“help”以获取支持的命令列表。 版本:0.20.3,r902334,2010 年 1 月 25 日星期一 13:13:08(太平洋标准时间) hbase(主):001:0>创建“userstable”,{NAME =>; 'maininfo'}, {NAME =>; '附加信息'} NativeException:org.apache.hadoop.hbase.MasterNotRunningException:null
知道可能是什么问题吗?
I have started Hadoop and Hbase successfully. But when I try this operation like,
./hbase shell
HBase Shell; enter 'help' for list of supported commands.
Version: 0.20.3, r902334, Mon Jan 25 13:13:08 PST 2010
hbase(main):001:0> create 'userstable', {NAME => 'maininfo'}, {NAME => 'additionalinfo'}
NativeException: org.apache.hadoop.hbase.MasterNotRunningException: null
Any idea what could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是否可以使用较新版本的 HBase。虽然与此错误没有具体相关,但有许多已知问题已在较新的版本中修复。
否则,正如 Nija 所说,检查主日志以查看其内容。当您遇到问题时,日志应该始终是您的第一个资源。
Is it possible to use a newer version of HBase. While not specifically related to this error, there are many known problems that have been fixed in more recent versions.
Otherwise, as Nija said, check the master log to see what it says. The logs should always be your first resource when you run into issues.
MasterNotRunningException
表示 HBase master 未运行。当我遇到这种情况时,通常情况下有两件事:我没有启动 hbase,或者日志中有更多信息指出了同样简单的事情。您是否运行了
$HBASE_HOME/bin/start-hbase.sh
(现在还早,我无权访问我的安装,因此确切的脚本名称可能已关闭),其中 $HBASE_HOME 是安装路径数据库。检查 hbase 日志以获取有关阻止 master 启动的原因的更多信息。 (我仍然无法访问我的安装,因此不记得确切的 hbase 日志)
如果您需要日志信息的帮助,请使用新信息更新您的帖子。
The
MasterNotRunningException
is indicating that the HBase master is not running. What normally is the case for me when I encounter this are 2 things: I didn't start hbase, or there is more information in the logs pointing out something equally simple.Did you run
$HBASE_HOME/bin/start-hbase.sh
(it's early and I don't have access to my install so the exact script name may be off) where $HBASE_HOME is the install path for hbase.Check the hbase logs for more information on what is preventing the master from starting. (I still don't have access to my installs so don't remember exactly which hbase log)
If you need help with the info from the logs, update your post with the new information.