Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21573

Binary transport shall ignore principal if auth is set to delegationToken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • JDBC
    • None
    • Reviewed

    Description

      When Beeline is used by Sqoop from Oozie sqoop action in a kerberized cluster, Sqoop passes Hive delegation token to Beeline when invokes the beeline command. Unfortunately, Beeline puts principal=XY parameter to JDBC url so when binary transport is needed it will use principal based authentication instead of token based.

      Related code: https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L688L705

      Attachments

        1. HIVE-21573.4.patch
          3 kB
          Dénes Bodó
        2. HIVE-21573.3.patch
          2 kB
          Dénes Bodó

        Activity

          People

            dionusos Dénes Bodó
            dionusos Dénes Bodó
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: