其他分享
首页 > 其他分享> > NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver

NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver

作者:互联网

phoenix启动报错:

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:469)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.testTableCoprocessorAttrs(RegionCoprocessorHost.java:353)
    at org.apache.hadoop.hbase.master.HMaster.checkClassLoading(HMaster.java:2293)
    at org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor(HMaster.java:2047)
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1948)
    at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:603)
    at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:413)
    ... 3 more

解决方法:

将 phoenix/phoenix-4.14.3-HBase-1.3-client.jar 也拷贝到hbase/lib下 记得重启hbase 

标签:java,URLClassLoader,NoClassDefFoundError,hadoop,BaseRegionObserver,apache,org,hb
来源: https://blog.csdn.net/qq_43224538/article/details/120151809