Hi Harish, PFA the AggregateWordCount.jar file.
I was able to open this jar file using a sample Java file written with JarFile api, and this is the same api used inside org.apache.hadoop.util.RunJar class, where my jar is rejected and throwing the error!!! Also find attached the sample java file - RunJar1.java Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - netopshelpd...@catalytic.com -----Original Message----- From: Ramakishore Yelamanchilli [mailto:kyela...@cisco.com] Sent: Monday, June 22, 2009 5:04 PM To: core-user@hadoop.apache.org; shravan.mahank...@catalytic.com; 'Harish Mallipeddi' Subject: RE: java.io.IOException: Error opening job jar Can you attach the jar file you have? -Ram -----Original Message----- From: Shravan Mahankali [mailto:shravan.mahank...@catalytic.com] Sent: Monday, June 22, 2009 3:49 AM To: 'Harish Mallipeddi'; core-user@hadoop.apache.org Subject: RE: java.io.IOException: Error opening job jar Thanks for your reply Harish. Am running this example from with in the directory containing AggregateWordCount.jar file. But even then, I have this issue. Earlier I had issue of java.lang.ClassNotFoundException: org.apache.hadoop.examples.AggregateWordCount$WordCountPlugInClass, so in some thread some one have suggested using -libjars, so I tried, but there was not great!!! I did not think it is SUCH A HARD JOB (almost 20+ hours with no success) to just run an example provided by Hadoop in its distribution!!! Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - <mailto:netopshelpd...@catalytic.com> netopshelpd...@catalytic.com _____ From: Harish Mallipeddi [mailto:harish.mallipe...@gmail.com] Sent: Monday, June 22, 2009 4:03 PM To: core-user@hadoop.apache.org; shravan.mahank...@catalytic.com Subject: Re: java.io.IOException: Error opening job jar It cannot find your job jar file. Make sure you run this command from the directory that has the AggregateWordCount.jar (and you can lose the -libjars flag too - you need that only if you need to specify extra jar dependencies apart from your job jar file). - Harish On Mon, Jun 22, 2009 at 3:45 PM, Shravan Mahankali <shravan.mahank...@catalytic.com> wrote: Hi Group, I was having trouble getting through an example Hadoop program. I have searched the mailing list but could not find any thing useful. Below is the issue: 1) Executed below command to submit a job to Hadoop: /hadoop-0.18.3/bin/hadoop jar -libjars AggregateWordCount.jar org.apache.hadoop.examples.AggregateWordCount words/* aggregatewordcount_output 2 textinputformat 2) Following is the error: java.io.IOException: Error opening job jar: org.apache.hadoop.examples.AggregateWordCount at org.apache.hadoop.util.RunJar.main(RunJar.java:90) 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:203) at java.util.jar.JarFile.<init>(JarFile.java:132) at java.util.jar.JarFile.<init>(JarFile.java:70) at org.apache.hadoop.util.RunJar.main(RunJar.java:88) ... 4 more Please advice. Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - <mailto:netopshelpd...@catalytic.com> netopshelpd...@catalytic.com -- Harish Mallipeddi http://blog.poundbang.in