[ 
https://issues.apache.org/jira/browse/IMPALA-7989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16723583#comment-16723583
 ] 

ASF subversion and git services commented on IMPALA-7989:
---------------------------------------------------------

Commit c187601b0f62c68c34d4db94dcfe479b88176c68 in impala's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=c187601 ]

Remove Python 2.4 workarounds in start-impala-cluster.py

The workarounds are:
* Trying to handle the json module not being present. That module was
  added in Python 2.6 and also isn't used in this file!
* Trying to handle import failure of ImpalaCluster. It appears that
  this is be a workaround for the script being run without the
  correct PYTHONPATH (set by set-pythonpath.sh) - see IMPALA-7989.
  This is fixed in this patch by sourcing it in
  bin/impala-python-common.sh

Testing:
Ran a build on CentOS 6 with Python 2.4 and confirmed that
it was able to start the cluster OK.

Reran a build that previously failed with the python import error.

Change-Id: I80680804e61fcca81ac2b76604ef8fad70b031f5
Reviewed-on: http://gerrit.cloudera.org:8080/12100
Reviewed-by: Bharath Vissapragada <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Impala cluster kill failing with python ImportError
> ---------------------------------------------------
>
>                 Key: IMPALA-7989
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7989
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 3.1.0
>            Reporter: bharath v
>            Assignee: bharath v
>            Priority: Blocker
>
> The tests seem to run fine, but kill-all.sh is failing with the following 
> weird ImportError,
> {noformat}
>  
> /data/jenkins/workspace/impala-asf-master-exhaustive-release/repos/Impala/testdata/bin/kill-all.sh
> 01:40:00 Traceback (most recent call last):
> 01:40:00   File 
> "/data/jenkins/workspace/impala-asf-master-exhaustive-release/repos/Impala/bin/start-impala-cluster.py",
>  line 33, in <module>
> 01:40:00     from tests.common.impala_cluster import ImpalaCluster
> 01:40:00   File 
> "/data/jenkins/workspace/impala-asf-master-exhaustive-release/repos/Impala/tests/common/impala_cluster.py",
>  line 29, in <module>
> 01:40:00     from tests.common.impala_service import (
> 01:40:00   File 
> "/data/jenkins/workspace/impala-asf-master-exhaustive-release/repos/Impala/tests/common/impala_service.py",
>  line 32, in <module>
> 01:40:00     from thrift.protocol import TBinaryProtocol, TCompactProtocol, 
> TProtocol
> 01:40:00 ImportError: cannot import name TCompactProtocol
> {noformat}
> While I'm still digging into the ImportError issue, I think this is caused by 
> https://gerrit.cloudera.org/#/c/12078/. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to