Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: hdfs://mycluster/hive/scratchdir on HDFS should be writable. Current permissions are: rwxr-xr-
复制代码
解决办法:
hadoop fs -chmod -R 777 /scratchdir路径
复制代码
例如:
hadoop fs -chmod -R 777 /hive/scratchdir
复制代码
2.system:java.io.tmpdir 提示需要使用绝对路径:
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D