hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hari Sreekumar <hsreeku...@clickable.com>
Subject ZooKeeperConnectionException whenever table is flushed or majorcompacted
Date Mon, 04 Apr 2011 10:33:09 GMT
Hi,

I get this exception when I try to flush META using
HbaseAdmin.flush(".META."). I get the same exception when I do major
compact:

11/04/04 21:26:31 INFO org.apache.zookeeper.ClientCnxn: Socket connection
established to hadoopqa2/192.168.1.50:2181, initiating session
11/04/04 21:26:31 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for
server hadoopqa2/192.168.1.50:2181, unexpected error, closing socket
connection and attempting reconnect
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:237)
        at sun.nio.ch.IOUtil.read(IOUtil.java:204)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:858)
        at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1130)
11/04/04 21:26:32 INFO org.apache.zookeeper.ClientCnxn: Opening socket
connection to server hadoopqa2/192.168.1.50:2181
11/04/04 21:26:32 INFO org.apache.zookeeper.ClientCnxn: Socket connection
established to hadoopqa2/192.168.1.50:2181, initiating session
11/04/04 21:26:32 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for
server hadoopqa2/192.168.1.50:2181, unexpected error, closing socket
connection and attempting reconnect
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:237)
        at sun.nio.ch.IOUtil.read(IOUtil.java:204)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:858)
        at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1130)
11/04/04 21:26:32 FATAL
com.clickable.dataengine.hbase.create.CreateTableByXML:
*************************************************************
11/04/04 21:26:32 FATAL
com.clickable.dataengine.hbase.create.CreateTableByXML:
org.apache.hadoop.hbase.ZooKeeperConnectionException:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase
11/04/04 21:26:32 FATAL
com.clickable.dataengine.hbase.create.CreateTableByXML:
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:988)
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:301)
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:292)
org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:155)
org.apache.hadoop.hbase.client.HBaseAdmin.getCatalogTracker(HBaseAdmin.java:104)
org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:159)
com.clickable.dataengine.hbase.create.CreateTableByXML.createTable(CreateTableByXML.java:144)
com.clickable.dataengine.hbase.create.CreateTableByXML.main(CreateTableByXML.java:68)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.hadoop.util.RunJar.main(RunJar.java:156)

11/04/04 21:26:32 FATAL
com.clickable.dataengine.hbase.create.CreateTableByXML:
*************************************************************
11/04/04 21:26:32 INFO org.apache.zookeeper.ClientCnxn: Opening socket
connection to server hadoopqa2/192.168.1.50:2181
11/04/04 21:26:32 INFO org.apache.zookeeper.ClientCnxn: Socket connection
established to hadoopqa2/192.168.1.50:2181, initiating session
11/04/04 21:26:32 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

This doesn't happen always. I think it is happening sometimes only. I
suspect this has something to do with the asynchronous nature of these
commands. Any ideas?

Thanks,
Hari

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message