Mapreduce job error


2 Answer(s)


Hi Sreeswetha,

The hadoop is not able to open the jar file.

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

Please open the jar in eclipse and rebuilt in again.

Hope this helps.

Thanks.


Hi Sreeswetha,

Use below command, you need to provide the class you want to run

hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples-2.0.0-cdh4.7.0.jar teragen 1000 /user/cloudera/teragen-dta

Here the first parameter is class - teragen

second parameter is no of 100 byte records need to generate - 1000

3rd parameter is path to generate data - user/cloudera/teragen-dta

hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples-2.0.0-cdh4.7.0.jar teragen 1000 /user/cloudera/teragen-dta