Hadoop copy files from hdfs out enough authority

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:

  1. hdfs file or folder does not have read permission;
  2. hdfs configuration does not allow the file copy;
  3. 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

   

   

   

Guess you like

Origin www.cnblogs.com/PomeloYe/p/11783536.html