Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration

后端 未结 5 756
慢半拍i
慢半拍i 2020-12-05 22:11

I am using Hadoop 1.0.3 and HBase 0.94.22. I am trying to run a mapper program to read values from a Hbase table and output them to a file. I am getting the following error:

5条回答
  •  醉酒成梦
    2020-12-05 22:42

    I got the fix to the problem, I had not added the hbase classpath in the hadoop-env.sh file. Below is the one I added to make the job work.

    $ export HADOOP_CLASSPATH=$HBASE_HOME/hbase-0.94.22.jar:\
        $HBASE_HOME/hbase-0.94.22-test.jar:\
        $HBASE_HOME/conf:\
        ${HBASE_HOME}/lib/zookeeper-3.4.5.jar:\
        ${HBASE_HOME}/lib/protobuf-java-2.4.0a.jar:\
        ${HBASE_HOME}/lib/guava-11.0.2.jar
    

提交回复
热议问题