[ 
https://issues.apache.org/jira/browse/HADOOP-991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koji Noguchi resolved HADOOP-991.
---------------------------------

    Resolution: Won't Fix

It's a feature not a bug.

Since file's replication factor is already set to the requested level (=3), it 
simply ignores the command. 
It has nothing to do with the replication factor of the first block.  I 
misunderstood the code.


For files containing under-replicated block (< 3) ,  I need to  

dfs -setrep 4 file

and then set it back 

dfs -setrep 3 file  

> dfs -setrep won't replicate the blocks if the first_block's replication 
> factor == requested replication factor
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-991
>                 URL: https://issues.apache.org/jira/browse/HADOOP-991
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Koji Noguchi
>            Priority: Minor
>
> % hadoop fsck /user/aaa/bbb -files -blocks
> /user/aaa/bbb _________ , 2 block(s):  OK
> 0. -11111111111111111 repl=3
> 1. 222222222222222222 repl=2  
> %  hadoop dfs -setrep 3 /user/aaa/bbb
> would not replicate the block 1.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to