mirror of
https://github.com/apache/impala.git
synced 2026-01-07 00:02:28 -05:00
This change has the following additions: - If the user's connecting to a kerberized impalad, the Impala shell will check whether a valid ticket exists by running 'klist -s'. If a valid ticket is not found, then the shell will exit with an appropriate error message on the commandline. - If the user's connecting to a kerberized impalad without the '-k' option, the Impala Shell will issue a 'klist -s' to check if there are valid kerberos tickets in the credentials cache. If a valid ticket is found, it will retry the connection with kerberos enabled. - The Impala shell encodes strings entered on the commandline as unicode. The sasl module expects ascii strings as arguments. Explcitly encode any string sent to the sasl module to ascii. Change-Id: I1799b1e7988a19fa513b683afe1e3b66b68c1ffc Reviewed-on: http://gerrit.ent.cloudera.com:8080/535 Reviewed-by: Ishaan Joshi <ishaan@cloudera.com> Tested-by: Ishaan Joshi <ishaan@cloudera.com>