You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by krishna prasanna <sv...@yahoo.com> on 2009/06/25 09:30:49 UTC

Unable to run Jar file in Hadoop.

Hi, 
 
When i am trying to run a Jar in Hadoop, it is giving me the following error
 
hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar /user/hadoop/hadoop-0.18.0-examples.jar 
java.io.IOException: Error opening job jar: /user/hadoop/hadoop-0.18.0-examples.jar
    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:114)
    at java.util.jar.JarFile.<init>(JarFile.java:133)
    at java.util.jar.JarFile.<init>(JarFile.java:70)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
    ... 4 more
 
Here is the file permissions,
 rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49 /user/hadoop/hadoop-0.18.0-examples.jar
 
Some body help me on this 
 
Thanks in advance,
Krishna.


      Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com

Re: Unable to run Jar file in Hadoop.

Posted by krishna prasanna <sv...@yahoo.com>.
Thanks all problem is resolved now. Issues is the same, jar file is in HDFSwhich logically is wrong.
 
Krishna.
 
Hi Krishna,

You get this error when the jar file cannot be found. It looks like
/user/hadoop/hadoop-0.18.0-examples.jar is an HDFS path, when in fact
it should be a local path.

Cheers,
Tom

On Thu, Jun 25, 2009 at 9:43 AM, krishna prasanna<sv...@yahoo.com> wrote:
> Oh! thanks Shravan
>
> Krishna.
>
>
>
> ________________________________
> From: Shravan Mahankali <sh...@catalytic.com>
> To: core-user@hadoop.apache.org
> Sent: Thursday, 25 June, 2009 1:50:51 PM
> Subject: RE: Unable to run Jar file in Hadoop.
>
> Am as well having similar... there is no solution yet!!!
>
> 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: krishna prasanna [mailto:svk_prasanna@yahoo.com]
> Sent: Thursday, June 25, 2009 1:01 PM
> To: core-user@hadoop.apache.org
> Subject: Unable to run Jar file in Hadoop.
>
> Hi,
>
> When i am trying to run a Jar in Hadoop, it is giving me the following error
>
> hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar
> /user/hadoop/hadoop-0.18.0-examples.jar
> java.io.IOException: Error opening job jar:
> /user/hadoop/hadoop-0.18.0-examples.jar
>     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:114)
>     at java.util.jar.JarFile.<init>(JarFile.java:133)
>     at java.util.jar.JarFile.<init>(JarFile.java:70)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>     ... 4 more
>
> Here is the file permissions,
>  rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49
> /user/hadoop/hadoop-0.18.0-examples.jar
>
> Some body help me on this
>
> Thanks in advance,
> Krishna.
>
>
>       Cricket on your mind? Visit the ultimate cricket website. Enter
> http://cricket.yahoo.com
>
>
>      Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com


________________________________

From: Tom White <to...@cloudera.com>
To: core-user@hadoop.apache.org
Cc: shravan.mahankali@catalytic.com
Sent: Thursday, 25 June, 2009 2:54:36 PM
Subject: Re: Unable to run Jar file in Hadoop.



      Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com

Re: Unable to run Jar file in Hadoop.

Posted by Tom White <to...@cloudera.com>.
Hi Krishna,

You get this error when the jar file cannot be found. It looks like
/user/hadoop/hadoop-0.18.0-examples.jar is an HDFS path, when in fact
it should be a local path.

Cheers,
Tom

On Thu, Jun 25, 2009 at 9:43 AM, krishna prasanna<sv...@yahoo.com> wrote:
> Oh! thanks Shravan
>
> Krishna.
>
>
>
> ________________________________
> From: Shravan Mahankali <sh...@catalytic.com>
> To: core-user@hadoop.apache.org
> Sent: Thursday, 25 June, 2009 1:50:51 PM
> Subject: RE: Unable to run Jar file in Hadoop.
>
> Am as well having similar... there is no solution yet!!!
>
> 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: krishna prasanna [mailto:svk_prasanna@yahoo.com]
> Sent: Thursday, June 25, 2009 1:01 PM
> To: core-user@hadoop.apache.org
> Subject: Unable to run Jar file in Hadoop.
>
> Hi,
>
> When i am trying to run a Jar in Hadoop, it is giving me the following error
>
> hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar
> /user/hadoop/hadoop-0.18.0-examples.jar
> java.io.IOException: Error opening job jar:
> /user/hadoop/hadoop-0.18.0-examples.jar
>     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:114)
>     at java.util.jar.JarFile.<init>(JarFile.java:133)
>     at java.util.jar.JarFile.<init>(JarFile.java:70)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>     ... 4 more
>
> Here is the file permissions,
>  rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49
> /user/hadoop/hadoop-0.18.0-examples.jar
>
> Some body help me on this
>
> Thanks in advance,
> Krishna.
>
>
>       Cricket on your mind? Visit the ultimate cricket website. Enter
> http://cricket.yahoo.com
>
>
>      Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com

Re: Unable to run Jar file in Hadoop.

Posted by krishna prasanna <sv...@yahoo.com>.
Oh! thanks Shravan

Krishna.



________________________________
From: Shravan Mahankali <sh...@catalytic.com>
To: core-user@hadoop.apache.org
Sent: Thursday, 25 June, 2009 1:50:51 PM
Subject: RE: Unable to run Jar file in Hadoop.

Am as well having similar... there is no solution yet!!!

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: krishna prasanna [mailto:svk_prasanna@yahoo.com] 
Sent: Thursday, June 25, 2009 1:01 PM
To: core-user@hadoop.apache.org
Subject: Unable to run Jar file in Hadoop.

Hi, 
 
When i am trying to run a Jar in Hadoop, it is giving me the following error
 
hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar
/user/hadoop/hadoop-0.18.0-examples.jar 
java.io.IOException: Error opening job jar:
/user/hadoop/hadoop-0.18.0-examples.jar
    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:114)
    at java.util.jar.JarFile.<init>(JarFile.java:133)
    at java.util.jar.JarFile.<init>(JarFile.java:70)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
    ... 4 more
 
Here is the file permissions,
 rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49
/user/hadoop/hadoop-0.18.0-examples.jar
 
Some body help me on this 
 
Thanks in advance,
Krishna.


      Cricket on your mind? Visit the ultimate cricket website. Enter
http://cricket.yahoo.com


      Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com

Re: Unable to run Jar file in Hadoop.

Posted by Amareshwari Sriramadasu <am...@yahoo-inc.com>.
Is your jar file in local file system or hdfs?
The jar file should be in local fs.

Thanks
Amareshwari
Shravan Mahankali wrote:
> Am as well having similar... there is no solution yet!!!
>
> 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: krishna prasanna [mailto:svk_prasanna@yahoo.com] 
> Sent: Thursday, June 25, 2009 1:01 PM
> To: core-user@hadoop.apache.org
> Subject: Unable to run Jar file in Hadoop.
>
> Hi, 
>  
> When i am trying to run a Jar in Hadoop, it is giving me the following error
>  
> hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar
> /user/hadoop/hadoop-0.18.0-examples.jar 
> java.io.IOException: Error opening job jar:
> /user/hadoop/hadoop-0.18.0-examples.jar
>     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:114)
>     at java.util.jar.JarFile.<init>(JarFile.java:133)
>     at java.util.jar.JarFile.<init>(JarFile.java:70)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>     ... 4 more
>  
> Here is the file permissions,
>  rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49
> /user/hadoop/hadoop-0.18.0-examples.jar
>  
> Some body help me on this 
>  
> Thanks in advance,
> Krishna.
>
>
>       Cricket on your mind? Visit the ultimate cricket website. Enter
> http://cricket.yahoo.com
>
>   


RE: Unable to run Jar file in Hadoop.

Posted by Shravan Mahankali <sh...@catalytic.com>.
Am as well having similar... there is no solution yet!!!

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: krishna prasanna [mailto:svk_prasanna@yahoo.com] 
Sent: Thursday, June 25, 2009 1:01 PM
To: core-user@hadoop.apache.org
Subject: Unable to run Jar file in Hadoop.

Hi, 
 
When i am trying to run a Jar in Hadoop, it is giving me the following error
 
hadoop@krishna-dev:/usr/local/hadoop$ bin/hadoop jar
/user/hadoop/hadoop-0.18.0-examples.jar 
java.io.IOException: Error opening job jar:
/user/hadoop/hadoop-0.18.0-examples.jar
    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:114)
    at java.util.jar.JarFile.<init>(JarFile.java:133)
    at java.util.jar.JarFile.<init>(JarFile.java:70)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
    ... 4 more
 
Here is the file permissions,
 rw-r--r-   2 hadoop supergroup      91176 2009-06-25 12:49
/user/hadoop/hadoop-0.18.0-examples.jar
 
Some body help me on this 
 
Thanks in advance,
Krishna.


      Cricket on your mind? Visit the ultimate cricket website. Enter
http://cricket.yahoo.com