When we run hadoop fs -get command we see all the info messages. How can I suppress these messages.
17/12/05 17:59:02 INFO s3n.S3NativeFileSystem: Opening 's3://testbucketzs/Manish/test1/data/csv-serde-1.1.2-0.11.0-all - Copy (796) -
When we run hadoop fs -get command we see all the info messages. How can I suppress these messages.
17/12/05 17:59:02 INFO s3n.S3NativeFileSystem: Opening 's3://testbucketzs/Manish/test1/data/csv-serde-1.1.2-0.11.0-all - Copy (796) -
You need to modify the file as below :
$HADOOP_HOME/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
If you don't want to do that globally point the stderr to the black hole something like this
hdfs dfs -get /hdfs_path/ /local_path/ > 2>/dev/null
Another suggestion use
hdfs dfs -get
instead ofhadoop fs
its deprecated.This link has the explanation if you are interested.