2 u013248389 u013248389 于 2013.12.22 22:56 提问

habse集群HRegionServer连接不到master

13-12-16 20:55:33,144 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Attempting connect to Master server at h1,60000,1387198505290
2013-12-16 20:55:43,164 WARN org.apache.hadoop.hbase.regionserver.HRegionServer: Unable to connect to master. Retrying. Error was:
java.net.SocketException: 无效的参数
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:465)
at sun.nio.ch.Net.connect(Net.java:457)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:666)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupConnection(HBaseClient.java:392)
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:438)
at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1141)
at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:988)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:87)

环境是:wind7 VMware Workstation CentOS h1,h2,h3 三个节点,
hadoop1.2.1+zookeeper-3.4.5+hbase-0.94.1。
hadoop和zookeeper都已成功安装,且都正常。唯独hbase,虽然master,HregionServer都能启动起来,master已经在监听60000端口,但HReginServer报已上错误,不能正常工作。三个节点机的防火墙都已关闭,并且都强制使用ipv4,也试过hbase0.93,jdk6u45和jdk7u45,也把hadoop的hadoop-core.jar 覆盖到habse过,但都失败。
核心配置如下都已正确:
hbase.rootdir
hdfs://h1:9000/hbase

hbase.cluster.distributed
true

hbase.zookeeper.quorum
h1,h2,h3

hbase.tmp.dir
home/grid/hadoop/hbase
弄了很久了,未能查明原因,因sun.nio.ch.Net.connect0()方法是jdk6u45版本中从新编写的方法,且是native方法。希望哪位大神能否指导下,谢谢!!!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!