简体   繁体   English

在 HBASE 中创建表时找不到类异常

[英]Class not found exception while creating a table in HBASE

After succesfull installation and configuration of HBase on top of HDFS on our local servers, I did the same configuration on our OVH VPS machines, however I am getting a strange error.在我们本地服务器上的 HDFS 之上成功安装和配置 HBase 后,我在我们的 OVH VPS 机器上做了相同的配置,但是我收到一个奇怪的错误。

Entire setup is starting fine, however, when I try to create a table from hbase shell, I am getting following error:整个设置开始正常,但是,当我尝试从 hbase shell 创建表时,出现以下错误:

2017-05-20 11:59:19,256 ERROR [RpcServer.FifoWFPBQ.default.handler=29,queue=2,port=16000] master.MasterRpcServices: Region server prdhad001,16020,1495274311971 reported a fatal error: ABORTING region server prdhad001,16020,1495274311971: The coprocessor org.apache.hadoop.hbase.client.coprocessor.AggregateImplementation threw java.lang.ClassNotFoundException: org.apache.hadoop.hbase.client.coprocessor.AggregateImplementation Cause: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.client.coprocessor.AggregateImplementation at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 2017-05-20 11:59:19,256 错误 [RpcServer.FifoWFPBQ.default.handler=29,queue=2,port=16000] master.MasterRpcServices:区域服务器 prdhad001、16020、1495274311971 报告了区域服务器 prdhad001、16020、1495274311971 的致命错误 10 ,16020,1495274311971: 协处理器 org.apache.hadoop.hbase.client.coprocessor.AggregateImplementation 抛出 java.lang.ClassNotFoundException: org.apache.hadoop.hbase.client.coprocessor.AggregateImplementation 原因: java.lang.ClassNotFoundException: org. apache.hadoop.hbase.client.coprocessor.AggregateImplementation at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

and after that entire hbase is getting corrupted and throwing numerous errors.在那之后,整个 hbase 被损坏并引发了许多错误。 It seems that it doesn't load some jars properly , however jar is present inside lib folder.似乎它没有正确加载一些 jar,但是 jar 存在于 lib 文件夹中。

My configuration :我的配置:
Virtualization: kvm Operating System: CentOS Linux 7 (Core)虚拟化:kvm 操作系统:CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7 CPE 操作系统名称:cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.16.1.el7.x86_64内核:Linux 3.10.0-514.16.1.el7.x86_64
Architecture: x86-64 Hadoop 2.7.3 HBase 1.3.0架构:x86-64 Hadoop 2.7.3 HBase 1.3.0

export PATH=$PATH:$HADOOP_HOME/bin export HADOOP_HOME=/usr/local/hadoop export PATH=$PATH:$HADOOP_HOME/bin导出路径=$PATH:$HADOOP_HOME/bin 导出HADOOP_HOME=/usr/local/hadoop 导出路径=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin export HADOOP_MAPRED_HOME=$HADOOP_HOME export HADOOP_COMMON_HOME=$HADOOP_HOME export HADOOP_HDFS_HOME=$HADOOP_HOME export YARN_HOME=$HADOOP_HOME export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib" export HBASE_CLASSPATH=/usr/local/hbase/lib/导出 PATH=$PATH:$HADOOP_HOME/sbin 导出 HADOOP_MAPRED_HOME=$HADOOP_HOME 导出 HADOOP_COMMON_HOME=$HADOOP_HOME 导出 HADOOP_HDFS_HOME=$HADOOP_HOME 导出 YARN_HOME=$HADOOP_HOME 导出 HADOOP_COMMON_LIB_NATIVEHAOPn. $HADOOP_HOME/lib" 导出 HBASE_CLASSPATH=/usr/local/hbase/lib/

I figured it out, inside the hbase-site.xml I had following property added:我想通了,在 hbase-site.xml 中,我添加了以下属性:

<property>
    <name>hbase.coprocessor.region.classes</name>
    <value>org.apache.hadoop.hbase.coprocessor.AggregateImplementation</value>
 </property> 

which is used for the coprocessor, which we don't use at the moment.用于协处理器,我们目前不使用。 Removing this part fixed the issue, however, I guess that if we would like to use coprocessor in the future we might encounter this issue again do any other help will bee appreciated.删除这部分解决了这个问题,但是,我想如果我们将来想使用协处理器,我们可能会再次遇到这个问题,请做任何其他帮助将不胜感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM