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

impala-shell: base64.encodestring has been removed in python3.9

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.2.0
    • Impala 4.3.0
    • Clients

    Description

      When using impala-shell v4.2 with python 3.10 I get following error:

      Starting Impala Shell with LDAP-based authentication using Python 3.10.10
      SSL is enabled. Impala server certificates will NOT be verified (set --ca_cert to change)
      LDAP password for csso_arawat: 
      Warning: --connect_timeout_ms is currently ignored with HTTP transport.
      Error connecting: AttributeError, module 'base64' has no attribute 'encodestring'
      klist: Cache not found: API:2AC1D3D7-13D7-4DD7-BEA7-DF0F4A32A462
      ***********************************************************************************
      Welcome to the Impala shell.
      (Impala Shell v4.3.0a1 (cda4114) built on Thu Feb  2 18:18:16 PST 2023)
      
      The HISTORY command lists all shell commands in chronological order. 

      I only found one hit:

      root@impala:~/Impala# git grep -i 'encodestring'
      shell/impala_client.py:      auth = base64.encodestring(user_passwd.encode()).decode().strip('\n') 

      We should probably use 'base64.encodebytes' instead.

      Attachments

        Activity

          People

            MikaelSmith Michael Smith
            arawat Abhishek Rawat
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: