Exception in thread "main" java.lang.ClassNotFoundException: orienit.hadoop.training.sed
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:266)
at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
在ubuntu中运行这个......
在终端我的 cmd 是:hadoop jar /home/hadoop/work/testhadoop.jar oriinit.hadoop.training.sed /words /sed