Skip to content

Commit 6be7772

Browse files
authored
bump spark version (#150)
* bump spark version * update default value of SPARK_HOME
1 parent f42fb76 commit 6be7772

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ cache:
1616
env:
1717
global:
1818
- SCALA_VERSION=2.11.8
19-
- SPARK_VERSION=2.3.0
19+
- SPARK_VERSION=2.3.1
2020
- SPARK_BUILD="spark-${SPARK_VERSION}-bin-hadoop2.7"
21-
- SPARK_BUILD_URL="https://dist.apache.org/repos/dist/release/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz"
21+
- SPARK_BUILD_URL="https://dist.apache.org/repos/dist/release/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz"
2222
- SPARK_HOME=$HOME/.cache/spark-versions/$SPARK_BUILD
2323
- RUN_ONLY_LIGHT_TESTS=True
2424
matrix:

bin/download_travis_dependencies.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ mkdir -p $HOME/.cache/spark-versions
77
filename="$HOME/.cache/spark-versions/$SPARK_BUILD.tgz"
88
if ! [ -f $filename ]; then
99
echo "Downloading file..."
10-
echo `which curl`
11-
curl "$SPARK_BUILD_URL" > $filename
12-
echo "Content of directory:"
13-
ls -la $HOME/.cache/spark-versions/*
14-
tar xvf $filename --directory $HOME/.cache/spark-versions > /dev/null
10+
wget "$SPARK_BUILD_URL" -O $filename
11+
echo "[Debug] Following should list a valid spark binary"
12+
ls -larth $HOME/.cache/spark-versions/*
13+
tar -xvzf $filename --directory $HOME/.cache/spark-versions > /dev/null
1514
fi

dev/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def print_if(cond, *args):
125125

126126
def _get_required_env(default=False, interactive=False, override=False, verbose=False):
127127
default_env = {'PYSPARK_PYTHON': 'python',
128-
'SPARK_VERSION': '2.3.0',
129-
'SPARK_HOME': os.path.join(HOME, 'bin/spark-2.3.0-bin-hadoop2.7/'),
128+
'SPARK_VERSION': '2.3.1',
129+
'SPARK_HOME': os.path.join(HOME, 'bin/spark-2.3.1-bin-hadoop2.7/'),
130130
'SCALA_VERSION': '2.11.8'}
131131

132132
if override and not (interactive or default):

0 commit comments

Comments
 (0)