hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Nigam <nigamash...@gmail.com>
Subject Unable to init HBaseAdmin
Date Wed, 05 Sep 2012 23:57:08 GMT
Hi,
I have three node HBase cluster that works with HBase CLI. I am able to
login, create, drop tables using HBase CLI.
Hadoop's version is hadoop-0.20.2-cdh3u4 and HBase is hbase-0.90.6-cdh3u4
But when I try to connect via Java client, I am not able to instantiate
HBaseAdmin. Any idea why this would happen?

Here's exception I see in HBase Master logs -

WARN org.apache.hadoop.ipc.HBaseServer: IPC Server listener on 60000:
readAndProcess threw exception java.io.EOFException. Count of bytes read: 0
java.io.EOFException
        at java.io.DataInputStream.readFully(DataInputStream.java:197)
        at
org.apache.hadoop.io.DataOutputBuffer$Buffer.write(DataOutputBuffer.java:63)
        at
org.apache.hadoop.io.DataOutputBuffer.write(DataOutputBuffer.java:101)
        at org.apache.hadoop.io.UTF8.readChars(UTF8.java:216)
        at org.apache.hadoop.io.UTF8.readString(UTF8.java:208)
        at
org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:179)
        at
org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:171)
        at
org.apache.hadoop.hbase.ipc.HBaseServer$Connection.processHeader(HBaseServer.java:966)
        at
org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:950)
        at
org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:522)
        at
org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:316)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)


And here's snippet of exception stack from Java client

12/09/05 16:28:09 INFO zookeeper.ClientCnxn: Socket connection established
to shn-us-corp-us-centos4/10.1.10.63:2181, initiating session
12/09/05 16:28:09 WARN zookeeper.ClientCnxnSocket: Connected to an old
server; r-o mode will be unavailable
12/09/05 16:28:09 INFO zookeeper.ClientCnxn: Session establishment complete
on server shn-us-corp-us-centos4/10.1.10.63:2181, sessionid =
0x3998930fc6000a, negotiated timeout = 180000
12/09/05 16:28:09 INFO client.HConnectionManager$HConnectionImplementation:
getMaster attempt 0 of 10 failed; retrying after sleep of 1008
java.io.IOException: Call to shn-us-corp-v-centos1/10.1.10.60:60000 failed
on local exception: java.io.EOFException
    at
org.apache.hadoop.hbase.ipc.HBaseClient.wrapException(HBaseClient.java:954)
    at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:923)
    at
org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:150)
    at $Proxy10.getProtocolVersion(Unknown Source)
    at
org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:183)
    at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:335)
    at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:312)
    at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:364)
    at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:665)
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:109)
    at
com.shn.datastorage.dal.hbase.client.HBaseEventClient.createTable(HBaseEventClient.java:38)
    at
com.shn.datastorage.dal.hbase.HBaseEventClientTest.testCreateTable(HBaseEventClientTest.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.io.EOFException
    at java.io.DataInputStream.readInt(DataInputStream.java:375)
    at
org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:571)
    at
org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:505)




Thanks
Ashish

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