Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Who agreed with this solution

avatar
Community Manager

The HDFS Balancer only balances blocks between DataNodes.   It does not to any balancing on individual DataNodes between drives.

 

You can set the DataNode Volume Choosing Policy (dfs.datanode.fsdataset.volume.choosing.policy) to Available Space (org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy).  This will cause the DataNodes to write new blocks to the drive with the most space available.   It does not affect blocks that have already been written.

 

For your question about wiping one datanode at a time, it would be better to decommission and then recommission a node.  With a replication factor of 3 you may perform this action on 2 nodes at a time.

 

 



David Wilder, 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.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

View solution in original post

Who agreed with this solution