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

Bad error message when failing to connect to HTTPS endpoint with shell

    XMLWordPrintableJSON

Details

    Description

      Legitimate connection errors get masked with an UnboundLocalError. It looks like THRIFT-3634 fixed this.

      $ impala-shell.sh -i ip-10-97-80-186.cloudera.site --protocol=hs2 --ldap --user csso_tarmstrong --ssl
      Starting Impala Shell using LDAP-based authentication
      SSL is enabled. Impala server certificates will NOT be verified (set --ca_cert to change)
      LDAP password for csso_tarmstrong:
      Traceback (most recent call last):
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_shell.py", line 1880, in <module>
          impala_shell_main()
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_shell.py", line 1841, in impala_shell_main
          with ImpalaShell(options, query_options) as shell:
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_shell.py", line 243, in __init__
          self.do_connect(options.impalad)
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_shell.py", line 812, in do_connect
          self._connect()
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_shell.py", line 860, in _connect
          self.server_version, self.webserver_address = self.imp_client.connect()
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_client.py", line 176, in connect
          self.transport = self._get_transport(self.client_connect_timeout_ms)
        File "/home/tarmstrong/Impala/incubator-impala/shell/impala_client.py", line 472, in _get_transport
          transport.open()
        File "/home/tarmstrong/Impala/incubator-impala/shell/thrift_sasl.py", line 61, in open
          self._trans.open()
        File "/opt/Impala-Toolchain/thrift-0.9.3-p7/python/lib/python2.7/site-packages/thrift/transport/TSSLSocket.py", line 258, in open
          logger.error('Error while connecting with %s.', ip_port, exc_info=True)
      UnboundLocalError: local variable 'ip_port' referenced before assignment
      

      Attachments

        Issue Links

          Activity

            People

              tmate Tamas Mate
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: