错误原因
运行hive时出现如下错误。
Exception in thread “main” java.lang.RuntimeException: The dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx------
翻译后:
线程“main”java.lang.RuntimeException中的异常:HDFS上的dir:/tmp/hive应该是可写的。当前权限为:rwx------

解决方法
修改目录权限就可以了
hadoop fs hadoop fs -chmod -R 777 /tmp
