Impala [catalog]和Hive[metastore/sentry]不同步

mnowg1ta  于 2021-06-26  发布在  Hive
关注(0)|答案(0)|浏览(254)

我们使用cloudera(cdh5.7.5)和hue[3.9.0]。对于管理员用户,一些配置单元表(60%)可以通过impala访问。其他配置单元表不可访问。对于非管理员用户,没有可通过impala访问的数据库。同样,一些数据库可以通过hive访问。
是不是因为 Impala 目录与Hive元存储不同步?当我尝试运行invalidatemetadata(对于所有数据库)时,我得到了 read operation timeout error 信息。我尝试为一些表运行invalidatemetadata,但没有解决问题,没有影响。我要查的是什么。,
仅供参考,每次通过impala运行查询时都会出现此错误。但不是为了Hive。

AuthorizationException: User 'test.user' does not have privileges to execute 'SELECT' on: default.test01

仅供参考,无效元数据运行良好。对于管理员用户,所有数据库和表都可以通过hive&impala访问。但对于非管理员用户,授权数据库只能通过配置单元访问(impala no)
这是色调日志的一部分:

[13/Jul/2018 10:32:05 +0700] thrift_util  DEBUG    Thrift call: <class 'ImpalaService.ImpalaHiveServer2Service.Client'>.CloseOperation(args=(TCloseOperationReq(operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=3, operationId=THandleIdentifier(secret="o\xe8}\x9a\xf6'F\x8d\x9aC\xd4!\xb2#:\x91", guid="o\xe8}\x9a\xf6'F\x8d\x9aC\xd4!\xb2#:\x91"))),), kwargs={})
[13/Jul/2018 10:32:05 +0700] thrift_util  DEBUG    Thrift call <class 'ImpalaService.ImpalaHiveServer2Service.Client'>.CloseOperation returned in 1ms: TCloseOperationResp(status=TStatus(errorCode=None, errorMessage=None, sqlState=None, infoMessages=None, statusCode=0))
[13/Jul/2018 10:32:05 +0700] access       INFO     10.192.64.252 myuser.test - "POST /notebook/api/autocomplete/ HTTP/1.1"
[13/Jul/2018 10:32:05 +0700] dbms         DEBUG    Query Server: {'SESSION_TIMEOUT_S': 43200, 'QUERY_TIMEOUT_S': 600, 'server_name': 'impala', 'server_host': 'serverhost.com', 'querycache_rows': 50000, 'server_port': 21050, 'auth_password_used': False, 'impersonation_enabled': True, 'auth_username': 'hue', 'principal': 'impala/serverhost.com'}
[13/Jul/2018 10:32:05 +0700] dbms         DEBUG    Query Server: {'SESSION_TIMEOUT_S': 43200, 'QUERY_TIMEOUT_S': 600, 'server_name': 'impala', 'server_host': 'serverhost.com', 'querycache_rows': 50000, 'server_port': 21050, 'auth_password_used': False, 'impersonation_enabled': True, 'auth_username': 'hue', 'principal': 'impala/serverhost.com'}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题