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