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

impala-shell --ssl fails in PyPI install

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 4.2.0
    • Impala 4.2.0
    • None
    • None
    • ghx-label-14

    Description

      Attempting to start a PyPI install of impala-shell with --ssl results in

      $ impala-shell --ssl
      Starting Impala Shell with no authentication using Python 2.7.18
      SSL is enabled. Impala server certificates will NOT be verified (set --ca_cert to change)
      No handlers could be found for logger "impala_shell.thrift.transport.sslcompat"
      Error connecting: ValueError, non-zero flags not allowed in calls to recv() on <class 'ssl.SSLSocket'>
      Traceback (most recent call last):
        File "./shell/build/py2_venv/bin/impala-shell", line 11, in <module>
          load_entry_point('impala-shell===install-test', 'console_scripts', 'impala-shell')()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_shell.py", line 2106, in impala_shell_main
          with ImpalaShell(options, query_options) as shell:
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_shell.py", line 294, in __init__
          self.do_connect(options.impalad)
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_shell.py", line 952, in do_connect
          self._connect()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_shell.py", line 1053, in _connect
          self.close_connection()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_shell.py", line 634, in close_connection
          self.imp_client.close_connection()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_client.py", line 705, in close_connection
          self._close_transport()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/impala_client.py", line 226, in _close_transport
          if self.transport and self.transport.isOpen():
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/impala_shell/thrift/transport/TTransport.py", line 150, in isOpen
          return self.__trans.isOpen()
        File "/home/michael/Impala/shell/build/py2_venv/local/lib/python2.7/site-packages/thrift/transport/TSocket.py", line 92, in isOpen
          peeked_bytes = self.handle.recv(1, socket.MSG_PEEK)
        File "/usr/lib/python2.7/ssl.py", line 753, in recv
          self.__class__)
      ValueError: non-zero flags not allowed in calls to recv() on <class 'ssl.SSLSocket'>
      

      This started after IMPALA-11313.

      Attachments

        Issue Links

          Activity

            People

              MikaelSmith Michael Smith
              MikaelSmith Michael Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: