当尝试使用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
暂无答案!
目前还没有任何答案,快来回答吧!