[
https://issues.apache.org/jira/browse/AMBARI-25340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926173#comment-16926173
]
amarnath reddy pappu commented on AMBARI-25340:
-----------------------------------------------
I have attached a patch here.
> Hive service check fails when LDAP auth is enabled
> --------------------------------------------------
>
> Key: AMBARI-25340
> URL: https://issues.apache.org/jira/browse/AMBARI-25340
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.7.3
> Reporter: amarnath reddy pappu
> Assignee: amarnath reddy pappu
> Priority: Major
> Attachments: AMBARI-25340.patch
>
>
> Steps to reproduce
> --------------------------
> # Enable Hive LDAP authentication.
> # Add below configs to hive-env
> {noformat}
> alert_ldap_username
> alert_ldap_password{noformat}
> # Now perform service check.
> # It fails with below exception.
> {noformat}
> 2019-07-16 10:28:42,298 - Execute['beeline -n hive -u
> 'jdbc:hive2://xxxxx:10000/;transportMode=binary' -n 'xxxx' -p '[PROTECTED]'
> -e ';' 2>&1 | awk '{print}' | grep -i -e 'Connected to:' -e 'Transaction
> isolation:''] {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/',
> '/usr/sbin/'], 'timeout_kill_strategy': 2, 'timeout': 30, 'user':
> 'ambari-qa'}
> 2019-07-16 10:28:45,880 - Connection to hdpnode02.aepsc.com on port 10000
> failed
> {noformat}
> *Root cause:*
> Ambari uses both the users in beeline. you can see hive as well as ldap user.
> ideally it should only use LDAP user.
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)