فهرست منبع

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: