Skip to main content
erkansirin78
Gold ⭐️
March 22, 2020
Solved

HDFS Balancer: Why configure same property?

I am trying to rebalance hdfs with Cloudera Manager 6.3 with HDFS Balancer Document

It says add the same property dfs.datanode.balance.max.concurrent.moves into different section

  1.  DataNode Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml
  2.  Balancer Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml

But before adding the property I searched and saw dfs.datanode.balance.max.concurrent.moves was already there.  Nevertheless, I did what the document says. After adding properties Cloudera Manager asked me to restart/redeploy stale configurations. Before restart, I saw totally different properties added.

cloudera_manager_rebalancer_cloudera_community_soru.png

 I don't understand although we seem to add the same property why different properties are added to hdfs-site.xml?

 

venkatsambath
Gold ⭐️⭐️⭐️
March 23, 2020

"although same property (dfs.datanode.balance.max.concurrent.moves) already exists in Cloudera Manager." --> Okay, I assume you are referring to the one highlighted in screenshot below

 

DFS-concurrent.png

Yes its unnecessary to add dfs.datanode.balance.max.concurrent.moves in Balancer Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml if you had used the "Maximum Concurrent Moves" section. Also note that this "Maximum Concurrent Moves" is scoped only to balancer and not to datanodes. So for datanodes you have to explicitly set it using " DataNode Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml"

 

Regarding reason for why to add this property both for balancer and datanode is mentioned in my previous comment. Hope that clarifies and let me know if there are further questions


I will raise an internal jira for correcting the document to avoid duplicate entry on balancer safety-valve.

6 replies

venkatsambath
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 22, 2020

@erkansirin78 Let me make sure I understand the issue correctly. By this "

Before restart, I saw totally different properties added." Did you mean the property dfs.datanode.ec.reconstruction.xmts.weight getting added? If yes, then its not getting added instead the preview page is just showing the extra lines prior to the property that you added, only the lines with + sign matters.

Translate
erkansirin78
Gold ⭐️
March 22, 2020

Yes, you are right. I have not realized that. But if dfs.datanode.ec.reconstruction.xmits.weight  is already in hdfs-site.xml why Cloudera document makes us add the same property for balancer and DataNode again, what is the point?

Translate
erkansirin78
Gold ⭐️
March 23, 2020

I know thank you but I still don't understand why we add same property (dfs.datanode.balance.max.concurrent.moves) on a different section

  1.  DataNode Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml
  2.  Balancer Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml

although same property (dfs.datanode.balance.max.concurrent.moves) already exists in Cloudera Manager. Is CM  supposed to refuse this addition?

Translate