0 votes
in Big Data | Hadoop by

Default replication factor to a file is 3.

1 Answer

0 votes
by
Use ‘-setrep’ command to change replication factor of a file to 2.

hadoop fs -setrep -w 2 apache_hadoop/sample.txt

Related questions

0 votes
asked Jan 11, 2020 in Big Data | Hadoop by rajeshsharma
+1 vote
asked Feb 23, 2020 in Big Data | Hadoop by rahuljain1
...