I am trying to copy R dataframe to Spark 2.0.1 using copy_to function but it says
The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
I executed winutils.exe to change the permissions but still I get the same Exception of permissions.
%HADOOP_HOME%\bin\winutils.exe chmod 777 \tmp\hive
I tried other variants of the command like -
%HADOOP_HOME%\bin\winutils.exe chmod 777 C:\tmp\hive
%HADOOP_HOME%\bin\winutils.exe chmod 777 /tmp/hive
%HADOOP_HOME%\bin\winutils.exe chmod 777 -R \tmp\hive
but nothing worked. I still get the error