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 files.

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


In this file, replace the following line:


with this line: