首页 > 解决方案 > Impala [目录] 和 Hive [Metastore/Sentry] 不同步

问题描述

我们使用 Cloudera (CDH 5.7.5) 和 Hue [3.9.0]。对于管理员用户,一些 hive 表 (60%) 可以通过 impala 访问。其他配置单元表不可访问。对于非管理员用户,没有可通过 Impala 访问的数据库。再一次,一些数据库可以通过 hive 访问。

是因为 Impala 目录不与 hive 元存储同步吗?当我尝试运行无效元数据(对于所有数据库)时,我收到了read operation timeout error消息。我尝试为某些表运行无效的元数据,但没有解决问题,没有影响。我需要检查什么。,

仅供参考,每次通过 Impala 运行查询时都会出现此错误。但不适用于蜂巢。

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

FYI2,无效元数据运行良好。对于管理员用户,所有数据库和表都可以通过 hive 和 impala 访问。但是对于非管理员用户,授权数据库只能通过 hive 访问(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'}

标签: hiveclouderaimpalahueapache-sentry

解决方案


推荐阅读