[
https://issues.apache.org/jira/browse/HDFS-11604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951943#comment-15951943
]
SammiChen commented on HDFS-11604:
----------------------------------
Thanks Kai for the comments!
bq. We need a header as comment to list the system policies so that users won't
redefine them here.
I would prefer CLI command has a function to list all current enabled EC
policies, not just the system policies. In real situation, customer can run
the CLI command to customize EC policy multiple times, so a "list all EC
policies" is better than hard code system polices in this sample documents. If
the CLI command format is defined, we can put the comments about this command
in header to guide user how to get the list. Also if user happen to define the
exact same policy as one system policy, the command should detect it and handle
it properly.
bq. Can we add some comments for some parts to specify some formats, like for
cellsize, only k, m are allowed after a positive number.
agree. Also I would suggest define a system wide property, set a upper limit of
max cell size, to prevent user from make mistakes
Others are all agreed.
> Define and parse erasure code codecs, schemas and policies
> ----------------------------------------------------------
>
> Key: HDFS-11604
> URL: https://issues.apache.org/jira/browse/HDFS-11604
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: erasure-coding
> Reporter: Kai Zheng
> Assignee: Lin Zeng
> Fix For: 3.0.0-alpha3
>
> Attachments: ec-config-sample.xml
>
>
> According to recent discussions with [~andrew.wang] in HDFS-7337, it would be
> good to support allowing users to define their own erasure code codecs,
> schemas and policies via an XML file. The XML file can be passed to a CLI cmd
> to parse and send to NameNode to persist and maintain.
> Open this task to define the XML format providing a default sample file to
> put in the configuration folder for users' reference, and implement the
> necessary parser utility.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]