Problem: When using -get command to copy a file from hdfs, suggesting that access is not enough, as follows:
analysis:
There are three possible reasons:
- hdfs file or folder does not have read permission;
- hdfs configuration does not allow the file copy;
- linux folder does not have write permission
Solution:
Against the three possible solutions are as follows:
1 increase hdfs folder permissions
hadoop fs -chmod 777 /user/hadoop
2 hdfs modify configuration files
# In $ HADOOP_HOME / etc / hadoop / directory, locate the HDFS-the site.xml , add or change the following properties:
<property>
<name>dfs.permissions</name>
<value>false</value></property>
# Will be true this is false .
3 increase linux folder permissions
sudo chmod 777 /home/daniel/tmp
Practical operation : to do the first step after the success of the 1.3