hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11428) Change setErasureCodingPolicy to take a required string EC policy name
Date Fri, 17 Feb 2017 22:30:44 GMT
Andrew Wang created HDFS-11428:
----------------------------------

             Summary: Change setErasureCodingPolicy to take a required string EC policy name
                 Key: HDFS-11428
                 URL: https://issues.apache.org/jira/browse/HDFS-11428
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: erasure-coding
    Affects Versions: 3.0.0-alpha1
            Reporter: Andrew Wang
            Assignee: Andrew Wang


The current {{setErasureCodingPolicy}} API takes an optional {{ECPolicy}}. This makes calling
the API harder for clients, since they need to turn a specified name into a policy, and the
set of available EC policies is only available on the NN.

You can see this awkwardness in the current EC cli set command: it first fetches the list
of EC policies, looks for the one specified by the user, then calls set. This means we need
to issue two RPCs for every set (inefficient), and we need to do validation on the NN side
anyway (extraneous work).

Since we're phasing out the system default EC policy, it also makes sense to make the policy
a required parameter.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message