title: No such file or directory with hdfs
body: <p>When I do</p>
  
  <pre><code>$ ls
  </code></pre>
  
  <p>I find a file with a name: file_name.csv</p>
  
  <p>However, when I try to do </p>
  
  <pre><code>$ hdfs dfs -put /home/user_name/file_name.csv tempfolder 
  </code></pre>
  
  <p>(/home/user_name/ is where file_name.csv is located while tempfolder is a tempfolder I created in hdfs). It says </p>
  
  <p>"`/home/user_name/file_name.csv': No such file or directory"</p>
  
  <p>even though it is there. Is there a reason behind this or does anyone know how to fix it?</p>
  
  <p><strong>Note:</strong> If this is relevant, when I call <strong>hdfs dfs...</strong>, it is with a sudo. So</p>
  
  <pre><code>sudoing "hdfs dfs -put /home/user_name/file_name.csv tempfolder"
  </code></pre>