假设我想从 /home/user
至 /hdfs/data/adhoc/PR/02/RDO0/OUTPUT/
所以:
hadoop fs mkdir -m 777 /hdfs/data/adhoc/PR/02/RDO0/OUTPUT/
hadoop fs -moveFromLocal RDO07J420.csv $OUTPUT_FILE_OCRE/MGM7J420-${OPC_DISO8601}.csv
但是,我有个问题:
movefromlocal:权限被拒绝:user=fs191,access=write,inode=“/hdfs/data/adhoc/pr/02/rdo0/output/mgm7j420-.csv.copying”:rdo0-mdopr:bfrdo0:drwxr-x---
1条答案
按热度按时间xzabzqsa1#
您的本地用户在hdfs中没有写权限。尝试
hdfs是根用户,具有写权限,但我建议更好地管理用户和权限
http://www.informit.com/articles/article.aspx?p=2755708&seqnum=3