在我的 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