原因:缺少winutils.exe组件
解决:安装hadoop-common
添加hadoop-common安装路径到环境变量或者代码增加
参考:https://blog.csdn.net/zhenhen_520/article/details/89647327
Caused by: java.lang.RuntimeException: The root scratch dir: /usr/local/src/apache-hive-1.2.2-bin/tmp on HDFS should be writable. Current permissions are
该文件没有写权限,使用hadoop fs -chmod 777 /tmp/hive授权