Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-2484

[beeswax] Configure support for Hive Server2 LDAP authentication

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: backlog
    • Fix Version/s: 3.8.0
    • Component/s: con.hive
    • Labels:
      None

      Description

      When Hive server2 is setup with LDAP authentication (in hive-site.xml)

      <property>
      <name>hive.server2.authentication</name>
      <value>LDAP</value>
      </property>

      At the hue.ini side, set up the following:

      [desktop]
      ldap_username=hue // username for Hue to authenticate to Hive Server
      ldap_password=xxxxxx // password for Hue to authenticate to Hive Server

      Hue still seems not be able to work with LDAP of Hive server2.

      From hue code apps/beeswax/src/beeswax/server/hive_server2_lib.py :

      HS2_MECHANISMS =

      {'KERBEROS': 'GSSAPI', 'NONE': 'PLAIN', 'NOSASL': 'NOSASL'}

      ...
      use_sasl = hive_mechanism in ('KERBEROS', 'NONE')
      mechanism = HiveServerClient.HS2_MECHANISMS[hive_mechanism]

      It doesn't handle LDAP authentication. "NONE" has to be used in hive-site.xml for LDAP authentication. It would be nice to handle LDAP authentication mode properly at Hue side for Hive Server2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                romain Romain Rigaux
                Reporter:
                jerrychenhf Chen Haifeng
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: