how to change replication factor of file in hadoop code example
Example 1: change replication factor hadoop cluster command
hdfs dfs –setrep –w 3 /user/hdfs/file.txt
Example 2: change replication factor hadoop cluster command
-D dfs.replication=1