title: How does hdfs mv command work
body: <p>I would like to know how does <code>mv</code> command in hdfs work?</p>
  
  <ol>
  <li><p>Is it just a symbolic change without any actual data movement?</p>
  
  <ul>
  <li>If moveTo directory exists (may be on diff partition)</li>
  <li>If moveTo is a new directory</li>
  </ul></li>
  <li><p>Is it possible to corrupt data while moving large files within hadoop? So is <code>cp</code> or <code>distcp</code> a safer option?</p></li>
  </ol>