1、问题描述
HBase启动时异常如下:
java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.hbase.io.asyncfs.ProtobufDecoder.<init>(ProtobufDecoder.java:69)
2、问题原因
HBase的jar包和Hadoop的jar包有冲突,导致服务没有起来。
3、解决方法
cd /home/hadoop/app/hbase/conf
vi hbase-env.sh
export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP="true" #把这行的注释打开
从新启动HBase就可以了。
- IllegalArgumentException HBase-Hbase declaring instance objectillegalargumentexception hbase-hbase declaring hbase-hbase hbase优缺点hbase-hbase场景 hbase-hbase hbase shell illegalargumentexception illegalargumentexception程序 illegalargumentexception statements collection secret illegalargumentexception must key illegalargumentexception character invalid method illegalargumentexception时报mybatis类型