How to set the data replication factor of Hadoop HDFS in Hadoop 2 (YARN)?
The default replication factor in HDFS is controlled by the
The value is 3 by default.
To change the replication factor, you can add a
dfs.replication property settings in the
hdfs-site.xml configuration file of Hadoop:
<property> <name>dfs.replication</name> <value>1</value> <description>Replication factor.</description> </property>
The above one make the default replication factor 1.