hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Coprocessor exception in ResionServer log
Date Tue, 11 Oct 2016 01:34:45 GMT
Could be related to incompatible protobuf versions.

What's the output of:
mvn dependency:tree

Please pastebin it - it should be fairly long.

On Mon, Oct 10, 2016 at 6:29 PM, big data <bigdatabase@outlook.com> wrote:

> Dear all,
>
> I've created an Endpoint coprocessor, and deployed it through hbase shell.
>
> Then when I run client code, when code
>
> response = rpcCallback.get();
>
> rpcCallback.get() return null;
>
> in the resion server log, i found this exception:
>
> 2016-10-10 15:50:07,636 ERROR org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost:
> Failed to load coprocessor AndEndPoint
>
> java.lang.LinkageError: loader constraint violation in interface itable
> initialization: when resolving method
> "AndEndPoint.getService()Lcom/google/protobuf/Service;" the class loader
> (instance of
> org/apache/hadoop/hbase/util/CoprocessorClassLoader) of the current
> class, AndEndPoint, and the class loader (instance of
> sun/misc/Launcher$AppClassLoader) for interface org/apache/hadoop/hbase/coprocessor/CoprocessorService
> have different Class objects for
> the type otobuf/Service; used in the signature
>
> Any solution to solve this problem?
>
> thanks.
>
>
> My pom like this:
>
> <dependency>
>     <groupId>org.apache.hadoop</groupId>
>     <artifactId>hadoop-client</artifactId>
>     <version>2.6.0</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.hadoop</groupId>
>     <artifactId>hadoop-common</artifactId>
>     <version>2.6.0</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase-server</artifactId>
>     <version>1.0.1</version>
> </dependency>
>
>
>

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