[
https://issues.apache.org/jira/browse/MAPREDUCE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Harsh J resolved MAPREDUCE-57.
------------------------------
Resolution: Not A Problem
This isn't an issue anymore.
And submit job being called twice is not proper use. We check early today
though.
> The JobConf instance passed to JobClient is unnecessarily modified
> ------------------------------------------------------------------
>
> Key: MAPREDUCE-57
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-57
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Nigel Daley
> Assignee: Owen O'Malley
>
> The JobConf instance passed to the JobClient.submitJob method is modified by
> that method. This side effect is surprising. IMHO, the passed in JobConf
> should either be defensively copied or the side effect should be documented.
> Trying to reuse a JobConf instance in multiple calls to JobClient.submitJob
> causes the following exception:
> java.io.IOException: /dfstmp/mapred/system/submit_r7mxti/job.jar: No such
> file or directory
> at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:80)
> at
> org.apache.hadoop.dfs.DistributedFileSystem.copyFromLocalFile(DistributedFileSystem.java:188)
> at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:291)
> at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:368)
> at org.apache.hadoop.examples.NNBench.main(NNBench.java:274)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
> at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:143)
> at
> org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:41)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
--
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