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.propertiesIn this file, replace the following line:log4j.appender.EventCounter=org.apache.hadoop.log.EventCounterwith this line:
log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounterIf 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/nullAnother suggestion use
hdfs dfs -getinstead ofhadoop fsits deprecated.This link has the explanation if you are interested.