MapR 5.0 Documentation : Suppressing Warning Messages for the hadoop fs Command

After an upgrade to 4.0.x, the hadoop fs command returns the following warning message:

WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use
org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.

This message does not cause any problems, but you can suppress it by modifying the following file:

/opt/mapr/hadoop/hadoop-0.20.2/conf/log4j.properties

In this file, replace the following line:

log4j.appender.EventCounter=org.apache.hadoop.log.EventCounter

with this line:

log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter