hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph LeVan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8513) -libjars parm does not work with "hadoop jar" command
Date Mon, 18 Jun 2012 19:29:42 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396176#comment-13396176

Ralph LeVan commented on HADOOP-8513:

I have tracked down the source of this bug.

The GenericOptionsParser is called to process the -libjars parm.  It is called with the args[]
array that is passed to the class's main() method.  That arg array starts with two unnamed
arguments representing the input and output directories.  Sadly, those are not legal GenericOptions
and the GenericOptionsParser quietly fails.

A workaround is to call the GenericOptionsParser yourself after having first removed those
2 leading parms.

I believe a satisfactory fix would be to add two optional unnamed leading parms to the CLI
Options list for GenericOptions and have the GenericOptionsParser ignore them.  I don't know
the CLI well enough to know if that is legal.
> -libjars parm does not work with "hadoop jar" command
> -----------------------------------------------------
>                 Key: HADOOP-8513
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8513
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ha
>    Affects Versions: 0.20.2
>         Environment: Linux
>            Reporter: Ralph LeVan
> When using the "hadoop jar" command the -libjars parm is ignored

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message