1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

Error While executing Jar for MapReduce

Wrote MR program using eclipse , uploaded jar to hadoop, tried running and got into error. please someone can you pls help.

cloudera@cloudera-vm:~$ hadoop jar /user/cloudera/stockvolume/StockVolume.jar DezyreStockVolume /user/cloudera/stockvolume/input/NASDAQ_daily_prices_A.csv /user/cloudera/stockvolume/output
Exception in thread "main" java.io.IOException: Error opening job jar: /user/cloudera/stockvolume/StockVolume.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.(ZipFile.java:127)
at java.util.jar.JarFile.(JarFile.java:135)
at java.util.jar.JarFile.(JarFile.java:72)
at org.apache.hadoop.util.RunJar.main(RunJar.java:122)

1 Answer(s)


hi Ravi,

Please check whether the file is really a "jar" type. What you can also do is you can start the program even if the jar is existing in your local FS but make sure that input and output are refering to hdfs.

hadoop jar ~/StockVolume.jar DezyreStockVolume /user/cloudera/stockvolume/input/NASDAQ_daily_prices_A.csv /user/cloudera/stockvolume/output


Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)