org.apache.hadoop.security.AccessControlException Permission denied: user=anonymous, access=WRITE, inode="/":root:supergroup:drwxr-xr-x

CREATE TABLE pokes (foo INT, bar STRING);
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=anonymous, access=WRITE, inode="/":root:supergroup:drwxr-xr-x

解决:

hadoop dfsadmin -safemode leave 关闭安全模式

hadoop fs -chmod 775 /  授予权限

 

posted @ 2019-01-08 10:27  uuhh  阅读(1163)  评论(0编辑  收藏  举报