[ 
https://issues.apache.org/jira/browse/HADOOP-3743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amareshwari Sriramadasu updated HADOOP-3743:
--------------------------------------------

    Attachment: patch-3743.txt

Here is a patch doing the following:

1. Adds org.apache.hadoop.mapred.JobShell and 
org.apache.hadoop.mapred.TestJobShell
2. Adds the static Configuration in JobClient
3. Parsing in JobShell is removed as is not necessary. Because JobShell 
implements Tool and ToolRunner does the parsing for it. So, JobShell is used to 
set the static config for JobClient for the applications that doesnt implement 
ToolRunner.

bq. but we make it pass the original arguments strings to runJar.
We cannot send all the remaining arguments to RunJar, because RunJar expects 
the first argument to be the MainClass if there is no MainClass in the manifest.

A warning is printed in JobClient if _mapred.used.genericoptionparser_ is not 
set to _yes_
And also applications that implement ToolRunner, but use JobShell for -libjars 
or -files or -archives are warned.

Added earlier usage documentation patch again.

> -libjars, -files and -archives options do not work with 0.18
> ------------------------------------------------------------
>
>                 Key: HADOOP-3743
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3743
>             Project: Hadoop Core
>          Issue Type: Bug
>    Affects Versions: 0.17.0
>            Reporter: Mahadev konar
>            Assignee: Amareshwari Sriramadasu
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: patch-3743.txt, patch-3743.txt
>
>
> I am not sure how to get -libjars and -files working with 0.18. I tried all 
> the options but cannot get it runnning. I am filing this as a blocker until 
> we find out that its not broken. -- in that case we need to update the docs 
> with an example to say how it works. 

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

Reply via email to