hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: (HConnectionManager.java:389)
Date Mon, 24 Feb 2014 17:02:43 GMT
Can you check the version of protobuf jar in the classpath of your client ?

2.5.0 of protobuf is expected:

[INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile




On Mon, Feb 24, 2014 at 9:54 AM, shapoor <esmaili_607@yahoo.com> wrote:

> 14/02/24 16:51:20 INFO zookeeper.ZooKeeper: Initiating client connection,
> connectString=192.168.111.212:2181 sessionTimeout=90000
> watcher=hconnection-0x627fbcda, quorum=192.168.111.212:2181,
> baseZNode=/hbase
> 14/02/24 16:51:20 INFO zookeeper.ClientCnxn: Opening socket connection to
> server slave02/192.168.111.212:2181. Will not attempt to authenticate
> using
> SASL (unknown error)
> 14/02/24 16:51:20 INFO zookeeper.ClientCnxn: Socket connection established
> to slave02/192.168.111.212:2181, initiating session
> 14/02/24 16:51:20 INFO zookeeper.RecoverableZooKeeper: Process
> identifier=hconnection-0x627fbcda connecting to ZooKeeper
> ensemble=192.168.111.212:2181
> 14/02/24 16:51:20 INFO zookeeper.ClientCnxn: Session establishment complete
> on server slave02/192.168.111.212:2181, sessionid = 0x1446491571a0008,
> negotiated timeout = 40000
> Exception in thread "main" java.io.IOException:
> java.lang.reflect.InvocationTargetException
>         at
>
> org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:389)
>         at
>
> org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:282)
>         at at.mypackage.configuration.HbaseConf.main(HbaseConf.java:60)
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at
>
> org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:387)
>         ... 2 more
> Caused by: java.lang.VerifyError: class
> org.apache.hadoop.hbase.protobuf.generated.ClientProtos$Result overrides
> final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(Unknown Source)
>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.access$100(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at
>
> org.apache.hadoop.hbase.protobuf.ProtobufUtil.<clinit>(ProtobufUtil.java:172)
>         at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64)
>         at
>
> org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:69)
>         at
>
> org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
>         at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:801)
>         at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:633)
>
> regards
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/HConnectionManager-java-389-tp4056268p4056275.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

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