瀏覽代碼

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

Asnaik HWX 5 年之前
父節點
當前提交
284ed88f50
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py

+ 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":