You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by janani venkat <ja...@gmail.com> on 2010/02/20 09:29:43 UTC
wordcount program-execution problem
I tried executing the wordcount.java code but repeatedly gettin the
following error. It is compiling properly.
bin/hadoop jar wordcount.jar org.sogou.WordCount in out
Exception in thread "main" java.io.IOException: Error opening job jar:
wordcount.jar
at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
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:88)
Can someone help me out?
Regards
Janani
Re: wordcount program-execution problem
Posted by Ted Yu <yu...@gmail.com>.
You can notice that absolute path to jar is used in
http://hadoop.apache.org/common/docs/current/mapred_tutorial.html#Usage:
bin/hadoop jar /usr/joe/wordcount.jar
It's CLASSPATH issue.
On Sat, Feb 20, 2010 at 12:29 AM, janani venkat <ja...@gmail.com>wrote:
> I tried executing the wordcount.java code but repeatedly gettin the
> following error. It is compiling properly.
>
> bin/hadoop jar wordcount.jar org.sogou.WordCount in out
>
> Exception in thread "main" java.io.IOException: Error opening job jar:
> wordcount.jar
> at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> 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:88)
>
> Can someone help me out?
>
> Regards
> Janani
>