Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How do I suppress INFO and WARNING messages when reading and writing to HDFS

avatar
New Contributor

How to suppress below INFO and WARNING messages using log4j.properties

 

log4j:WARN No appenders could be found for logger (com.ibm.connect.shadow.parquet.crypto.EncryptionPropertiesFactory).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

 INFO org.apache.hadoop.io.compress.CodecPool - Got brand-new compressor [.snappy]

 

1 ACCEPTED SOLUTION

avatar
New Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Expert Contributor

Hi Srmitta,

In my lab I cannot see any warn or info while doing hadoop commands. Please try the below setting in the hdfs-log4j :

 

hadoop.root.logger=INFO,WARN,console
hadoop.log.dir=.
hadoop.log.file=hadoop.log

 

avatar
Community Manager

@srmitta, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
New Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

Hi Srinivasa, As this is a 3rd party application I am not really sure about it.  Glad that currently you have a property that help in achieving the goal.