title: How do you retrieve the replication factor info in Hdfs files?
body: <p>I have set the replication factor for my file as follows:</p>
  
  <pre><code>hadoop fs -D dfs.replication=5 -copyFromLocal file.txt /user/xxxx
  </code></pre>
  
  <p>When a <code>NameNode</code> restarts, it makes sure under-replicated blocks are replicated.
  Hence the replication info for the file is stored (possibly in <code>nameNode</code>). How can I get that information?</p>