Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25340

Hive service check fails when LDAP auth is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.3
    • None
    • ambari-server
    • None

    Description

      Steps to reproduce

      --------------------------

      1. Enable Hive LDAP authentication.
      2. Add below configs to hive-env
      alert_ldap_username
      alert_ldap_password
      1. Now perform service check.
      2. It fails with below exception.
        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 
        

      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.

       

      Attachments

        1. AMBARI-25340.patch
          3 kB
          amarnath reddy pappu

        Activity

          People

            apappu@hortonworks.com amarnath reddy pappu
            apappu@hortonworks.com amarnath reddy pappu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: