[ 
https://issues.apache.org/jira/browse/HDFS-13774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16582024#comment-16582024
 ] 

Souryakanta Dwivedy commented on HDFS-13774:
--------------------------------------------

But as per the " -setPolicy" description for "HDFS Erasure Coding" it is 
specified in as  

{{"-replicate}} apply the special {{REPLICATION}} policy on the directory, 
force the directory to adopt 3x replication scheme."

which is quite confusing as what is special REPLICATION policy. It needs to be 
modified as if we set policy as -replicate then the 

directory take the default Replication policy instead of any defined EC policy.

> EC: "hdfs ec -getPolicy" is not retrieving policy details when the special 
> REPLICATION policy set on the directory
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-13774
>                 URL: https://issues.apache.org/jira/browse/HDFS-13774
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: erasure-coding
>    Affects Versions: 3.0.0
>         Environment: 3 Node Linux Cluster
>            Reporter: Souryakanta Dwivedy
>            Assignee: Ayush Saxena
>            Priority: Minor
>         Attachments: GetPolicy_EC.png
>
>
>  Erasure coding: "hdfs ec -getPolicy"" is not retrieving policy details when 
> the special REPLICATION policy set on the directory
> Steps :-
>  - Create a directory "testEC"
> - Get the EC policy for the directory [Received message as : "The erasure 
> coding policy of /testEC is unspecified" ]
> - Enable any Erasure coding policy like "XOR-2-1-1024k"
> - Set the EC Policy on the Directory
> - Get the EC policy for the directory [Received message as : "XOR-2-1-1024k" ]
> - Now again set the EC Policy on the directory as "replicate" special 
> REPLICATION policy
> - Get the EC policy for the directory [Received message as : "The erasure 
> coding policy of /testEC is unspecified" ]
>  The policy is being set for the Directory ,but while retrieving policy 
> details its throwing error as 
>  policy for the directory is unspecified which is wrong behavior



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to