You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/06/13 17:16:00 UTC
[jira] [Commented] (IMPALA-11343) impala-shell --ssl fails in PyPI install
[ https://issues.apache.org/jira/browse/IMPALA-11343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553723#comment-17553723 ]
ASF subversion and git services commented on IMPALA-11343:
----------------------------------------------------------
Commit 1285fc95ad237f18ff46f5c1d259e004058bbd6e in impala's branch refs/heads/master from Michael Smith
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=1285fc95a ]
IMPALA-11343: Override isOpen to avoid thrift bug
Overrides isOpen on TSSLSocket to work around THRIFT-5595.
Change-Id: Iff9dfb3aaf578a7dbcedd3ca8e1478a5ecb958c3
Reviewed-on: http://gerrit.cloudera.org:8080/18603
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Joe McDonnell <jo...@cloudera.com>
> impala-shell --ssl fails in PyPI install
> ----------------------------------------
>
> Key: IMPALA-11343
> URL: https://issues.apache.org/jira/browse/IMPALA-11343
> Project: IMPALA
> Issue Type: Bug
> Affects Versions: Impala 4.2.0
> Reporter: Michael Smith
> Assignee: Michael Smith
> Priority: Blocker
>
> Attempting to start a PyPI install of impala-shell with {{--ssl}} results in
> {code}
> $ 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'>
> {code}
> This started after IMPALA-11313.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org