hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheyenne Forbes <cheyenne.osanu.for...@gmail.com>
Subject Re: Cant load coprocessor
Date Fri, 19 May 2017 12:41:37 GMT
Are any of those the reason for the class to not be loading?

Regards,

Cheyenne O. Forbes

On Wed, May 17, 2017 at 12:18 PM, Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> Its in the right path and it contains the class, could one of these be the
> reason for my error:
>
>    1. the observer class and the endpoint class are in the same jar file
>    2. I viewed the MANIFEST.mf file of the jar and it only contains:
>
> *        Manifest-Version: 1.0        Created-By: 1.8.0_102 (Oracle
>    Corporation) *
>
>
> Regards,
>
> Cheyenne O. Forbes
>
>
> On Wed, May 17, 2017 at 1:56 AM, Jerry He <jerryjch@gmail.com> wrote:
>
>> 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.j
>> ava:2142)
>> > at
>> > org.apache.hadoop.hbase.master.MasterRpcServices.
>> > modifyTable(MasterRpcServices.java:1171)
>> > at
>> > org.apache.hadoop.hbase.protobuf.generated.MasterProtos$Mast
>> erService$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(RpcExec
>> utor.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