hadoop运行报错处理

运行

[liujia@hadoopnode25232 ~]$ hadoop jar /user/zhx/MyTest.jar /user/zhx/test /user/zhx/1ooput

报错:

Exception in thread "main" java.io.IOException: Error opening job jar: /user/zhx/MyTest.jar

        at org.apache.hadoop.util.RunJar.main(RunJar.java:124)

Caused by: java.util.zip.ZipException: error in opening zip file

        at java.util.zip.ZipFile.open(Native Method)

        at java.util.zip.ZipFile.<init>(ZipFile.java:127)

        at java.util.jar.JarFile.<init>(JarFile.java:135)

        at java.util.jar.JarFile.<init>(JarFile.java:72)

        at org.apache.hadoop.util.RunJar.main(RunJar.java:122)

后来发现jar包路径问题,我把jar复制到/user/zhx下 没起作用,后来改成原路径

[liujia@hadoopnode25232 ~]$ hadoop jar /home/liujia/MyTest.jar /user/zhx/test /user/zhx/oooput

运行成功

你可能感兴趣的:(hadoop)