You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Farhat Khan (JIRA)" <ji...@apache.org> on 2012/10/22 09:08:12 UTC

[jira] [Created] (HADOOP-8950) Unable to run demo example hadoop program

Farhat Khan created HADOOP-8950:
-----------------------------------

             Summary: Unable to run demo example hadoop program
                 Key: HADOOP-8950
                 URL: https://issues.apache.org/jira/browse/HADOOP-8950
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Farhat Khan


hduser@ubuntu:~/hadoop$ hadoop jar /bin/hadoop-0.20.2-examples.jar
Exception in thread "main" java.io.IOException: Error opening job jar: /bin/hadoop-0.20.2-examples.jar
	at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
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:127)
	at java.util.jar.JarFile.<init>(JarFile.java:135)
	at java.util.jar.JarFile.<init>(JarFile.java:72)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
hduser@ubuntu:~/hadoop$ 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (HADOOP-8950) Unable to run demo example hadoop program

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Loughran resolved HADOOP-8950.
------------------------------------

    Resolution: Invalid

You're giving an absolute path /bin/hadoop-0.20.2-examples.jar when you should be giving a relative one. 

Please, please please look at the stack traces before filing JIRAs, as if something works for everyone else but you, it's usually something happening at your end.
                
> Unable to run demo example hadoop program
> -----------------------------------------
>
>                 Key: HADOOP-8950
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8950
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Farhat Khan
>
> hduser@ubuntu:~/hadoop$ hadoop jar /bin/hadoop-0.20.2-examples.jar
> Exception in thread "main" java.io.IOException: Error opening job jar: /bin/hadoop-0.20.2-examples.jar
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> 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:127)
> 	at java.util.jar.JarFile.<init>(JarFile.java:135)
> 	at java.util.jar.JarFile.<init>(JarFile.java:72)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
> hduser@ubuntu:~/hadoop$ 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira