Apache DataFusion SQL Query Engine
ARROW-3180: [C++] Add docker-compose setup to simulate Travis CI run locally
Krisztián Szűcs91e0ea85a3f1
diff --git a/.dockerignore b/.dockerignorenew file mode 100644index 0000000000..61f42f0b44--- /dev/null+++ b/.dockerignore@@ -0,0 +1,85 @@+# 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.++.git++# IDE+.vscode++# c_glib+c_glib/build+c_glib/autom4te.cache+c_glib/m4+c_glib/*/*.o+c_glib/*/*.lo+c_glib/*/*.la+c_glib/*/.deps+c_glib/*/.libs++# cpp+cpp/.idea+cpp/build+cpp/*-build+cpp/Testing++# python+python/build+python/dist+python/*.egg-info+python/*.egg+python/*.pyc+python/doc/_build+__pycache__/+*/__pycache__/+*/*/__pycache__/+*/*/*/__pycache__/+*.py[cod]+*/*.py[cod]+*/*/*.py[cod]+*/*/*/*.py[cod]+*.so+*/*.so+*/*/*.so+*/*/*/*.so+*.dylib+*/*.dylib+*/*/*.dylib+*/*/*/*.dylib++# JS+js/.npm+js/node_modules+js/jspm_packages++js/logs+js/*.log+js/.esm-cache+js/npm-debug.log*+js/yarn-debug.log*+js/yarn-error.log*++js/.grunt+js/bower_components+js/.lock-wscript+js/build/Release+js/dist+js/targets+js/test/data+js/test/__snapshots__++# Rust+rust/targetdiff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.ymlnew file mode 100644index 0000000000..5aa3c32b41--- /dev/null+++ b/ci/conda_env_cpp.yml@@ -0,0 +1,33 @@+# 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.++boost-cpp+brotli+cmake+flatbuffers+gflags+glog+gtest+jemalloc+libprotobuf+lz4-c+python+rapidjson+snappy+thrift-cpp+zlib+zstddiff --git a/ci/conda_env_python.yml b/ci/conda_env_python.ymlnew file mode 100644index 0000000000..43022ae024--- /dev/null+++ b/ci/conda_env_python.yml@@ -0,0 +1,26 @@+# 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.++cython+ipython+nomkl+numpy+pandas+pytest+python+setuptools+setuptools_scmdiff --git a/ci/docker_build_c_glib.sh b/ci/docker_build_c_glib.shnew file mode 100755index 0000000000..7390e79369--- /dev/null+++ b/ci/docker_build_c_glib.sh@@ -0,0 +1,37 @@+#!/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++export ARROW_C_GLIB_HOME=$CONDA_PREFIX++export CFLAGS="-DARROW_NO_DEPRECATED_API"+export CXXFLAGS="-DARROW_NO_DEPRECATED_API -D_GLIBCXX_USE_CXX11_ABI=0"++pushd arrow/c_glib+ mkdir build++ # Build with Meson+ meson build --prefix=$ARROW_C_GLIB_HOME --libdir=lib++ pushd build+ ninja+ ninja install+ popd+popddiff --git a/ci/docker_build_cpp.sh b/ci/docker_build_cpp.shnew file mode 100755index 0000000000..16a09f3b0a--- /dev/null+++ b/ci/docker_build_cpp.sh@@ -0,0 +1,49 @@+#!/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 specific environment variables+export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX+export ARROW_HOME=$CONDA_PREFIX+export PARQUET_HOME=$CONDA_PREFIX++# https://arrow.apache.org/docs/python/development.html#known-issues+export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"++mkdir -p arrow/cpp/build+pushd arrow/cpp/build++cmake -GNinja \+ -DCMAKE_BUILD_TYPE=${ARROW_BUILD_TYPE:-debug} \+ -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \+ -DARROW_ORC=ON \+ -DARROW_PLASMA=ON \+ -DARROW_PARQUET=ON \+ -DARROW_HDFS=${ARROW_HDFS:-OFF} \+ -DARROW_PYTHON=${ARROW_PYTHON:-OFF} \+ -DARROW_BUILD_TESTS=${ARROW_BUILD_TESTS:-OFF} \+ -DARROW_BUILD_UTILITIES=${ARROW_BUILD_UTILITIES:-ON} \+ -DARROW_INSTALL_NAME_RPATH=${ARROW_INSTALL_NAME_RPATH:-ON} \+ -DARROW_EXTRA_ERROR_CONTEXT=ON \+ -DCMAKE_CXX_FLAGS=$CXXFLAGS \+ ..+ninja+ninja install++popddiff --git a/ci/docker_build_python.sh b/ci/docker_build_python.shnew file mode 100755index 0000000000..f145694d25--- /dev/null+++ b/ci/docker_build_python.sh@@ -0,0 +1,38 @@+#!/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++export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX+export ARROW_HOME=$CONDA_PREFIX++# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issues+export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"+export PYARROW_CXXFLAGS=$CXXFLAGS+export PYARROW_CMAKE_GENERATOR=Ninja++# Build pyarrow+pushd arrow/python++python setup.py build_ext \+ --build-type=${ARROW_BUILD_TYPE:-debug} \+ --with-parquet \+ --with-plasma \+ --inplace++popddiff --git a/ci/docker_install_conda.sh b/ci/docker_install_conda.shnew file mode 100755index 0000000000..81d5256e08--- /dev/null+++ b/ci/docker_install_conda.sh@@ -0,0 +1,29 @@+#!/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.++# Exit on any error+set -e++wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh+bash miniconda.sh -b -q -p ${CONDA_PREFIX:=/opt/conda}+rm miniconda.sh++ln -s ${CONDA_PREFIX}/etc/profile.d/conda.sh /etc/profile.d/conda.sh+echo ". ${CONDA_PREFIX}/etc/profile.d/conda.sh" >> ~/.bashrc+echo "conda activate base" >> ~/.bashrcdiff --git a/dev/docker-compose.yml b/dev/docker-compose.ymlindex c832cc3c61..5e5fdc2ef0 100644--- a/dev/docker-compose.yml+++ b/dev/docker-compose.yml@@ -17,44 +17,12 @@version: '3'services:- hdfs-namenode:- image: gelog/hadoop- shm_size: 2G- ports:- - "9000:9000"- - "50070:50070"- command: hdfs namenode- hostname: hdfs-namenode-- hdfs-datanode:- image: gelog/hadoop- command: hdfs datanode- ports:- # The host port is randomly assigned by Docker, to allow scaling- # to multiple DataNodes on the same host- - "50075"- links:- - hdfs-namenode:hdfs-namenode-impala:image: cpcloud86/impala:java8-1ports:- "21050"hostname: impala- hdfs_integration:- links:- - hdfs-namenode:hdfs-namenode- - hdfs-datanode:hdfs-datanode- environment:- - ARROW_HDFS_TEST_HOST=hdfs-namenode- - ARROW_HDFS_TEST_PORT=9000- - ARROW_HDFS_TEST_USER=root- build:- context: hdfs_integration- volumes:- - ../..:/apache-arrow-hiveserver2:links:- impaladiff --git a/dev/hdfs_integration/Dockerfile b/dev/hdfs_integration/Dockerfiledeleted file mode 100644index 56b8cb14b8..0000000000--- a/dev/hdfs_integration/Dockerfile+++ /dev/null@@ -1,78 +0,0 @@-#-# 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.-#--FROM gelog/hadoop--ENV CC=gcc \- CXX=g++--RUN apt-get update -y \- && apt-get install -y \- gcc \- g++ \- git \- wget \- pkg-config \- ninja-build--RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O conda.sh \- && /bin/bash conda.sh -b -p /opt/conda \- && rm conda.sh--ENV PATH="/opt/conda/bin:${PATH}"--RUN conda create -y -q -c conda-forge -n pyarrow-dev \- python=3.6 \- ipython \- matplotlib \- nomkl \- numpy \- six \- setuptools \- cython \- pandas \- pytest \- cmake \- flatbuffers \- rapidjson \- boost-cpp \- thrift-cpp \- snappy \- zlib \- gflags \- brotli \- jemalloc \- lz4-c \- zstd \- setuptools \- setuptools_scm \- && conda clean --all--# installing in the previous step boost=1.60 and boost-cpp=1.67 gets installed,-# cmake finds 1.60 and parquet fails to compile-# installing it in a separate step, boost=1.60 and boost-cpp=1.64 gets-# installed, cmake finds 1.64-# libhdfs3 needs to be pinned,see ARROW-1465 and ARROW-1445-RUN conda install -y -q -n pyarrow-dev -c conda-forge \- hdfs3 \- libhdfs3=2.2.31 \- && conda clean --all--ADD . /apache-arrow-WORKDIR /apache-arrow--CMD arrow/dev/hdfs_integration/hdfs_integration.shdiff --git a/dev/hdfs_integration/hdfs_integration.sh b/dev/hdfs_integration/hdfs_integration.shdeleted file mode 100755index b48d434732..0000000000--- a/dev/hdfs_integration/hdfs_integration.sh+++ /dev/null@@ -1,115 +0,0 @@-#!/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.-#--# Exit on any error-set -e--# cwd is mounted from host machine to-# and contains both arrow and parquet-cpp--# Activate conda environment-conda activate pyarrow-dev--# Arrow build variables-export ARROW_BUILD_TYPE=debug-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX-export PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIX-export ARROW_HOME=$CONDA_PREFIX-export PARQUET_HOME=$CONDA_PREFIX--# Hadoop variables-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HADOOP_HOME/lib/native/-export CLASSPATH=`$HADOOP_HOME/bin/hadoop classpath --glob`--# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issues-export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"-export PYARROW_CXXFLAGS=$CXXFLAGS-export PYARROW_CMAKE_GENERATOR=Ninja--_PWD=`pwd`-ARROW_CPP_BUILD_DIR=$_PWD/arrow/cpp/hdfs-integration-build-PARQUET_CPP_BUILD_DIR=$_PWD/parquet-cpp/hdfs-integration-build--# Run tests-export LIBHDFS3_CONF=$_PWD/arrow/dev/hdfs_integration/libhdfs3-client-config.xml--function cleanup {- rm -rf $ARROW_CPP_BUILD_DIR- rm -rf $PARQUET_CPP_BUILD_DIR- pushd $_PWD/arrow/python- git clean -fdx .- popd-}--trap cleanup EXIT--# Install arrow-cpp-mkdir -p $ARROW_CPP_BUILD_DIR-pushd $ARROW_CPP_BUILD_DIR--cmake -GNinja \- -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \- -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \- -DARROW_PYTHON=ON \- -DARROW_PLASMA=ON \- -DARROW_HDFS=ON \- -DARROW_BUILD_TESTS=ON \- -DCMAKE_CXX_FLAGS=$CXXFLAGS \- ..-ninja-ninja install--# Run C++ unit tests-debug/io-hdfs-test--popd--# Install parquet-cpp-mkdir -p $PARQUET_CPP_BUILD_DIR-pushd $PARQUET_CPP_BUILD_DIR--cmake -GNinja \- -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \- -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \- -DPARQUET_BUILD_BENCHMARKS=OFF \- -DPARQUET_BUILD_EXECUTABLES=OFF \- -DPARQUET_BUILD_TESTS=OFF \- -DCMAKE_CXX_FLAGS=$CXXFLAGS \- ..-ninja-ninja install--popd--# Install pyarrow-pushd arrow/python--# Clear the build directory so we are guaranteed a fresh set of extensions-rm -rf build/--python setup.py build_ext \- --build-type=$ARROW_BUILD_TYPE \- --with-parquet \- --with-plasma \- --inplace--# Python-python -m pytest -vv -r sxX -s pyarrow \- --only-parquet --only-hdfs--popddiff --git a/docker-compose.yml b/docker-compose.ymlnew file mode 100644index 0000000000..a96d8ba67f--- /dev/null+++ b/docker-compose.yml@@ -0,0 +1,121 @@+# 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.++version: '3.5'+services:++ # we can further improve the caching mechanism for go rust and js via+ # early adding the dependencies explicitly (cargo.toml etc) to prevent+ # reinstalling the dependencies on each modification++ ######################### Language Containers ###############################++ c_glib:+ image: arrow:c_glib+ build:+ context: .+ dockerfile: c_glib/Dockerfile++ cpp:+ image: arrow:cpp+ shm_size: 2G+ build:+ context: .+ dockerfile: cpp/Dockerfile++ go:+ image: arrow:go+ build:+ context: .+ dockerfile: go/Dockerfile++ java:+ image: arrow:java+ build:+ context: .+ dockerfile: java/Dockerfile++ js:+ image: arrow:js+ build:+ context: .+ dockerfile: js/Dockerfile++ python:+ image: arrow:python-${PYTHON_VERSION:-3.6}+ shm_size: 2G+ build:+ context: .+ dockerfile: python/Dockerfile+ args:+ PYTHON_VERSION: ${PYTHON_VERSION:-3.6}++ #TODO(kszucs): R++ rust:+ image: arrow:rust+ build:+ context: .+ dockerfile: rust/Dockerfile++ ######################### Integration Tests #################################++ # impala:+ # image: cpcloud86/impala:java8-1+ # ports:+ # - "21050"+ # hostname: impala++ hdfs-namenode:+ image: gelog/hadoop+ shm_size: 2G+ ports:+ - "9000:9000"+ - "50070:50070"+ command: hdfs namenode+ hostname: hdfs-namenode++ hdfs-datanode:+ image: gelog/hadoop+ command: hdfs datanode+ ports:+ # The host port is randomly assigned by Docker, to allow scaling+ # to multiple DataNodes on the same host+ - "50075"+ links:+ - hdfs-namenode:hdfs-namenode++ hdfs-integration:+ links:+ - hdfs-namenode:hdfs-namenode+ - hdfs-datanode:hdfs-datanode+ environment:+ - ARROW_HDFS_TEST_HOST=hdfs-namenode+ - ARROW_HDFS_TEST_PORT=9000+ - ARROW_HDFS_TEST_USER=root+ build:+ context: .+ dockerfile: integration/hdfs/Dockerfile++ # TODO(kszucs): dask-integration+ # TODO(kszucs): hive-integration+ # TODO(kszucs): spark-integration++ ######################### Documentation #####################################++ # TODO(kszucs): site+ # TODO(kszucs): apidocdiff --git a/integration/hdfs/Dockerfile b/integration/hdfs/Dockerfilenew file mode 100644index 0000000000..87d4e31489--- /dev/null+++ b/integration/hdfs/Dockerfile@@ -0,0 +1,74 @@+# 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.++FROM gelog/hadoop++RUN apt-get update && \+ apt-get install -y \+ gcc \+ g++ \+ git \+ wget \+ pkg-config \+ ninja-build++ENV CC=gcc \+ CXX=g++ \+ PATH=/opt/conda/bin:$PATH \+ CONDA_PREFIX=/opt/conda++# install dependencies+ARG PYTHON_VERSION=3.6+ADD ci/docker_install_conda.sh \+ ci/conda_env_cpp.yml \+ ci/conda_env_python.yml \+ /arrow/ci/+RUN arrow/ci/docker_install_conda.sh && \+ conda install -c conda-forge \+ --file arrow/ci/conda_env_cpp.yml \+ --file arrow/ci/conda_env_python.yml \+ python=$PYTHON_VERSION && \+ conda clean --all++# installing in the previous step boost=1.60 and boost-cpp=1.67 gets installed,+# cmake finds 1.60 and parquet fails to compile+# installing it in a separate step, boost=1.60 and boost-cpp=1.64 gets+# installed, cmake finds 1.64+# libhdfs3 needs to be pinned, see ARROW-1465 and ARROW-1445+RUN conda install -y -c conda-forge hdfs3 libhdfs3=2.2.31 && \+ conda clean --all++# build cpp with tests+ENV ARROW_HDFS=ON \+ ARROW_PYTHON=ON \+ ARROW_BUILD_TESTS=ON \+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${HADOOP_HOME}/lib/native"+ADD ci/docker_build_cpp.sh /arrow/ci/+ADD cpp /arrow/cpp+ADD format /arrow/format+ADD java/pom.xml /arrow/java/pom.xml+RUN arrow/ci/docker_build_cpp.sh++# build python+ADD ci/docker_build_python.sh /arrow/ci/+ADD python /arrow/python+RUN arrow/ci/docker_build_python.sh++# execute integration tests+ENV LIBHDFS3_CONF=/arrow/integration/hdfs/libhdfs3.xml+ADD integration /arrow/integration+CMD arrow/integration/hdfs/runtest.shdiff --git a/dev/hdfs_integration/libhdfs3-client-config.xml b/integration/hdfs/libhdfs3.xmlsimilarity index 100%rename from dev/hdfs_integration/libhdfs3-client-config.xmlrename to integration/hdfs/libhdfs3.xmldiff --git a/integration/hdfs/runtest.sh b/integration/hdfs/runtest.shnew file mode 100755index 0000000000..12fd85f37d--- /dev/null+++ b/integration/hdfs/runtest.sh@@ -0,0 +1,30 @@+#!/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++export CLASSPATH=`$HADOOP_HOME/bin/hadoop classpath --glob`++pushd arrow/cpp/build+ debug/io-hdfs-test+popd++pushd arrow/python+ python -m pytest -vv -r sxX -s --only-parquet --only-hdfs pyarrow+popddiff --git a/rust/Dockerfile b/rust/Dockerfilenew file mode 100644index 0000000000..6ad57c3e2a--- /dev/null+++ b/rust/Dockerfile@@ -0,0 +1,24 @@+# 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.++FROM rust++ADD rust /arrow/rust+WORKDIR /arrow/rust++RUN cargo build+CMD cargo test