Hadoop statistics Word program WordCount hint WordCount class not found

Source: Internet
Author: User

Follow the tutorial here: http://www.imooc.com/learn/391 The last step in WordCount has been prompted with the following error:

ExceptioninchThread"Main"Java.lang.ClassNotFoundException:WordCount at java.net.urlclassloader$1. Run (URLClassLoader.java:366) at java.net.urlclassloader$1. Run (URLClassLoader.java:355) at java.security.AccessController.doPrivileged (Native Method) at Java.net.URLClassLoader.findClass (Urlclasslo Ader.java:354) at Java.lang.ClassLoader.loadClass (Classloader.java:425) at Java.lang.ClassLoader.loadClass (Classloader.java:358At JAVA.LANG.CLASS.FORNAME0 (Native Method) at Java.lang.Class.forName (Class.java:278) at Org.apache.hadoop.util.RunJar.main (Runjar.java:153)

Guessing is the package name, but after adding the package name in the CLI is still not possible, finally by deleting the Wordcount.java Source:

Package org.apache.hadoop.examples;

Resolved the problem.

The first contact with Hadoop, the root cause has not been found.

Hadoop statistics Word program WordCount hint WordCount class not found

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.