Principal [] does not have following privileges for operation CREATETABLE [[OBJECT OWNERSHIP]
Posted 光于前裕于后
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Principal [] does not have following privileges for operation CREATETABLE [[OBJECT OWNERSHIP]相关的知识,希望对你有一定的参考价值。
赋予所有权限ALL并没有用
hive> create role new_dw_role;
hive> grant all on database ods to role new_dw_role;
hive> grant role new_dw_role to user edw;
hive> show grant role new_dw_role on all;
hive> show roles;
hive> show role grant user edw;
hive> show grant user edw on all;
hive> show grant user edw on database ods;
# 上面是通过先赋权限给角色,角色再给用户,下面是直接赋给用户
hive> grant all on database ods to user edw;
hive> show grant user edw on database ods;
hive> show grant on database ods;
缺少的是 OBJECT OWNERSHIP,还需要更改所有者
alter database ods set owner user edw;
# 也可给多个用户,赋予权限
alter database ods set owner role tmp_role;
以上是关于Principal [] does not have following privileges for operation CREATETABLE [[OBJECT OWNERSHIP]的主要内容,如果未能解决你的问题,请参考以下文章
Sqoop报警告hcatalog does not exist!...accumulo does not exist!解决方案
Oauth2.0 整合springCloud的Zuul 解决关键BUG 报错信息:Principal must not be null
Custom LDAP Monitor Does Not Work
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn