在Eclipse配置hadoop的开发环境出现org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security

在Eclipse配置hadoop的开发环境出现org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException异常

 

解决方法是,在conf/hdfs-site.xml中设置dfs.permissions的值为false,如:

 

<property>
    <name>dfs.permissions</name>
    <value>false</value>
    <description>
       If "true", enable permission checking in HDFS.
       If "false", permission checking is turned off,
       but all other behavior is unchanged.
       Switching from one parameter value to the other does not change the mode,
       owner or group of files or directories.
    </description>
 </property> 


 

你可能感兴趣的:(在Eclipse配置hadoop的开发环境出现org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security)