Hive Cloudera:SemanticException无有效权限此查询所需的权限

Hive Cloudera:SemanticException无有效权限此查询所需的权限,hive,cloudera,Hive,Cloudera,使用配置单元创建表(使用用户admin)时,出现以下错误: Your query has the following error(s): Error while compiling statement: FAILED: SemanticException No valid privileges Required privileges for this query: Server=server1->Db=*->Table=+->action=insert;Server=serv

使用配置单元创建表(使用用户admin)时,出现以下错误:

Your query has the following error(s):

Error while compiling statement: FAILED: SemanticException No valid privileges Required privileges for this query: Server=server1->Db=*->Table=+->action=insert;Server=server1->Db=*->Table=+->action=select;
我不明白为什么管理员没有足够的权限,我应该怎么做才能解决这个问题


感谢

登录终端并运行此命令
sudo-u hdfs hadoop fs-chmod 777-R/user/hive/warehouse
,然后尝试创建数据库/表


色调中的用户管理员不需要在所有配置单元表将指向的hdfs location/user/hive/warehouse下拥有权限。

是否启用了身份验证和授权?您是否正确设置了Sentry、Kerberos身份验证。您还应该遵循配置单元文档的Kerberos身份验证。配置单元在/user/Hive/warehouse中存储的数据库和表由配置单元管理员用户独占。然后,我将为配置单元组创建管理员角色,并为此用户添加映射。您的管理员用户是否正确验证?它是本地用户还是Kerberos主体?