title: Hive Permission denied with insert overwrite directory
body: <p>I got permission denied failure from hdfs while running the command below:</p>
  
  <pre><code>hive -e "insert overwrite directory '/user/hadoop/a/b/c/d/e/f' select * from table_name limit 10;"
  </code></pre>
  
  <p>The error message is:</p>
  
  <pre><code>Permission denied: user=hadoop, access=WRITE, inode="/user/hadoop/a/b":hdfs:hive:drwxrwxr-x
  </code></pre>
  
  <p>But when I run : <code>hadoop fs -ls /user/hadoop/a</code>, I get:</p>
  
  <pre><code>drwxrwxrwx   - hadoop supergroup          0 2014-04-08 00:56 /user/hadoop/a/b
  </code></pre>
  
  <p>It seems I have opened full permission on the folder b, why did I still get permission denied?</p>
  
  <p>PS: I have set <code>hive.insert.into.multilevel.dirs=true</code> in hive config file.</p>