title: winutils.exe chmod command doesn't set permission
body: <pre><code>&gt; D:\&gt;echo %HADOOP_HOME% 
  &gt; D:\Apps\winutils\hadoop-2.7.1
  </code></pre>
  
  <p>Create tmp/hive folders on the same disk as HADOOP_HOME</p>
  
  <pre><code> D:\&gt;dir tmp\hive
  
    Directory of D:\tmp\hive
  
    06/13/2016 01:13 PM &lt;DIR&gt; .
    06/13/2016 01:13 PM &lt;DIR&gt; ..
    0 File(s) 0 bytes
    2 Dir(s) 227,525,246,976 bytes free
  </code></pre>
  
  <p>Try to figure out what permission are set</p>
  
  <pre><code>  D:\&gt;winutils.exe ls \tmp\hive
    FindFileOwnerAndPermission error (1789): The trust relationship between this workstation and the primary domain failed.
  </code></pre>
  
  <p>When I tried chmod for this folders it seems work</p>
  
  <pre><code> winutils.exe chmod 777 \tmp\hive 
  </code></pre>
  
  <p>but ls shows same exception</p>
  
  <p>Does anyone has an idea what is going on ? Moreover, It works for me a couple hours ago but now my spark application fails with an exception</p>
  
  <pre><code>java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
      at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522)
  </code></pre>