浏览代码

HUE-4051 [hive] Have lighter Impala and Hive check configs call than list DBs

Weixia Xu 9 年之前
父节点
当前提交
f91ed51
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      apps/beeswax/src/beeswax/conf.py
  2. 1 1
      apps/impala/src/impala/conf.py

+ 1 - 1
apps/beeswax/src/beeswax/conf.py

@@ -208,7 +208,7 @@ def config_validator(user):
     try:
       if not 'test' in sys.argv: # Avoid tests hanging
         server = dbms.get(user)
-        server.get_databases()
+        server.execute_statement("SELECT 'Hello World!';")
     except StructuredThriftTransportException, e:
       if 'Error validating the login' in str(e):
         msg = 'Failed to authenticate to HiveServer2, check authentication configurations.'

+ 1 - 1
apps/impala/src/impala/conf.py

@@ -183,7 +183,7 @@ def config_validator(user):
       if not 'test' in sys.argv: # Avoid tests hanging
         query_server = get_query_server_config(name='impala')
         server = dbms.get(user, query_server)
-        server.get_databases()
+        server.execute_statement("SELECT 'Hello World!';")
     except StructuredThriftTransportException, ex:
       if 'TSocket read 0 bytes' in str(ex):  # this message appears when authentication fails
         msg = "Failed to authenticate to Impalad, check authentication configurations."