title: Error creating temp dir in hadoop.tmp.dir /tmp/hadoop-sha due to Permission denied
body: <p>I got the following error message when I ran my java map reduce code on the hadoop cluster:</p>
  
  <pre><code>-sh-3.2$ hadoop jar PearsonSim1.jar PearsonSim.PearsonDriver1 /user/sha/data/rating_sample_item /user/sha/cf/PearsonSim1
  </code></pre>
  
  <p>"Error creating temp dir in hadoop.tmp.dir /tmp/hadoop-sha due to Permission denied"</p>
  
  <p>Has anyone encountered such problem before? I'm wondering whether there's any issue with my code or simply account permission setup. My code works fine on Cloudera's CDH3 VM. </p>
  
  <p>Could anyone shed some light?</p>