windows上Caused by: java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tm

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
参照这个开始解决:
在这里插入图片描述
echo %HADOOP_HOME%

You will also notice that when starting the spark-shell.cmd, Hive will create a C:	mphive folder. If you receive any errors related to permissions of this folder, use the following commands to set that permissions on that folder:

List current permissions: %HADOOP_HOME%inwinutils.exe ls 	mphive
Set permissions: %HADOOP_HOME%inwinutils.exe chmod 777 	mphive
List updated permissions: %HADOOP_HOME%inwinutils.exe ls 	mphive

原文地址:https://www.cnblogs.com/liuge36/p/12614683.html