HDFS-13774. EC: 'hdfs ec -getPolicy' is not retrieving policy details when the 
special REPLICATION policy set on the directory. Contributed by Ayush Saxena.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3801436e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3801436e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3801436e

Branch: refs/heads/HDFS-12090
Commit: 3801436e49822c724c8f4e393e6e5abbd0d2573a
Parents: 780df90
Author: Vinayakumar B <vinayakum...@apache.org>
Authored: Mon Sep 3 14:37:57 2018 +0530
Committer: Vinayakumar B <vinayakum...@apache.org>
Committed: Mon Sep 3 14:37:57 2018 +0530

----------------------------------------------------------------------
 .../hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/3801436e/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md 
b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md
index 2e8cbbd..67e6b75 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md
@@ -65,11 +65,11 @@ Architecture
 
       2. _The size of a striping cell._ This determines the granularity of 
striped reads and writes, including buffer sizes and encoding work.
 
-    Policies are named *codec*-*num data blocks*-*num parity blocks*-*cell 
size*. Currently, six built-in policies are supported: `RS-3-2-1024k`, 
`RS-6-3-1024k`, `RS-10-4-1024k`, `RS-LEGACY-6-3-1024k`, `XOR-2-1-1024k` and 
`REPLICATION`.
+    Policies are named *codec*-*num data blocks*-*num parity blocks*-*cell 
size*. Currently, five built-in policies are supported: `RS-3-2-1024k`, 
`RS-6-3-1024k`, `RS-10-4-1024k`, `RS-LEGACY-6-3-1024k`, `XOR-2-1-1024k`.
 
-    `REPLICATION` is a special policy. It can only be set on directory, to 
force the directory to adopt 3x replication scheme, instead of inheriting its 
ancestor's erasure coding policy. This policy makes it possible to interleave 
3x replication scheme directory with erasure coding directory.
+    The default `REPLICATION` scheme is also supported. It can only be set on 
directory, to force the directory to adopt 3x replication scheme, instead of 
inheriting its ancestor's erasure coding policy. This policy makes it possible 
to interleave 3x replication scheme directory with erasure coding directory.
 
-    `REPLICATION` policy is always enabled. For other built-in policies, they 
are disabled by default.
+    `REPLICATION` is always enabled. Out of all the EC policies, RS(6,3) is 
enabled by default.
 
     Similar to HDFS storage policies, erasure coding policies are set on a 
directory. When a file is created, it inherits the EC policy of its nearest 
ancestor directory.
 
@@ -184,7 +184,7 @@ Below are the details about each command.
       This parameter can be omitted if a 
'dfs.namenode.ec.system.default.policy' configuration is set.
       The EC policy of the path will be set with the default value in 
configuration.
 
-      `-replicate` apply the special `REPLICATION` policy on the directory, 
force the directory to adopt 3x replication scheme.
+      `-replicate` apply the default `REPLICATION` scheme on the directory, 
force the directory to adopt 3x replication scheme.
 
       `-replicate` and `-policy <policyName>` are optional arguments. They 
cannot be specified at the same time.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to