Adjusting HDFS Replication Factor Per File
HDFS uses the dfs.replication property in hdfs-site.xml to set a global default replication factor for all blocks. However, you can override this on a per-file or per-directory basis using the hdfs dfs -setrep command — useful for frequently accessed “hot” files that need higher availability. Basic syntax hdfs dfs -setrep [-R] [-w] <numReplicas> <path> Setting…
