hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shravan Mahankali" <shravan.mahank...@catalytic.com>
Subject RE: java.io.IOException: Error opening job jar
Date Mon, 22 Jun 2009 11:42:47 GMT

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 - netopshelpdesk@catalytic.com
-----Original Message-----
From: Ramakishore Yelamanchilli [mailto:kyelaman@cisco.com] 
Sent: Monday, June 22, 2009 5:04 PM
To: core-user@hadoop.apache.org; shravan.mahankali@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.mahankali@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:netopshelpdesk@catalytic.com>
netopshelpdesk@catalytic.com

  _____  

From: Harish Mallipeddi [mailto:harish.mallipeddi@gmail.com] 
Sent: Monday, June 22, 2009 4:03 PM
To: core-user@hadoop.apache.org; shravan.mahankali@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.mahankali@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:netopshelpdesk@catalytic.com>
netopshelpdesk@catalytic.com







-- 
Harish Mallipeddi
http://blog.poundbang.in

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message