error running jar on openlab
When we try to run the jar file on openlab we get this error:
stewartd@tom-tucker % bin/hadoop jar ../ass5.jar input output
java.io.IOException: Error opening job jar: ../ass5.jar
at org.apache.hadoop.util.RunJar.main(RunJar.java:91)
at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
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:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at org.apache.hadoop.util.RunJar.main(RunJar.java:89)
... 4 more
We've tried re-creating the jar multiple times, but same error.
</init></init></init>
stewartd@tom-tucker % bin/hadoop jar ../ass5.jar input output
java.io.IOException: Error opening job jar: ../ass5.jar
at org.apache.hadoop.util.RunJar.main(RunJar.java:91)
at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
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:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at org.apache.hadoop.util.RunJar.main(RunJar.java:89)
... 4 more
We've tried re-creating the jar multiple times, but same error.
</init></init></init>
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?try:
bin/hadoop jar ../ass5.jar ir.assignment5.TheClass input output
Replace "ir.assignment5.TheClass" with the package and class of whatever your assignment is. -
Inappropriate?Is the ../ supposed to be there in front of ass5.jar? That wasn't there when we did the example:
bin/hadoop jar hadoop-0.19.0-examples.jar wordcount input output -
Inappropriate?it's the file path to whereever the jar is.
So if it's one directory up you need the ..
if it's in the same directory you don't. -
Inappropriate?Anyone solve this one? I'm getting it also.
EDIT:
lol stupid error, I just had the JAR file name wrong. For me, it was:
bin/hadoop jar hadooptest.jar PostingList input output
INSTEAD OF
bin/hadoop jar hadoop-0.19.0-hadooptest.jar PostingList input output
My error was that I thought the hadoop-0.19.0- was part of the directory structure (which it sort of is, that's the name of my folder where hadoop is in).
Loading Profile...



EMPLOYEE

