varun kumar 2013-03-12, 20:57
Bertrand Dechoux 2013-03-17, 18:07
On Wed, Mar 13, 2013 at 2:56 AM, Mohit Anchlia <[EMAIL PROTECTED]> wrote:
> Does it mean if I set replication factor on directory /abc and I run a -put
> command and add a file to the directory it will use the new replication
> factor set on the directory /abc?
No, the client sets the desired replication factor requirement when it
invokes the create functions at the NameNode. If not present
explicitly in the invocation call, a default from the client is sent
(which is why setting dfs.replication at a specific client works).
>>> On Wed, Mar 13, 2013 at 2:16 AM, Mohit Anchlia <[EMAIL PROTECTED]>
>>>> Is it possible to set replication factor to a different value than the
>>>> default at the directory level?
No, the metadata signifying the value of replication is held at the
file inode alone, the dirs are not aware/do not maintain replication
counts of the files under them.