title: No such file or directory error when using Hadoop fs --copyFromLocal command
body: <p>I have a local <code>VM</code> that has <code>Hortonworks</code> Hadoop and <code>hdfs</code> installed on it. I <code>ssh'ed</code> into the VM from my machine and now I am trying to copy a file from my local filesystem into hdfs through following set of commands:</p>
  
  <pre><code>[root@sandbox ~]# sudo -u hdfs hadoop fs -mkdir /folder1/
  [root@sandbox ~]# sudo -u hdfs hadoop fs -copyFromLocal /root/folder1/file1.txt /hdfs_folder1/
  </code></pre>
  
  <p>When I execute it I get following error as - <code>copyFromLocal:/root/folder1/file1.txt': No such file or directory</code></p>
  
  <p>I can see that file right in <code>/root/folder1/</code> directory but with <code>hdfs</code> command its throwing above error. I also tried to <code>cd</code> to <code>/root/folder1/</code> and then execute the command but same error comes. Why is the file not getting found when it is right there?</p>