i am new to HBASE i am trying to load a data into HBASE from HDFS but i am not able to whenever i run MR i get same
error ” Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration”
all class files are there i am not understanding what is wrong .To run MR first i compiled sourcecode and included hadoop and hbase libraries in classpath then i made jar and run it its giving same error.i tried the command
“hbase HBaseTemperatureImporter input” then it gives error as “java.lang.NoClassDefFoundError: HBaseTemperatureImporter”
this is also not working.Can anyone suggest me what is wrong ? is there any problem with hbase installation or missed any step while running MR for Hbase.
thanks in advance.
Well this means that your class is not in the classpath.
first of all check that your jar contains this class, you can list all the contents by doing:
jar -tf <yourjar.jar>The class must be there, if it isn’t you’ll need to review your build process. In case it’s there, just try adding this line in your hadoop job configuration: