Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12552

impala-shell should not call encode on kerberos_host_fqdn in python 3 env

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.4.0
    • None
    • ghx-label-14

    Description

      This is a python 3 compatibility problem: 
      In Pyhton 2, the sasl layer does not accept unicode strings, so we have to explicitly encode the kerberos_host_fqdn string to ascii. However, this is not the case in python 3, where we have to omit the encode, because if we don't do this, impala-shell wants to use the following service principal during Kerberos auth: 

      my_service_name/b'my.kerberos.host.fqdn'@MY.REALM

      instead of the correct one, which is:

      my_service_name/my.kerberos.host.fqdn@MY.REALM

      Attachments

        Issue Links

          Activity

            People

              gfarkas Gergely Farkas
              gfarkas Gergely Farkas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: