hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4764) add replication factor for hdfs directory
Date Fri, 05 Dec 2008 07:08:46 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653664#action_12653664
] 

Zheng Shao commented on HADOOP-4764:
------------------------------------

So the modification of the image format is the extra default replication factor information
of the directory?

Another similar approach is to create a dummy file (e..g, ".default.attribute" under a directory
and set the default block replication number on that dummy file.
This won't require modifying the image format. Other changes are similar.

Does that sound better Konstantin?


> 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
>            Assignee: 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.


Mime
View raw message