分享

hbase mster启动失败

fanbells 2013-12-11 09:53:06 发表于 异常错误 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 12251
启动hbase master以后发现过了三四秒左右,down掉了查看日志发现: WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:21:57,520 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:21:57,521 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:21:57,523 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:21:57,624 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
2013-12-11 09:21:57,624 INFO org.apache.hadoop.hbase.util.RetryCounter: Sleeping 4000ms before retry #2...
2013-12-11 09:21:58,520 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:21:58,520 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:00,063 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:00,064 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:00,065 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:00,807 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:00,807 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:02,720 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:02,721 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:02,722 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:02,823 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
2013-12-11 09:22:02,823 INFO org.apache.hadoop.hbase.util.RetryCounter: Sleeping 8000ms before retry #3...
2013-12-11 09:22:03,701 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:03,702 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:05,212 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:05,213 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:05,216 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:06,089 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:06,090 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:07,547 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:07,548 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:07,549 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:08,181 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:08,182 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:10,150 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:10,151 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:10,152 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:10,278 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave3/192.168.1.193:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:10,301 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-12-11 09:22:11,964 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave4/192.168.1.194:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
2013-12-11 09:22:11,965 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave4/192.168.1.194:2181, initiating session
2013-12-11 09:22:11,967 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-12-11 09:22:12,067 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
2013-12-11 09:22:12,068 ERROR org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
2013-12-11 09:22:12,068 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
        at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2104)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
        at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2118)
Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
        at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041)
        at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1069)
        at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:199)
        at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1109)
        at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1099)
        at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1083)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.createBaseZNodes(ZooKeeperWatcher.java:162)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155)
        at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:345)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2099)
        ... 5 more

已有(4)人评论

跳转到指定楼层
pig2 发表于 2013-12-11 11:26:05
你的是单机版,还是什么,贴一下你的配置文件
回复

使用道具 举报

lzw 发表于 2013-12-11 11:47:01
应该是你的zookeeper连hbase没有连上。你把主机的hbase-site.xml、regionservers、hbase-env.sh配置贴出来,我好帮你分析一下,哪里配置不正确。
回复

使用道具 举报

fanbells 发表于 2013-12-11 14:16:15
问题已经解决了
回复

使用道具 举报

fanbells 发表于 2013-12-11 14:17:53
自从报了这个错后,查了很多资料,尝试了以后都不行,最后把 hadoop集群的 机器重启了一下,再次启动hadoop,hbase就好了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条