1.Ranger管理的某個用戶,在Hive中創(chuàng)建外表時報錯。
Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied:?
user [test1] does not have [RWSTORAGE] privilege on [jdbc:oracle:thin:@//192.168.1.51:1521/orcl/test.table_for_hive]?
(state=42000,code=40000)
2.解決方法
需要在Ranger中給test1用戶授予相關權限。
Hadoop SQL Policies
添加策略或者在已有策略中配置如下:
Storage-type:*
Storage-url:*?
用戶選擇:test1:?
?user:test1
再次嘗試發(fā)現(xiàn)可以在Hive里面創(chuàng)建外表。
Ranger:里面。
?
?總結:?文章來源:http://www.zghlxwxcb.cn/news/detail-686507.html
Hive創(chuàng)建外表報錯是因為缺少 【RWSTORAGE】的權限。配置權限即可。文章來源地址http://www.zghlxwxcb.cn/news/detail-686507.html
到了這里,關于16.HiveAccessControlException Permission denied的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!