Reply
Explorer
Posts: 10
Registered: ‎05-31-2016

log4j changes on datanode

Hi Folks,

               I want to change log4j of datanodes , basically the number of backup files and the sizes of those files in our cluster.

 

are these the 2 paramaters 

hadoop.log.maxfilesize

hadoop.log.maxbackupindex

 

2)Can we change the log4j properties dynamically without a restart of the process.

 

Thank You,

Mastan

Highlighted
Posts: 1,896
Kudos: 433
Solutions: 303
Registered: ‎07-31-2013

Re: log4j changes on datanode

> I want to change log4j of datanodes , basically the number of backup files and the sizes of those files in our cluster.

If you use Cloudera Manager, edit the direct fields under CM -> HDFS -> Configuration -> "DataNode Max Log Size" and "DataNode Maximum Log File Backups" to change those specific Log4j parameters automatically.

> 2)Can we change the log4j properties dynamically without a restart of the process.

Log levels for classes/packages may be changed dynamically via the 'hadoop daemonlog' command or /logLevel servlet URL. Changing the log4j retention/rolling settings however requires a restart.
Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.