[
https://issues.apache.org/jira/browse/IMPALA-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063703#comment-17063703
]
ASF subversion and git services commented on IMPALA-3343:
---------------------------------------------------------
Commit 51a20bd8f1009b15c35d5fc28d1958f3e2af9ed8 in impala's branch
refs/heads/branch-3.4.0 from David Knupp
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=51a20bd ]
IMPALA-3343: Part 1 -- Fix simple python 2->3 syntax errors
In an effort to keep the work of reviewing the changes more manageable
with regard to making the impala-shell python3 compatible, I'm trying
to break the patches up into smaller chunks.
The first patch is the easiest one -- simply addressing the handful of
syntax issues that aren't python 3 compatible, namely changing the
print statements to function calls, changing the way we catch exceptions,
and adding a few simple branches to work around the removal of such
things as dict.iteritems().
We needed the print function imported from __future__ because it allows
us to pass in a file descriptor, e.g., sys.stderr.
Notably, there's nothing in this patch related to string/bytes/unicode
changes from python 2 to 3.
Change-Id: I9a515da01ef03d5936cb1a4d9e4bc6d105386b1d
Reviewed-on: http://gerrit.cloudera.org:8080/15487
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
(cherry picked from commit ed15c2c58f75c47a1111690a30e81af3202e7f82)
> Impala-shell compatibility with python 3
> ----------------------------------------
>
> Key: IMPALA-3343
> URL: https://issues.apache.org/jira/browse/IMPALA-3343
> Project: IMPALA
> Issue Type: Bug
> Components: Clients
> Affects Versions: Impala 2.5.0
> Reporter: Peter Ebert
> Assignee: David Knupp
> Priority: Critical
>
> Installed Anaconda package and python 3, Impala shell has errors and will not
> run in the python 3 environment.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]