Browse Source

AMBARI-25500. Hive Service Check Fails if the trustStorePassword has Special character $ (#3193) (asnaik via dgrinenko)

Asnaik HWX 5 years ago
parent
commit
284ed88f50

+ 1 - 1
ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py

@@ -68,7 +68,7 @@ def check_thrift_port_sasl(address, port, hive_auth="NOSASL", key=None, kinitcmd
 
   # append url according to ssl configuration
   if ssl and ssl_keystore is not None and ssl_password is not None:
-    beeline_url.extend(['ssl={ssl_str}', 'sslTrustStore={ssl_keystore}', 'trustStorePassword={ssl_password!p}'])
+    beeline_url.extend(['ssl={ssl_str}', 'sslTrustStore={ssl_keystore}', "trustStorePassword='{ssl_password!p}'"])
 
   # append url according to principal and execute kinit
   if kinitcmd and hive_auth != "LDAP":