如何在grunt shell中抑制信息消息“不赞成io.bytes.per.checksum”

问题描述 投票:1回答:1

[分析大数据时,我在Hadoop-2.7.2之上运行Apache Pig版本0.17.0。每次我在load shell的本地模式下运行grunt>命令时,都会收到以下消息:

grunt> A = load '/usr/lib/pig/data.txt' using TextLoader as (date:chararray);
[main] INFO org.apache.hadoop.conf.Configuration.deprecation-io.bytes.per.
checksum is deprecated. Instead, use dfs.bytes-per-checksum

是否会因为频繁使用grunt> shell而变得很烦人而关闭此消息?

hadoop apache-pig
1个回答
1
投票

检查以下解决方案是否适合您,

创建一个名为nolog.conf的文件,其内容如下

log4j.rootLogger=fatal

然后按以下方式运行Pig

pig -x local -4 nolog.conf
© www.soinside.com 2019 - 2024. All rights reserved.