HBase无法启动 [英] HBase fails to start

查看:787
本文介绍了HBase无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照稍微简单的 http://hbase.apache来安装Hbase 0.94.2 .org / book / quickstart.html ,它还没有工作。运行启动脚本我得到了日志文件:

I'm installing Hbase 0.94.2 as per the somewhat simplistic http://hbase.apache.org/book/quickstart.html, and it's not working yet. Running the start script i get in the log file:

2012-11-23 18:26:37,827 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1
3b2e17842c0002, negotiated timeout = 40000
2012-11-23 18:26:37,866 INFO org.apache.hadoop.ipc.HBaseRPC: Server at localhost/127.0.0.1:39699 could not be reached after 1 tries, giving up.
2012-11-23 18:26:37,867 WARN org.apache.hadoop.hbase.master.AssignmentManager: Failed assignment of -ROOT-,,0.70236052 to localhost,39699,135368
7992912, trying to assign elsewhere instead; retry=0
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface org.apache.hadoop.hbase.ipc.HRegionInterface to loca
lhost/127.0.0.1:39699 after attempts=1
.
.
.
2012-11-23 18:26:37,869 WARN org.apache.hadoop.hbase.master.AssignmentManager: Unable to find a viable location to assign region -ROOT-,,0.70236
052
2012-11-23 18:29:53,157 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master

这是一个Ubuntu 12.04 LTS VirtualBox,1GB内存,10GB可用磁盘空间,带有Oracle JRE 1.6.0_37。

This is a an Ubuntu 12.04 LTS VirtualBox, 1GB Memory, 10GB free disk space, with Oracle JRE 1.6.0_37.

我找到了一些关于/ etc / hosts的变通方法,但我不确定它们是否相关。 My etc / hosts只包含:

I found some workarounds talking about /etc/hosts but am not sure whether they are relevant. My etc/hosts contains only:

127.0.0.1   localhost
127.0.1.1   'my-host-name'

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters



任何帮助或推荐到专门的HBase论坛将非常感谢!
Thanks!

推荐答案

好吧,这很简单,只需在/ etc / hosts中更改127.0。 .1到127.0。 0 .1,所以现在本地主机名称解析为后者,而不是前者。而且Hbase快速解答的论坛是 http://apache-hbase.679495.n3.nabble。 com / ,在这里很好地回答。
不知道为什么需要进行此项更改。

Ok, this was simple, in /etc/hosts just changed 127.0.1.1 to 127.0.0.1, so now the local host name is resolved to the latter, not the former. And the forum for Hbase quick answers is http://apache-hbase.679495.n3.nabble.com/, where this was kindly answered. Not sure though why this change is necessary.

这篇关于HBase无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆