Skip to main content
dzbeda
Bronze ⭐️⭐️⭐️
Oct 16, 2021 8:38 AM UTC
Question

HDFS balancer with small files

Hi, 

I have an HDFS cluster with 3 nodes. The cluster holds lots of small files (KB) and I have reached Millions of blocks per node.

 

I have added 4 more new servers to the cluster and started the balancer process but it looks that it does not do much. - The goal is to reduce the Million of blocks per server 

 

In order to balance the small-size files should i change the value of the following parameter to support moving files from 1KB size?

Ddfs.balancer.getBlocks.min-block-size=1048

2 replies

willx
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Oct 17, 2021 1:45 PM UTC

Hi @dzbeda,

The definition of "dfs.balancer.getBlocks.min-block-size" is "Smallest block to consider for moving".

What is the version of hadoop? Is it CDH or HDP? What is the version of CDH / HDP?

For CDH please refer to: 

https://docs.cloudera.com/documentation/enterprise/latest/topics/admin_hdfs_balancer.html#cmug_topic_5_14__section_lqb_rzp_x2b

https://docs.cloudera.com/documentation/enterprise/6/properties/6.1/topics/cm_props_cdh5160_hdfs.html#concept_6.1.x_balancer_props

HDFS Balancer and DataNode Space Usage Considerations:

https://my.cloudera.com/knowledge/HDFS-Balancer-and-DataNode-Space-Usage-Considerations?id=73869

 

Regards,

Will

Translate
VidyaSargur
Community Manager
Community Manager
Oct 21, 2021 5:30 PM UTC

@dzbeda, 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.  

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.