[
https://issues.apache.org/jira/browse/IMPALA-7989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16723305#comment-16723305
]
bharath v commented on IMPALA-7989:
-----------------------------------
I think I managed to narrow down the problematic kill-all.sh. Also I printed
the sys.path when this ImportError is thrown,
{noformat}
03:13:39.297
['/data0/jenkins/workspace/impala-private-parameterized/repos/Impala/bin',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/shell/gen-py',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/testdata',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/Impala-Toolchain/cdh_components-742221/hive-2.1.1-cdh6.x-SNAPSHOT/lib/py',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python27.zip',
03:13:39.298
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python2.7',
03:13:39.299
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python2.7/plat-linux2',
03:13:39.299
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python2.7/lib-tk',
03:13:39.299
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python2.7/lib-old',
03:13:39.299
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib64/python2.7/lib-dynload',
03:13:39.299 '/usr/lib64/python2.7',
03:13:39.299 '/usr/lib/python2.7',
03:13:39.300
'/data/jenkins/workspace/impala-private-parameterized/repos/Impala/infra/python/env/lib/python2.7/site-packages',
03:13:39.300
'/data0/jenkins/workspace/impala-private-parameterized/repos/Impala/lib/python']
{noformat}
Looks like it is missing {{thrift-0.9.3-p4/python/lib/python2.7/site-packages}}
from Impala-toolchain which the set-pythonpath script adds. Lemme try out the
set-pythonpath.sh approach.
> 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]