-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spark-integration-test-minikube-k8s issue
1. Remove deprecated role "install-docker-ce" 2. Apply role "install-openjdk" instead of installing OpenJDK in run.yaml 3. Add option "--r" for command "make-distribution.sh" in minikube job to avoid following docker build error because R code can't be found in docker file. Related-Bug: theopenlab/openlab#310 Related-Bug: theopenlab/openlab#308
- Loading branch information
Showing
4 changed files
with
7 additions
and
71 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
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
- hosts: all | ||
become: yes | ||
roles: | ||
- install-openjdk | ||
- role: install-docker | ||
docker_version: 18.06 | ||
- create-single-k8s-cluster-with-minikube | ||
tasks: | ||
- name: Run integration tests of Spark with k8s cluster manager | ||
shell: | | ||
set -ex | ||
# install java8 | ||
apt-get install openjdk-8-jdk -y | ||
export JAVA_HOME=$(dirname $(dirname $(update-alternatives --list javac))) | ||
sed -i -e '/127.0.0.1/ s/\(localhost\)/'$(hostname)' \1/' /etc/hosts | ||
# NOTE: the distribution step may fail due to dependencies downloading failure, so we suport retry | ||
for i in $(seq 1 3); do ./dev/make-distribution.sh --tgz -Pkubernetes && s=0 && break || s=$? && sleep 5; done; (exit $s) | ||
# Create required account in k8s | ||
kubectl create serviceaccount spark | ||
kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=default:spark --namespace=default | ||
# NOTE: the distribution step may fail due to dependencies downloading failure, so we suport retry | ||
for i in $(seq 1 3); do ./dev/make-distribution.sh --tgz -Pkubernetes --r && s=0 && break || s=$? && sleep 5; done; (exit $s) | ||
pushd resource-managers/kubernetes/integration-tests | ||
dev/dev-run-integration-tests.sh --spark-tgz $(realpath ../../../spark-*.tgz) --namespace default --service-account spark | ||
popd | ||
args: | ||
executable: /bin/bash | ||
chdir: '{{ zuul.project.src_dir }}' | ||
environment: '{{ global_env }}' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.