[ 
https://issues.apache.org/jira/browse/AMBARI-25500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129156#comment-17129156
 ] 

Hudson commented on AMBARI-25500:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.7 #661 (See 
[https://builds.apache.org/job/Ambari-branch-2.7/661/])
AMBARI-25500. Hive Service Check Fails if the trustStorePassword has (github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=284ed88f50c09dfdac073cc74f463da738d50a81])
* (edit) 
ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py


> Hive Service Check Fails if the trustStorePassword has Special character $
> --------------------------------------------------------------------------
>
>                 Key: AMBARI-25500
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25500
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.5
>            Reporter: Akhil Naik
>            Assignee: Akhil Naik
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.6
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Problem statement : Hive Service Check Fails if the trustStorePassword has 
> Special character $
> the error logs say : 
> {code:java}
> 2020-04-10 08:20:14,748 - Execute['! (beeline -u 
> 'jdbc:hive2://c4229-node3.coelab.cloudera.com:10000/;transportMode=binary;ssl=true;sslTrustStore=/tmp/keystore1.jks;trustStorePassword=[PROTECTED]'
>  -n hive -e ';' 2>&1 | awk '{print}' | grep -vz -i -e 'Connected to:' -e 
> 'Transaction isolation:' -e 'inactive HS2 instance; use service discovery')'] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 
> 'timeout_kill_strategy': 2, 'timeout': 30, 'user': 'ambari-qa'}
> 2020-04-10 08:20:19,509 - Connection to c4229-node3.coelab.cloudera.com on 
> port 10000 failed
> 2020-04-10 08:20:24,513 - Execute['! (beeline -u 
> 'jdbc:hive2://c4229-node3.coelab.cloudera.com:10000/;transportMode=binary;ssl=true;sslTrustStore=/tmp/keystore1.jks;trustStorePassword=[PROTECTED]'
>  -n hive -e ';' 2>&1 | awk '{print}' | grep -vz -i -e 'Connected to:' -e 
> 'Transaction isolation:' -e 'inactive HS2 instance; use service discovery')'] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 
> 'timeout_kill_strategy': 2, 'timeout': 30, 'user': 'ambari-qa'}
> 2020-04-10 08:20:28,927 - Connection to c4229-node3.coelab.cloudera.com on 
> port 10000 failed
> {code}
> Root cause : the trustStorePassword should idaelly be passed in single quotes 
> to ignore the $ sign, the fix lies in : 
> https://github.com/apache/ambari/blob/a4b2901a9a16e356c230fb647471e099b2d965ba/ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py#L61
> changing 
> {code:java}
>   beeline_url.extend(['ssl={ssl_str}', 'sslTrustStore={ssl_keystore}', 
> 'trustStorePassword={ssl_password!p}'])
> {code}
> to : 
> {code:java}
>   beeline_url.extend(['ssl={ssl_str}', 'sslTrustStore={ssl_keystore}', 
> "trustStorePassword='{ssl_password!p}'"])
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to