Hadoop jar Missing Lookup

Source: Internet
Author: User
Tags zookeeper

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.