You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ron Bodkin (JIRA)" <ji...@apache.org> on 2010/09/09 09:17:33 UTC

[jira] Created: (MAPREDUCE-2056) run job options broken

run job options broken
----------------------

                 Key: MAPREDUCE-2056
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2056
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 0.20.2
            Reporter: Ron Bodkin


HADOOP-1622 was apparently broken in refactoring (I think in the refactoring that removed JobShell) a few releases ago. e.g., running

hadoop -libjars lib.jar main.jar Class 

now tries to run -libjars as a library.

It would be nice to fix this regression.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MAPREDUCE-2056) run job options broken

Posted by "Ron Bodkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908869#action_12908869 ] 

Ron Bodkin commented on MAPREDUCE-2056:
---------------------------------------

Ok thanks for clarifying that. I must have been looking at out of date information on the web. I checked and the latest Hadoop docs are accurate on this.


> run job options broken
> ----------------------
>
>                 Key: MAPREDUCE-2056
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2056
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.20.2
>            Reporter: Ron Bodkin
>
> HADOOP-1622 was apparently broken in refactoring (I think in the refactoring that removed JobShell) a few releases ago. e.g., running
> hadoop -libjars lib.jar main.jar Class 
> now tries to run -libjars as a library.
> It would be nice to fix this regression.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MAPREDUCE-2056) run job options broken

Posted by "Benjamin Darfler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907781#action_12907781 ] 

Benjamin Darfler commented on MAPREDUCE-2056:
---------------------------------------------

Seeing the same issue, I get the following stack trace

prompt$ hadoop jar -libjar thirdPartyJar.jar mapreduce.jar input output

Exception in thread "main" java.io.IOException: Error opening job jar: -libjar
	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:114)
	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)


> run job options broken
> ----------------------
>
>                 Key: MAPREDUCE-2056
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2056
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.20.2
>            Reporter: Ron Bodkin
>
> HADOOP-1622 was apparently broken in refactoring (I think in the refactoring that removed JobShell) a few releases ago. e.g., running
> hadoop -libjars lib.jar main.jar Class 
> now tries to run -libjars as a library.
> It would be nice to fix this regression.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MAPREDUCE-2056) run job options broken

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

Amareshwari Sriramadasu resolved MAPREDUCE-2056.
------------------------------------------------

    Resolution: Invalid

Your command should be
$ hadoop jar mapreduce.jar -libjars thirdPartyJar.jar input output
And Main class in mapreduce.jar should implement Tool interface. This usage is introduced in HADOOP-3417.

> run job options broken
> ----------------------
>
>                 Key: MAPREDUCE-2056
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2056
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.20.2
>            Reporter: Ron Bodkin
>
> HADOOP-1622 was apparently broken in refactoring (I think in the refactoring that removed JobShell) a few releases ago. e.g., running
> hadoop -libjars lib.jar main.jar Class 
> now tries to run -libjars as a library.
> It would be nice to fix this regression.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.