hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanislaw Vasiljev <stan.vasil...@gmail.com>
Subject Re: Hbase error
Date Fri, 16 Oct 2009 18:20:08 GMT
It can't connect to hbase, but it use "default" zookeeper address
"localhost/127.0.0.1:2181". So, first of all, it can't reach
correspond configuration files like hbase-site.xml or zoo.cnf to
determine actual address to connect. And both of them must be in
HBASE_CLASSPATH environment variable or must been included into
CLASSPATH of your project.


2009/10/14 Ananth T. Sarathy <ananth.t.sarathy@gmail.com>:
> I am getting the error below...
>
> Additionally, I am trying to iterate with a scanner to try and check for
> certain data and the thing just won't return. And when I am in the shell and
> try to do a count on a table, its also spinning and not doing anything....
>
> 12:02:04,103 ERROR [STDERR] 09/10/14 12:02:04 WARN zookeeper.ClientCnxn:
> Ignoring exception during shutdown output
> java.nio.channels.ClosedChannelException
>        at sun.nio.ch.SocketChannelImpl.shutdownOutput(Unknown Source)
>        at sun.nio.ch.SocketAdaptor.shutdownOutput(Unknown Source)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
> 12:02:05,632 ERROR [STDERR] 09/10/14 12:02:05 INFO zookeeper.ClientCnxn:
> Attempting connection to server localhost/127.0.0.1:2181
> 12:02:05,633 ERROR [STDERR] 09/10/14 12:02:05 WARN zookeeper.ClientCnxn:
> Exception closing session 0x0 to sun.nio.ch.SelectionKeyImpl@11add17a
> java.net.ConnectException: Connection refused
>        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>        at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
> 12:02:05,633 ERROR [STDERR] 09/10/14 12:02:05 WARN zookeeper.ClientCnxn:
> Ignoring exception during shutdown input
> java.nio.channels.ClosedChannelException
>        at sun.nio.ch.SocketChannelImpl.shutdownInput(Unknown Source)
>        at sun.nio.ch.SocketAdaptor.shutdownInput(Unknown Source)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
> 12:02:05,633 ERROR [STDERR] 09/10/14 12:02:05 WARN zookeeper.ClientCnxn:
> Ignoring exception during shutdown output
> java.nio.channels.ClosedChannelException
>        at sun.nio.ch.SocketChannelImpl.shutdownOutput(Unknown Source)
>        at sun.nio.ch.SocketAdaptor.shutdownOutput(Unknown Source)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
>        at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
> 12:02:05,735 ERROR [STDERR] 09/10/14 12:02:05 WARN
> zookeeper.ZooKeeperWrapper: Failed to create /hbase -- check quorum servers,
> currently=localhost:2181
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase
>        at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>        at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>        at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:522)
>        at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:342)
>        at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:365)
>        at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.checkOutOfSafeMode(ZooKeeperWrapper.java:478)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:903)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:573)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:623)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:582)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:623)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:586)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:125)
>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:103)
>        at com.iswcorp.hadoop.hbase.HBaseTableDataManagerImpl.<init>(Unknown
> Source)
>        at com.iswcorp.application.servlet.ReQueueServlet.requeue(Unknown
> Source)
>        at com.iswcorp.application.servlet.ReQueueServlet.process(Unknown
> Source)
>        at com.iswcorp.application.servlet.ReQueueServlet.doGet(Unknown
> Source)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>        at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>        at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>        at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Unknown Source)
>
>
> Ananth T Sarathy
>

Mime
View raw message