Dear all,
When I stop and start HBase, I get this warning throw forever
Exception closing session 0x12fb9d5b5e10005 to
sun.nio.ch.SelectionKeyImpl@1fe88d
java.io.IOException: Read error rc = -1
java.nio.DirectByteBuffer[pos=0 lim=4 cap=4]
at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:701)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:945)
11/05/04 14:09:30 WARN zookeeper.ClientCnxn: Ignoring exception during
shutdown input
java.net.SocketException: Transport endpoint is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:658)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:378)
at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
11/05/04 14:09:30 WARN zookeeper.ClientCnxn: Ignoring exception during
shutdown output
java.net.SocketException: Transport endpoint is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:669)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:386)
at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1004)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
Here is my code
Configuration config = new Configuration(false);
config.addResource(new Path("conf/hbase-dev.xml"));
HTable client = new HTable(config, "Feed");
Get get = new Get("1".getBytes());
get.addColumn("Comment".getBytes(), "c1".getBytes());
Result result = client.get(get);
byte[] val = result.value();
System.out.println("1----------------------------------------");
System.out.println("val:" + new String(val));
Thread.sleep(20000);
config = new Configuration(false);
config.addResource(new Path("conf/hbase-dev.xml"));
client = new HTable(config, "Feed");
result = client.get(get);
val = result.value();
System.out.println("2----------------------------------------");
System.out.println("val:" + new String(val));
Could you help me?
Thank a lot for support.
Best regards,