In running Hadoop and hbase some jar packages are not added to the project, causing the class to not be found, the following is a statistical analysis of the problem, as shown in the following table:
Error |
The corresponding missing package |
Java.lang.ClassNotFoundException:com.google.common.base.Preconditions; |
Guava-11.0.2.jar |
Java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory |
Commons-logging.jar |
Java.lang.ClassNotFoundException:org.apache.commons.collections.map.UnmodifiableMap |
Commons-collection.jar |
Java.lang.ClassNotFoundException:org.apache.hadoop.util.PlatformName |
Hadoop-auth.jar |
Java.lang.ClassNotFoundException:org.slf4j.LoggerFactory |
Slf4j-api-1.7.5.jar |
Java.lang.ClassNotFoundException:org.apache.zookeeper.KeeperException |
Zookeeper-3.4.6.jar |
java.lang.classnotfoundexception:org.apache.hadoop.hbase.protobuf.generated.masterprotos$masterservice$ Blockinginterface |
Hbase-protocol-1.0.1.1.jar |
Java.lang.noclassdeffounderror:org/apache/htrace/trace |
Htrace.jar |
Java.lang.ClassNotFoundException:com.google.protobuf.ServiceException |
Protobuf-java-2.5.0.jar |
Java.lang.ClassNotFoundException:io.netty.channel.EventLoopGroup |
Netty-all-4.0.23.final.jar |
Java.lang.noclassdeffounderror:org/apache/commons/lang/stringutils |
Commons-lang.jar; |
Java.lang.noclassdeffounderror:org/apache/commons/configuration/configuration |
Commons-configuration.jar |
Java.lang.ClassNotFoundException:org.apache.commons.cli.ParseException |
Commons-cli-1.2.jar |
Java.lang.ClassNotFoundException:org.htrace.Trace |
Htrace-core-3.0.4.jar |
According to the above hints, to their own Hadoop and hbase query-related packages added to the project can be.