소스 검색

HUE-8939 [oozie] Avoid exception when hive is not configured.

Jean-Francois Desjeans Gauthier 6 년 전
부모
커밋
70a9e784e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/liboozie/src/liboozie/credentials.py

+ 1 - 1
desktop/libs/liboozie/src/liboozie/credentials.py

@@ -51,7 +51,7 @@ class Credentials(object):
     credentials = {}
     from beeswax import hive_site, conf
 
-    if not hasattr(conf.HIVE_SERVER_HOST, 'get'):
+    if not hasattr(conf.HIVE_SERVER_HOST, 'get') or not conf.HIVE_SERVER_HOST.get():
       LOG.warn('Could not get all the Oozie credentials: beeswax app is blacklisted.')
     else:
       if hive_properties is None: