Winutils.exe chmod command does not set permissions

> D:\>echo %HADOOP_HOME% 
> D:\Apps\winutils\hadoop-2.7.1

Create tmp / hive folders on the same drive as HADOOP_HOME

 D:\>dir tmp\hive

  Directory of D:\tmp\hive

  06/13/2016 01:13 PM <DIR> .
  06/13/2016 01:13 PM <DIR> ..
  0 File(s) 0 bytes
  2 Dir(s) 227,525,246,976 bytes free

Try to find out what permissions are set.

  D:\>winutils.exe ls \tmp\hive
  FindFileOwnerAndPermission error (1789): The trust relationship between this workstation and the primary domain failed.

When I tried chmod for these folders, it seems to work

 winutils.exe chmod 777 \tmp\hive 

but ls shows the same exception

Does anyone have an idea of ​​what is going on? Moreover, it works for me a couple of hours ago, but now my spark application fails with an exception

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)
+4
source share
1 answer

https://support.microsoft.com/en-us/kb/2771040

Looks like domain access issues, make sure you can access the domain and try again.

After securing access to the domain below the error will disappear

Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions a
re: rw-rw-rw-
+1

All Articles