where to change replication factor 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
hdfs dfs –setrep –w 3 /user/hdfs/file.txt
-D dfs.replication=1