错误:org.apache.hadoop.hbase.MasterNotRunningException:null+hbase+hadoop
我最近用两台机器(在ubuntu上)配置了hadoop集群。到目前为止效果很好。但是当我尝试在上面的 hadoop 集群上配置 hbase 时,它显示错误。 这就是我所做的,
我有两台机器。 192.168.1.110 Hadoop主站 192.168.1.111 Hadoop从属
conf/hbase-env.sh
导出JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22 导出 HBASE_CLASSPATH=/home/hadoop/hadoop-0.20.2/conf export HBASE_MANAGES_ZK=true
hbase-site.xml
hbase.master->192.168.1.110:54310(与hadoop master:port相同) hbase.rootdir->hdfs://192.168.1.110:54310/hbase hbase.cluster.distributed->true hbase.zookeeper.quorum->192.168.1.110,192.168.1.111
和区域srevers,
192.168.1.111
运行命令
启动 hbase 后,我尝试从 hbase shell hbase(main):001:0> 列表 表格
它显示
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: null
请帮我解决问题 提前致谢
I have recently configured hadoop cluster with two machines(on ubuntu). It works fine so far. But when i try to configure hbase on the above hadoop cluster, it shows error.
Here is what i did,
i have two machines.
192.168.1.110 Hadoop master
192.168.1.111 Hadoop slave
conf/hbase-env.sh
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22
export HBASE_CLASSPATH=/home/hadoop/hadoop-0.20.2/conf
export HBASE_MANAGES_ZK=true
hbase-site.xml
hbase.master->192.168.1.110:54310(Same as hadoop master:port)
hbase.rootdir->hdfs://192.168.1.110:54310/hbase
hbase.cluster.distributed->true
hbase.zookeeper.quorum->192.168.1.110,192.168.1.111
And region srevers,
192.168.1.111
After starting hbase, i tried to run the command from hbase shell
hbase(main):001:0> list
TABLE
It shows
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: null
Please help me up solving the issue
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该错误是自我解释的。如果您在 master(192.168.1.110) 机器上使用 hadoop 用户执行
jps
,您会看到 HMaster 没有运行。请检查 HMaster 日志以了解失败的原因。The error is self explaining. if you do
jps
with the hadoop user on your master(192.168.1.110) machine you would see that HMaster is not running. Please check the HMaster logs to see why it failed.设置 HBase(尤其是集群)时有一些注意事项。要有耐心。
首先,集群是由Zookeeper实例组织的。检查彼此连接的两个节点上的 Zookeeper 日志。为您的计算机设置 DNS 并在 /etc/hosts 中为正确的外部 IP(在您的情况下为 192.168.1.11x)配置正确的域名至关重要。
如果这(仅)有效,那么您的问题可能是另一回事。
请严格遵守以下网址的手册:
http://hbase.eu.apache.org/book/notsoquick.html
不幸的是,没有办法解决这个问题。
There are some caveats when setting up HBase, especially a cluster. Be patient.
First of all, the cluster is organized by Zookeeper instances. Check your zookeeper logs on both nodes that they connect to each other. It is critical that you set up DNS for your machines and configure the proper domain names for the proper external IPs (192.168.1.11x in your case) in /etc/hosts.
If this works (only), then your problem maybe be a different one.
Please closely follow the manual at
http://hbase.eu.apache.org/book/notsoquick.html
Unfortunately, there is no way around that.