Reply
Explorer
Posts: 8
Registered: ‎06-14-2016

How to enable TRACE or DEBUG logging for balancer utility

Hi,

 

Is there a way to increase the logging to TRACE or DEBUG for re-balance utility?

I tried to change /etc/hadoop/conf/log4j.properties without any success.

 

I am having problems with balancer utility and i would like to see more logging.

 

The related problem is : this

Posts: 1,770
Kudos: 389
Solutions: 285
Registered: ‎07-31-2013

Re: How to enable TRACE or DEBUG logging for balancer utility

If you use CM -> HDFS -> Actions -> Rebalance to run your Balancer command, then change it in CM -> HDFS -> Configuration -> Java Configuration Options for Balancer, appending the value '-Droot.logger=TRACE,console' to it.

 

If you run it via CLI instead, then invoke it this way:

 

 

~> export HADOOP_BALANCER_OPTS="-Droot.logger=TRACE,console"
~> hdfs balancer

 

Explorer
Posts: 10
Registered: ‎12-07-2018

Re: Where the HDFS balancer logs are stored

Where the HDFS balancer logs are stored.

Announcements