-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
163 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ cover/ | |
*.egg | ||
/env/ | ||
/htmlcov/ | ||
.idea/ | ||
.project | ||
*.pyc | ||
.pydevproject | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
sudo: required | ||
language: python | ||
env: | ||
# newest everything | ||
- CDH=cdh5 PRESTO=0.118 SQLALCHEMY=1.0.8 | ||
# stale stuff we're still actively using | ||
- CDH=cdh4 PRESTO=0.97 SQLALCHEMY=0.5.8 | ||
# every version of sqlalchemy with special code | ||
- CDH=cdh4 PRESTO=0.118 SQLALCHEMY=0.5.8 | ||
- CDH=cdh4 PRESTO=0.118 SQLALCHEMY=0.6.9 | ||
- CDH=cdh4 PRESTO=0.118 SQLALCHEMY=0.7.10 | ||
- CDH=cdh4 PRESTO=0.118 SQLALCHEMY=0.8.7 | ||
- CDH=cdh4 PRESTO=0.118 SQLALCHEMY=1.0.8 | ||
python: | ||
- "2.7" | ||
before_install: | ||
- ./scripts/travis-install.sh | ||
- pip install codecov | ||
install: | ||
- pip install -e . | ||
- pip install sqlalchemy==$SQLALCHEMY | ||
- pip install -r dev_requirements.txt | ||
script: py.test | ||
after_success: codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | ||
<configuration> | ||
<property> | ||
<name>hive.metastore.uris</name> | ||
<value>thrift://localhost:9083</value> | ||
</property> | ||
<property> | ||
<name>javax.jdo.option.ConnectionURL</name> | ||
<value>jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true</value> | ||
</property> | ||
<property> | ||
<name>fs.defaultFS</name> | ||
<value>file:///</value> | ||
</property> | ||
<property> | ||
<name>hive.metastore.warehouse.dir</name> | ||
<value>/tmp/hive/warehouse</value> | ||
</property> | ||
<!-- | ||
TODO tests rely having result set column names unprefixed | ||
This could be improved by having an option to strip out prefixes when it would not result in | ||
ambiguity. | ||
--> | ||
<property> | ||
<name>hive.resultset.use.unique.column.names</name> | ||
<value>false</value> | ||
</property> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
connector.name=hive-%CDH% | ||
hive.metastore.uri=thrift://localhost:9083 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coordinator=true | ||
node-scheduler.include-coordinator=true | ||
http-server.http.port=8080 | ||
query.max-memory=100MB | ||
query.max-memory-per-node=100MB | ||
discovery-server.enabled=true | ||
discovery.uri=http://localhost:8080 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node.environment=production | ||
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
node.data-dir=/tmp/presto/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash -eux | ||
|
||
sudo wget "http://archive.cloudera.com/$CDH/ubuntu/precise/amd64/cdh/cloudera.list" \ | ||
-O /etc/apt/sources.list.d/cloudera.list | ||
# work around broken list | ||
sudo sed -i 's mirror.infra.cloudera.com/archive archive.cloudera.com g' \ | ||
/etc/apt/sources.list.d/cloudera.list | ||
sudo apt-get update | ||
|
||
# | ||
# Hive | ||
# | ||
|
||
sudo apt-get install -y --force-yes hive | ||
sudo cp $(dirname $0)/travis-conf/hive/* /etc/hive/conf | ||
sudo -u hive mkdir /tmp/hive && sudo chmod 777 /tmp/hive | ||
sudo apt-get install -y --force-yes hive-metastore hive-server2 | ||
|
||
sudo -Eu hive $(dirname $0)/make_test_tables.sh | ||
|
||
# | ||
# Presto | ||
# | ||
|
||
sudo apt-get install -y oracle-java8-installer | ||
sudo update-java-alternatives -s java-8-oracle | ||
|
||
curl https://repo1.maven.org/maven2/com/facebook/presto/presto-server/$PRESTO/presto-server-$PRESTO.tar.gz \ | ||
| tar zxf - | ||
|
||
cp -r $(dirname $0)/travis-conf/presto presto-server-$PRESTO/etc | ||
sed -i s/%CDH%/$CDH/g presto-server-$PRESTO/etc/catalog/hive.properties | ||
|
||
if [ "$PRESTO" == "0.97" ] | ||
then | ||
sed -i '/query.max-memory/d' presto-server-$PRESTO/etc/config.properties | ||
fi | ||
|
||
./presto-server-$PRESTO/bin/launcher start |