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:\tmp\hive 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%\bin\winutils.exe ls \tmp\hive
Set permissions: %HADOOP_HOME%\bin\winutils.exe chmod 777 \tmp\hive
List updated permissions: %HADOOP_HOME%\bin\winutils.exe ls \tmp\hive

posted @ 2020-02-08 22:56  liuge36  阅读(543)  评论(0编辑  收藏  举报