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

后端 未结 5 744
慢半拍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:30

    I tried editing the hadoop-env.sh file, but the changes mentioned here didn't work for me.

    What worked is this:

    export HADOOP_CLASSPATH="$HADOOP_CLASSPATH:$HBASE_HOME/lib/*"
    

    I just added that at the end of my hadoop-env.sh. Do not forget to set your HBASE_HOME variable. You can also replace the $HBASE_HOME with the actual path of your hbase installation.

提交回复
热议问题