Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1546

Hive hook should choose appropriate JAAS config if host uses kerberos ticket-cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7-incubating, 0.8-incubating
    • 0.8-incubating
    • atlas-intg
    • None

    Description

      In a kerberized environment, Atlas hook uses JAAS configuration section named "KakfaClient" to authenticate with Kafka broker. In a typical Hive deployment this configuration section is set to use the keytab and principal of HiveServer2 process. The hook running in HiveCLI might fail to authenticate with Kafka if the user can't read the configured keytab.

      Given that HiveCLI users would have performed kinit, the hook in HiveCLI should use the ticket-cache generated by kinit. When ticket cache is not available (for example in HiveServer2), the hook should use the configuration provided in KafkaClient JAAS section.

      Attachments

        1. hs2.log.gz
          266 kB
          Greg Senia
        2. hive-site.xml
          19 kB
          Greg Senia
        3. hiveserver2-site.xml
          1 kB
          Greg Senia
        4. hiveserver2_log.txt
          100 kB
          Greg Senia
        5. hiveenviro
          22 kB
          Greg Senia
        6. ATLAS-1546.patch
          9 kB
          Nixon Rodrigues
        7. ATLAS-1546.4.patch
          2 kB
          Nixon Rodrigues
        8. ATLAS-1546.3.patch
          9 kB
          Nixon Rodrigues
        9. ATLAS-1546.2.patch
          9 kB
          Greg Senia
        10. ATLAS-1546.1.patch
          10 kB
          Madhan Neethiraj

        Issue Links

          Activity

            People

              nixon Nixon Rodrigues
              madhan Madhan Neethiraj
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: