[
https://issues.apache.org/jira/browse/HADOOP-5681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699640#action_12699640
]
Sharad Agarwal commented on HADOOP-5681:
----------------------------------------
In the patch, RandomWriter is using JobConf which is deprecated. I think we can
avoid it if we add a constructor in JobClient. Something like:
{code}
public JobClient(Configuration conf) throws IOException {
this(new JobConf(conf));
}
{code}
Then the example code will be clean with no deprecated code. Other than that,
patch looks fine to me.
> Change org.apache.hadoop.examples.RandomWriter and
> org.apache.hadoop.examples.RandomTextWriter to use new mapreduce api.
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-5681
> URL: https://issues.apache.org/jira/browse/HADOOP-5681
> Project: Hadoop Core
> Issue Type: Sub-task
> Reporter: Amareshwari Sriramadasu
> Assignee: Amareshwari Sriramadasu
> Fix For: 0.21.0
>
> Attachments: patch-5681.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.