command to change replication factor of a directory in hadoop cluster

command to change replication factor of a directory in hadoop cluster
hdfs dfs -setrep -R 2 /user/hdfs/test

hdfs dfs -setrep -w 3 /user/hdfs/file.txt
Sourc‮w:e‬ww.lautturi.com
Created Time:2017-09-02 14:16:04  Author:lautturi