0: jdbc:hive2://node1:10000> create role root;
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Current user : ljr is not allowed to add roles. User has to belong to ADMIN role and have it as current role, for this action. (state=08S01,code=1)
對于由于用戶權(quán)限引起的報錯,我們知道只要對用戶進行授予相關(guān)的權(quán)限就可以解決問題,但是最令人疑惑的是,這個授權(quán)的boss是誰?我們可以從報錯內(nèi)容看出授權(quán)的必須是belong to ADMIN role and have it as current role(屬于超級管理員的角色,并且是當前的角色),下面討論怎么進行設(shè)置;文章來源:http://www.zghlxwxcb.cn/news/detail-491043.html
解決文章來源地址http://www.zghlxwxcb.cn/news/detail-491043.html
到了這里,關(guān)于hive使用時的用戶權(quán)限問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!