昨天这样做,搞了一天都没有问题。
今天我不知道做了什么,现在一直出下面的问题。搞了半天了,还没有解决。网上说客户端和服务端版本不匹配。
我重新试了很多次,还是出现这个原因。求解决啊~~~
13/06/28 19:21:33 INFO zookeeper.ZooKeeper: Client environment:user.dir=D:\workspace\Hadoop-Test
13/06/28 19:21:33 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.1.2:2181,192.168.1.1:2181 sessionTimeout=600000 watcher=hconnection
13/06/28 19:21:33 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5328@YQH-PC
13/06/28 19:21:33 INFO zookeeper.ClientCnxn: Opening socket connection to server master/192.168.1.1:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:21:54 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/06/28 19:21:54 INFO zookeeper.ClientCnxn: Opening socket connection to server node1/192.168.1.2:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:21:54 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
13/06/28 19:21:54 INFO util.RetryCounter: Sleeping 2000ms before retry #1...
13/06/28 19:22:15 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/06/28 19:22:15 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
13/06/28 19:22:15 INFO util.RetryCounter: Sleeping 4000ms before retry #2...
13/06/28 19:22:16 INFO zookeeper.ClientCnxn: Opening socket connection to server master/192.168.1.1:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:22:37 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/06/28 19:22:37 INFO zookeeper.ClientCnxn: Opening socket connection to server node1/192.168.1.2:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:22:37 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
13/06/28 19:22:37 INFO util.RetryCounter: Sleeping 8000ms before retry #3...
13/06/28 19:22:58 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/06/28 19:22:59 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
13/06/28 19:22:59 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
13/06/28 19:22:59 WARN zookeeper.ZKUtil: hconnection Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
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.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:172)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:450)
at org.apache.hadoop.hbase.zookeeper.ClusterId.readClusterIdZNode(ClusterId.java:61)
at org.apache.hadoop.hbase.zookeeper.ClusterId.getId(ClusterId.java:50)
at org.apache.hadoop.hbase.zookeeper.ClusterId.hasId(ClusterId.java:44)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.ensureZookeeperTrackers(HConnectionManager.java:616)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:685)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:126)
at com.test.hbase.reference.ReferenceLog2.create_table(ReferenceLog2.java:77)
at com.test.hbase.reference.ReferenceLog2.main(ReferenceLog2.java:95)
13/06/28 19:22:59 ERROR zookeeper.ZooKeeperWatcher: hconnection Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
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.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:172)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:450)
at org.apache.hadoop.hbase.zookeeper.ClusterId.readClusterIdZNode(ClusterId.java:61)
at org.apache.hadoop.hbase.zookeeper.ClusterId.getId(ClusterId.java:50)
at org.apache.hadoop.hbase.zookeeper.ClusterId.hasId(ClusterId.java:44)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.ensureZookeeperTrackers(HConnectionManager.java:616)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:685)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:126)
at com.test.hbase.reference.ReferenceLog2.create_table(ReferenceLog2.java:77)
at com.test.hbase.reference.ReferenceLog2.main(ReferenceLog2.java:95)
13/06/28 19:22:59 INFO client.HConnectionManager$HConnectionImplementation: This client just lost it's session with ZooKeeper, will automatically reconnect when needed.
13/06/28 19:23:00 INFO zookeeper.ClientCnxn: Opening socket connection to server master/192.168.1.1:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:23:21 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/06/28 19:23:21 INFO zookeeper.ClientCnxn: Opening socket connection to server node1/192.168.1.2:2181. Will not attempt to authenticate using SASL (unknown error)
13/06/28 19:23:21 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
13/06/28 19:23:21 INFO util.RetryCounter: Sleeping 2000ms before retry #1...
3 个解决方案
#1
重启下服务看看
#2
哥们 我已经重启过n多次了啊
#3
肯定是某个进程挂了,杀掉该进程,重启hbase
#1
重启下服务看看
#2
哥们 我已经重启过n多次了啊
#3
肯定是某个进程挂了,杀掉该进程,重启hbase