title: How to make hadoop replication factor change for a file persistent
body: <p>I have a query regarding hadoop replication.</p>
  
  <p>I changed the replication factor of files in a particular directory in hadoop using the below mentioned command:</p>
  
  <p><code>hadoop dfs -setrep -R 3 -w /data/routing</code></p>
  
  <p>It was successful and it set the replication factor of all the files in this directory to <code>3</code>. However any new file being written under this directory continued to have default replication factor, i.e. <code>2</code>.</p>
  
  <p>Is there any option to make this change persistent? </p>
  
  <p>Actually I want all the new files being written under this directory only to always have the replication factor as <code>3</code>, irrespective of what is the default replication factor.</p>