[
https://issues.apache.org/jira/browse/HADOOP-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652894#action_12652894
]
Konstantin Shvachko commented on HADOOP-4764:
---------------------------------------------
This may become a big patch, as e.g. the new field will require change of the
image format.
Would it be sufficient to extend implementation of {{setReplication()}} so that
it recursively changed replication for all files in the directory subtree?
> add replication factor for hdfs directory
> -----------------------------------------
>
> Key: HADOOP-4764
> URL: https://issues.apache.org/jira/browse/HADOOP-4764
> Project: Hadoop Core
> Issue Type: New Feature
> Components: dfs
> Reporter: Ruyue Ma
>
> If we can set replication factor for directory. we can modify the
> DFSClent.create() method, pass 0 for the default block replication. Namenode
> check create request, if blockreplication is 0, it will give its parent dir
> replication factor to the file blockreplication factor. This will simplify
> the administration work. You know we can set /Test or /Tmp dir's replication
> factor 2 or 1, then all their children files and dirs replication factor is 2
> or 1 defaultly.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.