hbase协处理器加载失败,出现noclassdeffounderror

bfrts1fy  于 2021-06-07  发布在  Hbase
关注(0)|答案(0)|浏览(364)

当尝试使用hbase shell加载协处理器时,我遇到了这个问题。尽管我在jar中有corprocessor类及其依赖项,jar被复制到hdfs位置。

hbase(main):001:0> alter 'users', METHOD => 'table_att', 'coprocessor'=>'hdfs://localhost:54310/home/hbase/coprocessor.jar|com.deepak.hbase.coprocessor.RegionObserver||'

ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:474)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题