Hadoop 2.2.0配置弃用 [英] Hadoop 2.2.0 Configuration deprecation

查看:194
本文介绍了Hadoop 2.2.0配置弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了Hadoop 2.2.0集群,现在运行我的Java客户端来处理数据。运行我的java程序后,我注意到输出显示如下:

I set up the Hadoop 2.2.0 Cluster and now running my java client to process data. After running my java program, I notice the output displays like this:

13/11/18 11:44:44 INFO Configuration.deprecation: user.name is deprecated. Instead, use mapreduce.job.user.name
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar 
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
13/11/18 11:44:44 INFO Configuration.deprecation: mapreduce.combine.class is deprecated. Instead, use mapreduce.job.combine.class
13/11/18 11:44:44 INFO Configuration.deprecation: mapreduce.map.class is deprecated. Instead, use mapreduce.job.map.class
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.job.name is deprecated. Instead, use mapreduce.job.name
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.textoutputformat.separator is deprecated. Instead, use mapreduce.output.textoutputformat.separator
13/11/18 11:44:44 INFO Configuration.deprecation: mapreduce.reduce.class is deprecated. Instead, use mapreduce.job.reduce.class 
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
13/11/18 11:44:44 INFO Configuration.deprecation: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir

模块运行良好,看起来像没有'不影响任何东西。但是,我怎样才能避免这些信息? (我导入maven hadoop-client 2.2.0并使用Job job = new Job())

The module is working well and looks like that doesn't affect anything. But how can I avoid this info messages? (I import maven hadoop-client 2.2.0 and use Job job = new Job())

推荐答案

它在Hadoop 2.3中得到了修复,请参阅: https://issues.apache.org/jira/browse/HADOOP-10178

It's fixed in Hadoop 2.3, please refer: https://issues.apache.org/jira/browse/HADOOP-10178

这篇关于Hadoop 2.2.0配置弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆