在配置单元启动期间有太多警告和信息消息

时间:2014-03-21 02:05:35

标签: warnings hive startup

目前,我使用hadoop-2.2.0.tar.gzhive-0.11.0.tar.gz来研究hadoop和hive。我只是从这两个tarball中提取文件并为它们设置环境。

然后我使用hive命令启动配置单元。我发现有太多WARNINFO消息如下所示。有没有办法消除这些消息?我还没有设置任何配置。 hadoop的版本是否与hive不兼容?

14/03/21 09:24:52 INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.max.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.maxsize
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.min.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.min.split.size.per.rack is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.rack
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.min.split.size.per.node is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.node
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
14/03/21 09:24:52 INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative
14/03/21 09:24:52 WARN conf.Configuration: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@6295eb:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval;  Ignoring.
14/03/21 09:24:52 WARN conf.Configuration: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@6295eb:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts;  Ignoring.

Logging initialized using configuration in jar:file:/home/ljq/hive-0.11.0/lib/hive-common-0.11.0.jar!/hive-log4j.properties
Hive history file=/tmp/ljq/hive_job_log_ljq_8719@rhel6-hadoop1_201403210924_1350715255.txt
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ljq/hadoop-2.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ljq/hive-0.11.0/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
hive (default)>

1 个答案:

答案 0 :(得分:3)

根据下一个链接:org.apache.hadoop.hive.conf.HiveConf.java这些值是在类中定义的,这些值现在已被弃用,因此将始终显示此警告。在另一个链接中提出的解决方案:hadoop.apache.org/Configuration只是省略警告。您必须编辑文件$ HADOOP_HOME / etc / hadoop / log4j.properties并取消注释图例后面的行:

  #取消注释以下行以关闭配置弃用警告。      

log4j.logger.org.apache.hadoop.conf.Configuration.deprecation = WARN