New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-3367: [INTEGRATION] Port Spark integration test to the docker-compose setup #3300
Changes from all commits
41df92d
cdb4f41
7703b50
d654366
341adb4
6a6e1d6
b91eae0
6017145
927eac6
c0aa8eb
c0b24e6
3c088ed
20cf16c
f1b74e9
11b41ab
05a934f
fd54e8a
bb30fe1
31ce522
cb8a438
2c8334d
70028d2
68756b6
4de2c85
e13d227
c594cd3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
# under the License. | ||
|
||
set -e | ||
set -o xtrace | ||
|
||
source_dir=${1:-/arrow/cpp} | ||
build_dir=${2:-/build/cpp} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
set -e | ||
|
||
# /arrow/java is read-only | ||
mkdir -p /build/java | ||
|
||
arrow_src=/build/java/arrow | ||
|
||
pushd /arrow | ||
rsync -a header java format integration $arrow_src | ||
popd | ||
|
||
pushd $arrow_src/java | ||
mvn -DskipTests -Drat.skip=true install | ||
popd |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,19 @@ version: '3.5' | |
|
||
x-ubuntu-volumes: | ||
&ubuntu-volumes | ||
- .:/arrow:delegated | ||
- ${ARROW_DOCKER_CACHE_DIR:-./docker_cache}/ubuntu:/build:delegated | ||
- .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This brought up new issues. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now the python build is failing, because of the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, can you rsync the files into container space and build there? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but I don't like that solution, but probably have to stick with that. |
||
- ubuntu-cache:/build:delegated | ||
|
||
x-alpine-volumes: | ||
&alpine-volumes | ||
- .:/arrow:delegated | ||
- ${ARROW_DOCKER_CACHE_DIR:-./docker_cache}/alpine:/build:delegated | ||
- .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
- alpine-cache:/build:delegated | ||
|
||
volumes: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switched to named volumes. |
||
ubuntu-cache: | ||
alpine-cache: | ||
maven-cache: | ||
spark-cache: | ||
|
||
services: | ||
|
||
|
@@ -105,8 +111,8 @@ services: | |
context: . | ||
dockerfile: java/Dockerfile | ||
volumes: | ||
- .:/arrow:delegated | ||
- $HOME/.m2:/root/.m2:delegated | ||
- .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
- maven-cache:/root/.m2:delegated | ||
|
||
js: | ||
image: arrow:js | ||
|
@@ -267,14 +273,14 @@ services: | |
links: | ||
- hdfs-namenode:hdfs-namenode | ||
|
||
# TODO(kszucs): pass hdfs client version explicitly as a build argument | ||
hdfs-integration: | ||
# Usage: | ||
# export PYTHON_VERSION=3.6 | ||
# docker-compose build cpp | ||
# docker-compose build python | ||
# docker-compose build hdfs-integration | ||
# docker-compose run hdfs-integration | ||
image: arrow:hdfs-${HDFS_VERSION:-2.6.5} | ||
links: | ||
- hdfs-namenode:hdfs-namenode | ||
- hdfs-datanode-1:hdfs-datanode-1 | ||
|
@@ -286,6 +292,8 @@ services: | |
build: | ||
context: . | ||
dockerfile: integration/hdfs/Dockerfile | ||
args: | ||
HDFS_VERSION: ${HDFS_VERSION:-2.6.5} | ||
volumes: *ubuntu-volumes | ||
|
||
# TODO(kszucs): pass dask version explicitly as a build argument | ||
|
@@ -296,10 +304,29 @@ services: | |
# docker-compose build python | ||
# docker-compose build dask-integration | ||
# docker-compose run dask-integration | ||
image: arrow:dask-integration | ||
build: | ||
context: . | ||
dockerfile: integration/dask/Dockerfile | ||
volumes: *ubuntu-volumes | ||
|
||
spark-integration: | ||
# Usage: | ||
# export PYTHON_VERSION=3.6 | ||
# docker-compose build cpp | ||
# docker-compose build python | ||
# docker-compose build spark-integration | ||
# docker-compose run spark-integration | ||
image: arrow:spark-${SPARK_VERSION:-2.4.0} | ||
environment: | ||
- SPARK_VERSION=${SPARK_VERSION:-2.4.0} | ||
build: | ||
context: . | ||
dockerfile: integration/spark/Dockerfile | ||
volumes: | ||
- .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
- ubuntu-cache:/build:delegated | ||
- maven-cache:/root/.m2:delegated | ||
- spark-cache:/spark:delegated | ||
|
||
# TODO(kszucs): hive-integration | ||
# TODO(kszucs): spark-integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof sorry. We should report to setuptools about this issue since this is really crappy