org.apache.hadoop.security.AccessControlException 解决办法

用其他用户访问hive 的时候

报错信息:

FAILED: RuntimeException org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: Permission denied: user=dbs, access=WRITE, inode="/opt/hadoop-1.0.1":hadoop:supergroup:drwxr-xr-x

 

解决办法:

在 hdfs-site.xml 总添加参数:

 <property>
        <name>dfs.permissions</name>
        <value>false</value>
  </property> 
</configuration>

 

给用户 dbs访问权限:

grant all on database defaut tu user dbs;

 

 

你可能感兴趣的:(org.apache.hadoop.security.AccessControlException 解决办法)