New Contributor
Posts: 5
Registered: ‎08-11-2016
Accepted Solution

Disk Balancer is not enabled

hi all,

we see the below error in the log file for all cluster machines that dont have balancer role 

Disk Balancer is not enabled

how to resolve the issue 

Cloudera Employee
Posts: 79
Registered: ‎04-18-2016

Re: Disk Balancer is not enabled

Hi Gareeb,

The error messages that are written to the logs is a known issue in CDH 5.8. These messages are actually harmless, though it is filling up the DataNode logs.
The error message is related to a new feature HDFS-1312 "Re-balance disks within a Datanode". This new feature which allows balancing of data on disks within an individual datanode is not implemented in CDH 5.8 as yet.


The only way forward at this point in time is to suppress this error message and ensure it is not filling the datanode logs. The loglevel of the "org.apache.hadoop.hdfs.server.datanode.DiskBalancer" can be changed to FATAL.

There are two ways to do this. The first requires a restart of the cluster. The second does not require restart but the loglevel is not persisted after restart of datanode.


Option 1) modify log4j settings.

a) navigate to CM -> HDFS -> Configuraion ->DataNode -:> Advanced -> DataNode Logging Advanced Configuration Snippet (Safety Valve)
b) add: = FATAL
c) restart DataNodes (rolling restart recommended) .

Option 2) Modify setting on command line.

This will not persist on restarts of the DataNode and you need to run the following command for each DataNode (as 'hdfs' user):


a) Check current logging level:

      # hadoop daemonlog -getlevel org.apache.hadoop.hdfs.server.datanode.DiskBalancer


b) Set logging level for disk balancer to FATAL

      # hadoop daemonlog -setlevel org.apache.hadoop.hdfs.server.datanode.DiskBalancer FATAL

I believe this information will explain why this error message is displayed.




New Contributor
Posts: 5
Registered: ‎08-11-2016

Re: Disk Balancer is not enabled

many thanks

the issue resolved 


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.