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

Gera Shegalov commented on HADOOP-12803:
----------------------------------------

Good points [~jlowe]! 

Regarding the conf property for main class, we can use GenericOptionParser to 
populate a separate Configuration object from the command line 
-Dhadoop.util.runjar.main-class=my.ToolClass, just to extract this property. We 
will still pass all the args to the main class in order not to break the 
backwards-compatibility.  Unfortunately using conf might cause issues with 
HADOOP-11048.

Introducing a runjar command for this JIRA is not worth it from my perspective. 


> RunJar should allow overriding the manifest Main-Class via a cli parameter.
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-12803
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12803
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 2.6.4
>            Reporter: Gera Shegalov
>            Assignee: Gera Shegalov
>         Attachments: HADOOP-12803.001.patch
>
>
> Currently there is no way to override the main class in the manifest even 
> though main class can be passed as a parameter.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to