Browse Source

HUE-4809 [hive] Add trustore parameters only if SSL is turned on

Romain Rigaux 9 years ago
parent
commit
0185665de0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      apps/beeswax/src/beeswax/hive_site.py

+ 4 - 4
apps/beeswax/src/beeswax/hive_site.py

@@ -137,11 +137,11 @@ def hiveserver2_jdbc_url():
   if get_conf().get(_CNF_HIVESERVER2_USE_SSL, 'FALSE').upper() == 'TRUE':
   if get_conf().get(_CNF_HIVESERVER2_USE_SSL, 'FALSE').upper() == 'TRUE':
     urlbase += ';ssl=true'
     urlbase += ';ssl=true'
 
 
-  if get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PATH):
-    urlbase += ';sslTrustStore=%s' % get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PATH)
+    if get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PATH):
+      urlbase += ';sslTrustStore=%s' % get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PATH)
 
 
-  if get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PASSWORD):
-    urlbase += ';trustStorePassword=%s' % get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PASSWORD)
+    if get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PASSWORD):
+      urlbase += ';trustStorePassword=%s' % get_conf().get(_CNF_HIVESERVER2_TRUSTSTORE_PASSWORD)
 
 
   return urlbase
   return urlbase