hdfs文件没有权限

Error while compiling statement: FAILED: RuntimeException Cannot create staging directory ‘hdfs://192.168.56.161:9000/hdfs/20200707/demo2/.hive-staging_hive_2020-07-13_23-36-51_696_8667169010962623757-2’: Permission denied: user=anonymous, access=WRITE, inode="/hdfs/20200707/demo2":root:supergroup:drwxr-xr-x

没有权限 我们给他赋最高权

hdfs dfs -chmod -R 777 /hdfs

你可能感兴趣的:(hdfs)