title: Copy file from Hdfs to Hdfs scala
body: <p>Is there a known way using Hadoop api / spark scala to copy files from one directory to another on Hdfs ?</p>
  
  <p>I have tried using copyFromLocalFile but was not helpful </p>