FAILED:HiveAccessContorlException Permission denied: user[hive] does not havar[USER] privilege on

1、 Ranger 是什么?

ranger则是针对组件内的权限 ,比如HDFS的读写执行,Hive和Hbase的读写更新,yarn的队列资源使用权,目前ranger只支持 hdfs,hive,hbase,kafka,yarn等组件,针对于组和用户对资源的访问权限进行细粒度的控制。

2、遇到的问题

安装 Ambari 时安装了 Ranger  但是没有配置权限,所以出现了下面的问题:

Error:Error while comiling statement: FAILED:HiveAccessContorlException Permission denied: user[hive] does not have[USE] privilege on

FAILED:HiveAccessContorlException Permission denied: user[hive] does not havar[USER] privilege on_第1张图片

 

[es@hdp01 griffin]$ hadoop fs -put hive-site.xml /griffin
put: Permission denied: user=es, access=WRITE, inode="/griffin":hdfs:hdfs:drwxr-xr-x 

 

Ranger 权限控制的问题,配置相应用户的权限就可以了。

具体参考文档:

https://mp.csdn.net/console/editor/html/106575381 

https://www.jianshu.com/p/d9941b8687b7

你可能感兴趣的:(#,Ambari,大数据运维,Ranger,运维,服务器,linux)