如何在 grunt shell 中抑制信息消息 "io.bytes.per.checksum is deprecated"

How to supress info message "io.bytes.per.checksum is deprecated" in grunt shell

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

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 会变得非常烦人?

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

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

log4j.rootLogger=fatal

然后运行猪如下

pig -x local -4 nolog.conf