之前都是在Windows客户端操作HBase,今天把程序打成jar包在MR上跑的时候,报了错误,详细信息如下:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration
at hadoop02.exer.hbase010301.HBaseImportDemo.<init>(HBaseImportDemo.java:26)
at hadoop02.exer.hbase010301.HBaseImportDemo.main(HBaseImportDemo.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav