Skip to content

Commit

Permalink
HDFS-16656. Fixed some incorrect descriptions in SPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghongbing committed Jul 12, 2022
1 parent a5292a4 commit cd38220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5453,8 +5453,6 @@
</property>

<property>
<name>dfs.storage.policy.satisfier.enabled</name>
<value>false</value>
<name>dfs.storage.policy.satisfier.mode</name>
<value>none</value>
<description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The effective storage policy can be retrieved by the "[`storagepolicies -getStor
* **dfs.datanode.data.dir** - on each data node, the comma-separated storage locations should be tagged with their storage types. This allows storage policies to place the blocks on different storage types according to policy. For example:

1. A datanode storage location /grid/dn/disk0 on DISK should be configured with `[DISK]file:///grid/dn/disk0`
2. A datanode storage location /grid/dn/ssd0 on SSD can should configured with `[SSD]file:///grid/dn/ssd0`
2. A datanode storage location /grid/dn/ssd0 on SSD should be configured with `[SSD]file:///grid/dn/ssd0`
3. A datanode storage location /grid/dn/archive0 on ARCHIVE should be configured with `[ARCHIVE]file:///grid/dn/archive0`
4. A datanode storage location /grid/dn/ram0 on RAM_DISK should be configured with `[RAM_DISK]file:///grid/dn/ram0`
5. A datanode storage location /grid/dn/nvdimm0 on NVDIMM should be configured with `[NVDIMM]file:///grid/dn/nvdimm0`
Expand All @@ -121,7 +121,7 @@ SPS can be enabled as an external service outside Namenode or disabled dynamical

Detailed design documentation can be found at [Storage Policy Satisfier(SPS) (HDFS-10285)](https://issues.apache.org/jira/browse/HDFS-10285)

* **Note**: When user invokes `satisfyStoragePolicy()` API on a directory, SPS will scan all sub-directories and consider all the files for satisfy the policy..
* **Note**: When user invokes `satisfyStoragePolicy()` API on a directory, SPS will scan all sub-directories and consider all the files for satisfy the policy.

* HdfsAdmin API :
`public void satisfyStoragePolicy(final Path path) throws IOException`
Expand Down

0 comments on commit cd38220

Please sign in to comment.