Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to enable TRACE or DEBUG logging for balancer utility

Highlighted

How to enable TRACE or DEBUG logging for balancer utility

Explorer

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

3 REPLIES 3

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

Master Guru

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

 

Re: Where the HDFS balancer logs are stored

Explorer

Where the HDFS balancer logs are stored.

Re: Where the HDFS balancer logs are stored

Cloudera Employee

Under process directory as below.

/var/run/cloudera-scm-agent/process/XXXX-hdfs-BALANCER

Don't have an account?
Coming from Hortonworks? Activate your account here