Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Please help me how and when to catch java.net.ConnectException in case hbase is not running as it goes on connecting with hbase


Copy link to this message
-
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
Ted Yu 2013-03-28, 13:50
The second sentence below seems incomplete.

Can you give us more information (such as zookeeper log) ?

Thanks

On Thu, Mar 28, 2013 at 3:26 AM, gaurhari dass <[EMAIL PROTECTED]>wrote:

> I am using hbase .94.5 version ,I havent mentioned in class path
>
> On Thu, Mar 28, 2013 at 5:01 AM, Ted Yu <[EMAIL PROTECTED]> wrote:
>
> > bq. org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(
> > RecoverableZooKeeper.java:172)
> >
> > The exception showed problem connecting to zookeeper.
> > Is hbase-site.xml on the classpath of your app ?
> >
> > If so, please check (and pastebin) zookeeper log.
> >
> > Providing HBase version would be useful as well.
> >
> > On Tue, Mar 26, 2013 at 12:24 AM, gaurhari dass <[EMAIL PROTECTED]
> > >wrote:
> >
> > > 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.java: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.java: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.java: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.java: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