我正在尝试将角色授予直线中的 AD 组。我面临以下错误。如果有人遇到同样的问题,请建议我解决的步骤。
GRANT ROLE role_test1 TO GROUP test1; 错误:处理语句时出错:FAILED:执行错误,从 org.apache.hadoop.hive.ql.exec.DDLTask 返回代码 1。主体 Principal [name=itops_hdp3_saie_archive_rw,type=GROUP] 中的主体类型无效(状态=08S01,代码=1)
One of the many, many, many critical informations that you did not give was: what Authorization Model do you use?
Some interesting sources:
> mail thread - Q: "Hive SQL based authorization don't have support for group?" -- A: "we haven’t added that feature" (2016-05-26)
> Hive unit tests - comment: "grant insert on group should fail" (was in SVN trunk as of 2016-09-21)