org.apache.hadoop.security.AccessControlException): Permission denied: user=root

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=root, access=WRITE, inode="/user/root/.staging":hdfs:hdfs:drwxr-xr-x

linux root 用户没有创建相应目录的权限。
切换到相应的hdfs用户, 然后创建目录,赋权限。或者把权限改成777
hadoop fs -chmod 777 /user/demo

你可能感兴趣的:(大数据,hadoop)