hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry He <jerry...@gmail.com>
Subject Re: Cant load coprocessor
Date Wed, 17 May 2017 06:56:51 GMT
Try to see if you have the right jar in the right path and it contains your
coprocessor class.

The code says:

...
} catch (ClassNotFoundException e) {
        throw new IOException("Class " + attr.getClassName() + " cannot be
loaded", e);


Thanks.

Jerry

On Tue, May 16, 2017 at 6:49 PM, Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> Why when I run:
>
>
>
> *alter 'USERS', 'coprocessor' =>
> 'hdfs://9c0def24f75:9000/hbase/lib/myJar.jar|org.
> apache.hadoop.hbase.mypackage.MyCoprocessor|805306366|'
> *I get:
>
> *ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: Class
> org.apache.hadoop.hbase.*
>
>
>
>
>
>
>
>
>
>
>
> *mypackage.MyCoprocessor cannot be loaded Set hbase.table.sanity.checks to
> false at conf or table descriptor if you want to bypass sanity checks    at
> org.apache.hadoop.hbase.master.HMaster.warnOrThrowExceptionForFailure
> (HMaster.java:1754)
> at
> org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor(
> HMaster.java:1615)
> at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:2142)
> at
> org.apache.hadoop.hbase.master.MasterRpcServices.
> modifyTable(MasterRpcServices.java:1171)
> at
> org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.
> callBlockingMethod(MasterProtos.java:55680)
> at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2188)    at
> org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)    at
> org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
> at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
> at java.lang.Thread.run(Thread.java:745)*
>
> Regards,
>
> Cheyenne O. Forbes
>

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