在我的HBase安装(分布式模式主机+2区域服务器)中,外部zookeeper在Hadoop分布式安装(主节点+辅助主节点+两个数据节点)之上运行,我无法启动HBase主机。区域服务器启动没有问题。 HbaseMaster失败并显示错误消息:
2013-09-06 13:00:13,503 FATAL org.apache.hadoop.hbase.master.HMaster: Master server abort: loaded coprocessors are: []
2013-09-06 13:00:13,503 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.
java.net.SocketException: Unresolved address
at sun.nio.ch.Net.translateToSocketException(Net.java:157)
at sun.nio.ch.Net.translateException(Net.java:183)
at sun.nio.ch.Net.translateException(Net.java:189)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:76)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.apache.hadoop.http.HttpServer.start(HttpServer.java:602)
at org.apache.hadoop.hbase.master.HMaster.startServiceThreads(HMaster.java:913)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:557)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:391)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:127)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:208)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
... 6 more
答案 0 :(得分:1)
排序。 hbase-site.xml文件中的配置错误。 hbase.master.info.bindAddress
中的主机名错误