我正在尝试在hbase-1.0.0上运行completebulkload。但它遇到了一个错误,
“java.lang.noclassdeffounderror:org/apache/hadoop/hbase/filter/filter”
$hadoop jar/opt/hbase-1.0.0/lib/hbase-server-1.0.0.jar completebulkload-c../conf/hbase-site.xml临时建筑
线程“main”java.lang.noclassdeffounderror中出现异常:org/apache/hadoop/hbase/filter/filter
用/opt/hbase-1.0.0/lib/.jar文件设置hadoop\u类路径没有帮助。我用jar命令用${hbase\u home}/lib/.jar检查所有jar文件。奇怪的是,任何文件都不包含org.apache.hadoop.hbase.filter.filter类。少了什么?班级档案在哪里?
提前谢谢
1条答案
按热度按时间avwztpqn1#
我发现org/apache/hadoop/hbase/filter/filter包含在${hbase\u home}/lib/hbase-client-1.0.0.jar中。
总之,我需要下面的hadoop\u类路径来运行completebulkload。
hadoop\u classpath=${hbase\u home}/lib/hbase-server-1.0.0.jar:${hbase\u home}/lib/hbase-server-1.0.0-tests.jar:${hbase\u home}/lib/zookeeper-3.4.5.jar:${hbase\u home}/lib/protobuf-java-2.5.0.jar:${hbase\u home}/lib/guava-11.0.2.jar:${hbase\u home}/lib/hbase-client-1.0.jar:${hbase\u home}/lib/hbase-common-1.0。0.jar:${hbase\u home}/lib/hbase-protocol-1.0.0.jar:${hbase\u home}/lib/htrace-core-3.1.0-incubating.jar:${hbase\u home}/lib/netty-all-4.0.23.final.jar