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

bin/hive script optimization to support use env variable KRB5_CONFIG to specify the krb5.conf filepath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.0-alpha-1
    • None
    • Beeline
    • None

    Description

      By default, we use the/etc/krb5.conf file

      in kinit use env variable KRB5_CONFIG to specify the krb5.conf filepath

      in Java use property java.security.krb5.conf to do the above

       

      Can me add a judgment in  bin/hive script

       

      if [ ${KRB5_CONFIG} ]; then

          export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djava.security.krb5.conf=${KRB5_CONFIG} "

      fi

      to add -Djava.security.krb5.conf=${KRB5_CONFIG} in Beeline process param to support use env variable KRB5_CONFIG to specify the krb5.conf filepath  in Beeline

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            liguang hiro lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: