guang li created HIVE-26730:
-------------------------------

             Summary: bin/hive script optimization to support use env variable 
KRB5_CONFIG to specify the krb5.conf filepath
                 Key: HIVE-26730
                 URL: https://issues.apache.org/jira/browse/HIVE-26730
             Project: Hive
          Issue Type: Improvement
          Components: Beeline
    Affects Versions: 4.0.0-alpha-1
            Reporter: guang li


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

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to