启动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
|
|