0
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

4

1 回答 1

0

命令应该是这样的:

hadoop jar /home/hadoop/work/testhadoop.jar orienit.hadoop.training.sed.SedJob /words /sed

您在包装后缺少 ClassName

于 2014-07-09T11:14:52.373 回答