错误2998:未处理的内部错误org/apache/hadoop/hbase/filter/writeablebytearraycomplable可写

bpzcxfmw  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(311)

从搜索中,我发现了这个问题,我有同样的问题,按照指示。
cdh4 hbase使用pig错误2998 java.lang.noclassdeffounderror:org/apache/hadoop/hbase/filter/filter
但对我没用。另外,我正在使用ubuntu和hadoop-2.2.0,hbase-0.96.1-hadoop2和pig-0.12.0。
巴什尔

export JAVA_HOME=/usr
export HADOOP_INSTALL=/home/ubuntu/hadoop-2.2.0
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL

export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_COMMON_HOME}/lib/native
export HADOOP_OPTS="-Djava.library.path=${HADOOP_COMMON_HOME}/lib"
export PIG_HOME=/home/ubuntu/pig-0.12.0
export HBASE_HOME=/home/ubuntu/hbase-0.96.1-hadoop2
export PIG_CLASSPATH="'${HADOOP_INSTALL}/bin/hbase classpath':$PIG_HOME/bin"

清管器

Pig Stack Trace
---------------
ERROR 2998: Unhandled internal error.     
org/apache/hadoop/hbase/filter/WritableByteArrayComparable

java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/WritableByteArrayComparable

清管器特性

fs.defaultFS=hdfs://hadoop-master/
mapred.job.tracker=hadoop-master:8021
pbgvytdp

pbgvytdp1#

我说对了
export pig\u classpath=$pig\u home/pig-0.12.0-without hadoop.jar:$hbase\u home/hbase-0.94.1.jar:$hbase\u home/lib/:$hadoop\u common\u lib\u native\u dir/lib/:$pig\u classpath

相关问题