[
https://issues.apache.org/jira/browse/IMPALA-12219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18014121#comment-18014121
]
Csaba Ringhofer commented on IMPALA-12219:
------------------------------------------
This comes from Thrift and seems related to
https://github.com/apache/thrift/commit/7ec41775f2f244741c7c1ef1236a96d71648c498
My preferred way of solving this would be to bump Thrift version
> impala-shell displays DeprecationWarning when using Python >=3.10
> -----------------------------------------------------------------
>
> Key: IMPALA-12219
> URL: https://issues.apache.org/jira/browse/IMPALA-12219
> Project: IMPALA
> Issue Type: Bug
> Components: Clients
> Affects Versions: Impala 4.3.0
> Reporter: Joe McDonnell
> Priority: Major
> Labels: python3
>
> Ubuntu 22 uses Python 3.10, which deprecated ssl.PROTOCOL_TLS. When
> impala-shell starts up, it produces this message:
> {noformat}
> Starting Impala Shell with no authentication using Python 3.10.6
> SSL is enabled. Impala server certificates will NOT be verified (set
> --ca_cert to change)
> Warning: live_progress only applies to interactive shell sessions, and is
> being skipped for now.
> /home/impdev/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/ext-py3/thrift-0.16.0-py3.10-linux-x86_64.egg/thrift/transport/TSSLSocket.py:53:
> DeprecationWarning: ssl.PROTOCOL_TLS is deprecated{noformat}
> This doesn't seem to be coming from impala-shell code, so we will need to
> track down what is using this.
> This is somewhat harmless, except that it causes test failures for
> custom_cluster/test_client_ssl.py, which asserts that DeprecationWarning is
> not in the output.
> {noformat}
> def _validate_positive_cases(self, vector, ca_cert=""):
> shell_options = ["--ssl", "-q", "select 1 + 2"]
> result = run_impala_shell_cmd(vector, shell_options,
> wait_until_connected=False)
> for msg in [self.SSL_ENABLED, self.CONNECTED, self.FETCHED]:
> assert msg in result.stderr
> assert self.DEPRECATION_WARNING not in result.stderr <-----{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]