hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier <olam...@easyvoyage.fr>
Subject Re: Please help me how and when to catch java.net.ConnectException in case hbase is not running as it goes on connecting with hbase
Date Thu, 06 Jun 2013 15:09:22 GMT

gaurhari dass <gaurharidass@...> writes:

> 
> 13/03/26 12:46:14 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:16 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:16 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:17 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:17 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:18 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:18 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:19 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:19 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:20 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:20 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:21 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:21 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:22 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181. Will not attempt to authenticate using
> SASL (unknown error)
> 13/03/26 12:46:22 WARN 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:592)
>     at
> 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.jav
a:350)
>     at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/03/26 12:46:22 WARN zookeeper.RecoverableZooKeeper: Possibly transient
> ZooKeeper exception:
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
> 13/03/26 12:46:22 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists
> failed after 3 retries
> 13/03/26 12:46:22 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(RecoverableZoo
Keeper.java:172)
>     at 
org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:450)
>     at
> 
org.apache.hadoop.hbase.zookeeper.ClusterId.readClusterIdZNode(ClusterId.jav
a: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:615)
>     at
> 
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.
getMaster(HConnectionManager.java:684)
>     at org.apache.hadoop.hbase.client.HBaseAdmin.<init>
(HBaseAdmin.java:116)
>     at
> 
org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.jav
a:1750)
>     at org.samsung.cloud.dao.HB_Crud.<init>(HB_Crud.java:40)
>     at org.samsung.cloud.dao.HB_Read.<init>(HB_Read.java:49)
>     at org.samsung.cloud.rest.HB_Rest.getData(HB_Rest.java:46)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 

Up.
I need the answer too. ^^




Mime
View raw message