Hive学习笔记 --Permission denied: user=anonymous, access=READ
执行select语句报错
Error: java.io.IOException: org.apache.hadoop.security.AccessControlException: Permission denied: user=anonymous, access=READ, inode="/warehouse/tablespace/managed/hive/datacenter.db/table085832fb645b4586ac26f729f4f12a31/tableData.txt":hdfs:hadoop:-rw-rw----
解决办法
hdfs dfs命令对文件夹下的文件赋予权限
hadoop dfs -chmod -R 777 /warehouse/tablespace/managed/hive/datacenter.db
关于不能执行Hadoop命令 并报权限问题执行错误1、Permission denied: user=root, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
解决办法
用他指定的用户执行:su hdfs