Skip to main content
newtocm
Silver ⭐️
September 12, 2023
Solved

Can HDFS Rebalancer run without interrupted Production Data?

My Production environment has existing 4 data nodes.

I just added additional 4 data nodes in the cluster and would like to run the HDFS Rebalance to balance the data across the 8 data nodes. 

My question is, can I rebalance data but also ingesting and processing new data at the same time? Will it caused any file interrupted if do so? 

 

Thanks. 

 

rki_
rki_Answer
Gold ⭐️
September 13, 2023

@newtocm you can't pause the Balancer. You can kill it and start it again and it will try to balance the rest of the DFS data remaining to be balanced.

6 replies

VidyaSargur
Community Manager
Community Manager
September 12, 2023

@newtocm, Welcome to our community! To help you get the best possible answer, I have tagged in our HDFS experts @willx @SVB who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
SVB
Gold ⭐️
Gold ⭐️
September 12, 2023

Hello @newtocm. Yes, You can run your jobs of ingesting and processing data when running the HDFS balancer. But it is ideally recommended to run the balancer when the load on the cluster is not at its peak, so the performance of the jobs are not impacted as balancer is a resource consuming process. 

Translate
newtocm
newtocmAuthor
Silver ⭐️
September 12, 2023

Is the balancer can be paused halfway during the peak and resume back again after the peak? 

Translate
rki_
Gold ⭐️
rki_Answer
Gold ⭐️
September 13, 2023

@newtocm you can't pause the Balancer. You can kill it and start it again and it will try to balance the rest of the DFS data remaining to be balanced.

Translate
Asok
Gold ⭐️
Gold ⭐️
September 12, 2023

You can stop balancer at any time, it's safe to stop it by pressing ctrl+c command.
https://community.cloudera.com/t5/Support-Questions/When-should-i-stop-the-balancer/td-p/168115

Translate
VidyaSargur
Community Manager
Community Manager
September 20, 2023

@newtocm, Have any of the replies 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, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.