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

Jing Zhao commented on HDFS-7076:
---------------------------------

I have a preliminary patch which is more than 120K. I will split it into 
several jiras. First created HDFS-7081 to add a new DistributedFileSystem API 
for getting all the existing storage policies. In this way we can remove the 
dependency of the XML configuration file from the client/Mover side.

> Persist Block Storage Policy in FSImage and Edit Log
> ----------------------------------------------------
>
>                 Key: HDFS-7076
>                 URL: https://issues.apache.org/jira/browse/HDFS-7076
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, namenode
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>
> Currently block storage policies are loaded from a XML file. This may lead to 
> policy inconsistency if the content of the XML gets modified or if the XML 
> file is replaced by mistake. Thus it is better to persist policies in 
> editlog/fsimage.
> Specifically we plan to do the following in this jira:
> # Add new DistributedFileSystem API for getting all the existing storage 
> policies
> # Add new DistributedFileSystem/HdfsAdmin API for adding a new storage 
> policy. The new storage policy is then persisted in editlog and later fsimage 
> while checkpointing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to