What is the default replication factor and how will you change it?
The default replication factor is 3. One can change this in following three ways:
By adding this property to hdfs-site.xml:[php]<property>
You can also change the replication factor on per-file basis using the command:[php]hadoop fs –setrep –w 3 / file_location[/php]
You can also change replication factor for all the files in a directory by using:[php]hadoop fs –setrep –w 3 –R / directoey_location[/php]