Commit Graph

5 Commits

Author SHA1 Message Date
Casey Ching
8c55f9b2f5 Python: Upgrade impyla to bring in bug fix
0.11.2 has a fix for https://github.com/cloudera/impyla/issues/126

This also remove an extra copy of execnet that was somehow in the
deps folder.

Change-Id: I7b581c7a44be872b95e31b454ab1c42e1f1b8421
Reviewed-on: http://gerrit.cloudera.org:8080/822
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Internal Jenkins
2015-09-14 13:43:01 -07:00
Casey Ching
2f62d30ccb Python: Update impyla for Hive changes
Impyla now has better support for Hive with commit c83a11. This is
useful for testing.

Change-Id: I2814cbff6f1fcfce51a0271b68daababca33dc65
Reviewed-on: http://gerrit.cloudera.org:8080/744
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: Internal Jenkins
2015-09-09 18:53:50 +00:00
Casey Ching
2e4e89c267 Python: Add thrift_sasl to virtualenv
Previously thrift_sasl was brought into the virtualenv by building
the shell. That meant the shell had to be built before the
virtualenv could be used. By includeing thrift_sasl directly, the
virtualenv can be used even if impala/shell is not built.

Change-Id: Id1a099036b1ac8add5a314af981789ebf69ce465
Reviewed-on: http://gerrit.cloudera.org:8080/685
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: Internal Jenkins
2015-09-09 03:17:25 +00:00
Jim Apple
927b8a4d39 Python sasl module is needed by tests/util/thrift_util.py.
Change-Id: I6769991e8b3de0c05b2236cc8243586113a97368
Reviewed-on: http://gerrit.cloudera.org:8080/686
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: Internal Jenkins
2015-08-25 03:02:54 +00:00
Casey Ching
ca5856b8f8 Python: Bootstrap a virtualenv and add impala-python command
This adds a bootstrap script and a "impala-python" command to
$IMPALA_HOME/bin that automatically runs the bootstrap and redirects to
the virtualenv python. Existing python scripts will later be updated to
use the this new "impala-python" command.

The bootstrap script will build a virtualenv to ensure a minimum python
version (2.6) and a well known set of dependencies. The bootstrap script
can be run with python 2.4 but 2.6 must already be installed on the
system. The resulting virtualenv will use 2.6 at a minimum.

Only dependencies explicitly listed in requirements.txt will be
installed and available (no system packages will ever be used). No
packages will ever be downloaded when setting up the virtualenv. In the
future new dependencies can be added by editing the requirements.txt
file. Installation through requirements.txt is a standard pip feature.
When requirements.txt is updated, the next run of "impala-python"  will
rebuild the virtualenv.

Change-Id: I150595d7e09a45d5f2e3c30a845bc8d6a761eeed
Reviewed-on: http://gerrit.cloudera.org:8080/424
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: Internal Jenkins
2015-08-01 01:30:12 +00:00