【解决】自己编写Wordcount代码上传集群上运行时报错:Exception in thread "main" java.lang.ClassNotFoundException: WordCount

报错信息:ClassNotFoundException: WordCount

[root@rxdonny fs_testdir]# hadoop jar /fs_testdir/mytest.jar WordCount /testdir /output_mine
Exception in thread "main" java.lang.ClassNotFoundException: WordCount
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:232)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:153)

找不到Wordcount!!!!!~~~~~~~请写上WordCount的全类名!!··解决

[root@rxdonny fs_testdir]# hadoop jar /fs_testdir/mytest.jar com.test.WordCount /testdir /output_mine

你可能感兴趣的:(采坑日记)