The documentation in: http://hadoop.apache.org/docs/r1.0.4/file_system_shell.html#setrep states that one must use the command as follows:
- Usage: hdfs dfs -setrep [-R] <path>
- Example: hdfs dfs -setrep -w 3 -R /user/hadoop/dir1
Correct would be to state that setrep needs the replication factor and the replication factor needs to be right before the DFS path.
Must look like this:
- Usage: hdfs dfs -setrep [-R] [-w] <rep> <path/file>
- Example: hdfs dfs -setrep -w -R 3 /user/hadoop/dir1