您的位置:首页 > 其它

hbase启动后hmaster闪挂

2017-08-07 10:54 197 查看
hbase启动之后,hmaster几秒钟后挂掉,rs和zk在各个节点的进程均正常

查看hmaster日志显示拒绝连接

2017-08-07 09:59:15,131 FATAL [master:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdown.

java.net.ConnectException: Call From master/192.168.56.100 to localhost:9000 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)

Caused by: java.net.ConnectException: 拒绝连接
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:606)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:700)
at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:367)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1463)
at org.apache.hadoop.ipc.Client.call(Client.java:1382)
... 29 more

将hbase-site.xml中的配置项中的端口号8020改为hdfs在运行的端口号9000

<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>

</property> 

在core-site.xml中查到hdfs在运行的端口号为9000

    <property>

        <name>fs.defaultFS</name>

        <value>hdfs://master:9000</value>

    </property>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: