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

SparkClientImpl checks for "kerberos" string in hiveconf only when determining whether to use keytab file.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • Spark
    • Patch

    Description

      The SparkClientImpl will only provide a principal and keytab argument if the HADOOP_SECURITY_AUTHENTICATION in hive conf is set to "kerberos". This will not work on clusters with Hadoop security enabled that are not configured as "kerberos", for example, a cluster which is configured for "ldap".

      The solution is to call UserGroupInformation.isSecurityEnabled() instead.

       

      Code Review: https://reviews.apache.org/r/70718/

      Attachments

        1. HIVE-14888.1-spark.patch
          1 kB
          Thomas Rega
        2. HIVE-14888.2.patch
          2 kB
          David McGinnis
        3. HIVE-14888.3.patch
          2 kB
          David McGinnis
        4. HIVE-14888.4.patch
          2 kB
          David McGinnis
        5. HIVE-14888.5.patch
          2 kB
          David McGinnis

        Activity

          People

            mcginnda David McGinnis
            trega Thomas Rega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 5m Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m