[ https://issues.apache.org/jira/browse/HDFS-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914670#action_12914670 ]
Nicolas Spiegelberg commented on HDFS-1418: ------------------------------------------- HBase uses 'mapred.task.id' to keep track of RS<->DFSClient. It needs to be compatible with 0.20-append & 0.22. Could this patch just be changed to: {code} String taskId = conf.get("mapreduce.task.attempt.id", conf.get("mapred.task.id")); {code} Which would avoid the warnings and provide deprecation on the HDFS side as well? > DFSClient Uses Deprecated "mapred.task.id" Configuration Key Causing > Unecessary Warning Messages > ------------------------------------------------------------------------------------------------ > > Key: HDFS-1418 > URL: https://issues.apache.org/jira/browse/HDFS-1418 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client > Affects Versions: 0.22.0 > Reporter: Ranjit Mathew > Priority: Minor > Attachments: HDFS-1418.patch > > > Every invocation of the "hadoop fs" command leads to an unnecessary warning > like the following: > {noformat} > $ $HADOOP_HOME/bin/hadoop fs -ls / > 10/09/24 15:10:23 WARN conf.Configuration: mapred.task.id is deprecated. > Instead, use mapreduce.task.attempt.id > {noformat} > This is easily fixed by updating > "src/java/org/apache/hadoop/hdfs/DFSClient.java". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.