我正在按照有点简单的http://hbase.apache.org/book/quickstart.html安装 Hbase 0.94.2 ,但它还没有工作。运行我在日志文件中得到的启动脚本:
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。
我发现了一些关于 /etc/hosts 的解决方法,但不确定它们是否相关。我的 etc/hosts 仅包含:
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 论坛将不胜感激!谢谢!