我是新的hadoop分布式文件系统,我已经在我的机器上完成hadoop单节点的安装。之后,当我要上传数据到hdfs它给出错误消息权限被拒绝。
来自终端的消息与命令:
hduser@ubuntu:/usr/local/hadoop$ hadoop fs -put /usr/local/input-data/ /input put: /usr/local/input-data (Permission denied) hduser@ubuntu:/usr/local/hadoop$
使用sudo和添加hduser到sudouser:
hduser@ubuntu:/usr/local/hadoop$ sudo bin/hadoop fs -put /usr/local/input-data/ /inwe put: org.apache.hadoop.security.AccessControlException: Permission denied: user=root,access=WRITE,inode="":hduser:supergroup:rwxr-xr-x hduser@ubuntu:/usr/local/hadoop$