Skip to content

Commit 40ab9c8

Browse files
authored
HDFS-16341. Fix BlockPlacementPolicy details in hdfs defaults. (#3691). Contributed by guophilipse.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
1 parent 2950c54 commit 40ab9c8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,14 +4277,18 @@
42774277
<value>org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault</value>
42784278
<description>
42794279
Class representing block placement policy for non-striped files.
4280-
There are four block placement policies currently being supported:
4280+
There are six block placement policies currently being supported:
42814281
BlockPlacementPolicyDefault, BlockPlacementPolicyWithNodeGroup,
4282-
BlockPlacementPolicyRackFaultTolerant and BlockPlacementPolicyWithUpgradeDomain.
4282+
BlockPlacementPolicyRackFaultTolerant, BlockPlacementPolicyWithUpgradeDomain,
4283+
AvailableSpaceBlockPlacementPolicy and AvailableSpaceRackFaultTolerantBlockPlacementPolicy.
42834284
BlockPlacementPolicyDefault chooses the desired number of targets
42844285
for placing block replicas in a default way. BlockPlacementPolicyWithNodeGroup
42854286
places block replicas on environment with node-group layer. BlockPlacementPolicyRackFaultTolerant
42864287
places the replicas to more racks.
42874288
BlockPlacementPolicyWithUpgradeDomain places block replicas that honors upgrade domain policy.
4289+
AvailableSpaceBlockPlacementPolicy places block replicas based on space balanced policy.
4290+
AvailableSpaceRackFaultTolerantBlockPlacementPolicy places block replicas based on
4291+
space balanced rack fault tolerant policy.
42884292
The details of placing replicas are documented in the javadoc of the corresponding policy classes.
42894293
The default policy is BlockPlacementPolicyDefault, and the corresponding class is
42904294
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.

0 commit comments

Comments
 (0)