[
https://issues.apache.org/jira/browse/IMPALA-13326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954823#comment-17954823
]
ASF subversion and git services commented on IMPALA-13326:
----------------------------------------------------------
Commit cbb35ebccdb50c0a032fe2b39c2b3ebb496479a9 in impala's branch
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=cbb35ebcc ]
IMPALA-13326: Prefer python3 for tarball packaged impala-shell
The tarball packaging for impala-shell ships support for
multiple Python versions (including both Python 2 and Python 3).
In the impala-shell script, it determines the python to use
and uses the corresponding installation. Historically, impala-shell
has preferred the "python" executable (which can be Python 2) to
the "python3" executable. Since Python 2 is deprecated, this flips
the preference to prefer "python3" to "python".
This continues to respect IMPALA_PYTHON_EXECUTABLE as before, but
it adds an IMPALA_SHELL_PYTHON_FALLBACK variable to determine
whether to fall back to the regular logic. This defaults to
true, allowing fallback, to maintain existing behavior. The
shell end-to-end tests set this to false to lock in the
Python version.
Testing:
- Ran shell tests
Change-Id: If0e32e8eee672e4dc66e725722f5150cd1e4c9a6
Reviewed-on: http://gerrit.cloudera.org:8080/22953
Reviewed-by: Riza Suminto <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
> Tarball packaged impala-shell should prefer python3 to python2
> --------------------------------------------------------------
>
> Key: IMPALA-13326
> URL: https://issues.apache.org/jira/browse/IMPALA-13326
> Project: IMPALA
> Issue Type: Task
> Components: Clients
> Affects Versions: Impala 4.5.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> The tarball distribution of impala-shell supports building against multiple
> versions of python. It uses the shell/impala-shell bash script to pick the
> appropriate python and corresponding ext-py library directory. Right now, it
> prefers to use the "python" executable. This could be either python2 or
> python3, but it frequently is python2.
> Given that python2 is deprecated, I think this should switch to preferring
> python3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]