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

Ayush Saxena commented on HDFS-14602:
-------------------------------------

If you try to do it via API, you will get NULL only, as the Namenode reports on 
account of replication policy returns NULL only, For the shell command it is a 
polished line after checking NULL.

It doesn't tell it has Replication policy set, It just tells the EC Policy is 
null in words.
{noformat}
hdfs ec -getPolicy -path /dir/subdir
RS-6-3-1024k
hdfs ec -setPolicy -path /dir/subdir -replicate
Set replication erasure coding policy on /dir/subdir
hdfs ec -getPolicy -path /dir/subdir
The erasure coding policy of /dir/subdir is unspecified
{noformat}
 and We can't change this behaviour, as Xiao Chen mentioned in HDFS-13774 due 
to compatibility reasons. Try giving a check to the discussion out there.

> EC:RESTAPI  Support for set/unset REPLICATE EcPolicy via WebHdfs
> ----------------------------------------------------------------
>
>                 Key: HDFS-14602
>                 URL: https://issues.apache.org/jira/browse/HDFS-14602
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: erasure-coding
>    Affects Versions: 3.1.1
>            Reporter: Souryakanta Dwivedy
>            Assignee: Ayush Saxena
>            Priority: Minor
>
> EC:RESTAPI  Support for set/unset REPLICATE EcPolicy via WebHdfs



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to