远程连接:hive 报错:Permission denied: user=anonymous, access=EXECUTE

远程连接hive

Error: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.security.AccessControlException: Permission denied: user=anonymous, access=EXECUTE, inode="/tmp":root:supergroup:drwxrwx—

解决办法:报错内容提示hive没有/tmp目录的权限,赋予权限即可:(注意:该tmp目录为hdfs的目录,不是Linux系统的目录)

[root@linux01 ~]# hdfs dfs -chmod 777 /tmp

hadoop fs -chmod -R 777 /user/

你可能感兴趣的:(hive,hive,hadoop,linux)