You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Tamas Mate (Jira)" <ji...@apache.org> on 2020/05/11 15:57:00 UTC

[jira] [Resolved] (IMPALA-8908) Bad error message when failing to connect to HTTPS endpoint with shell

     [ https://issues.apache.org/jira/browse/IMPALA-8908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Mate resolved IMPALA-8908.
--------------------------------
    Fix Version/s: Impala 4.0
       Resolution: Duplicate

Thanks David Knupp for checking and fixing  IMPALA-9489 . Just verified, {{thrift.transport}} module is now coming from thrift-0.11 where THRIFT-3634 is available.
{code:java}
<module 'thrift.transport' from '/home/tmate/Projects/Impala/toolchain/thrift-0.11.0-p2/python/lib/python2.7/site-packages/thrift/transport/__init__.pyc'>
{code}
Closing this Jira and linking IMPALA-9489 with 'is part of'. 

> Bad error message when failing to connect to HTTPS endpoint with shell
> ----------------------------------------------------------------------
>
>                 Key: IMPALA-8908
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8908
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 3.3.0
>            Reporter: Tim Armstrong
>            Assignee: Tamas Mate
>            Priority: Critical
>              Labels: observability, ramp-up
>             Fix For: Impala 4.0
>
>
> Legitimate connection errors get masked with an UnboundLocalError. It looks like THRIFT-3634 fixed this.
> {noformat}
> $ 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)