io Exception error in wordcount example

Posted by Anitha on Ask Ubuntu See other posts from Ask Ubuntu or by Anitha
Published on 2012-06-02T09:11:54Z Indexed on 2012/06/02 10:51 UTC
Read the original article Hit count: 306

Filed under:
|

I have installed Hadoop 1.0.3 in Ubuntu 12.04 version (64bit) based on michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/ .

I am trying to run a mapreduce job using the wordcount example. Running the command

hduser@ubuntu: $/usr/local/hadoop/bin/hadoop jar hadoop-examples-1.0.3.jar wordcount /user/hduser/gutenberg /user/hduser/gutenberg-output

gives the following error:

Warning: $HADOOP_HOME is deprecated.

Exception in thread "main" java.io.IOException: Error opening job jar: hadoop-examples-1.0.3.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:131)
    at java.util.jar.JarFile.<init>(JarFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:87)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

Thanks in advance.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about hadoop