Skip to content

Apache DataFusion SQL Query Engine

ARROW-3368: [Integration/CI/Python] Add dask integration test to docker-compose setup

Krisztián Szűcsd49bef8f6832
diff --git a/ci/docker_build_python.sh b/ci/docker_build_python.sh
index 8ba8a1d66f..23d852bcb8 100755
--- a/ci/docker_build_python.sh
+++ b/ci/docker_build_python.sh
@@ -26,12 +26,17 @@ export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
export PYARROW_CXXFLAGS=$CXXFLAGS
export PYARROW_CMAKE_GENERATOR=Ninja
export PYARROW_BUILD_TYPE=${PYARROW_BUILD_TYPE:-debug}
+
+# Feature flags
+export PYARROW_WITH_ORC=${PYARROW_WITH_ORC:-1}
export PYARROW_WITH_PARQUET=${PYARROW_WITH_PARQUET:-1}
export PYARROW_WITH_PLASMA=${PYARROW_WITH_PLASMA:-1}
# Build pyarrow
pushd ${source_dir}
-python setup.py build_ext --build-temp=${build_dir} install
+python setup.py build --build-temp=${build_dir} \
+ install --single-version-externally-managed \
+ --record=/build/python/record.txt
popd
diff --git a/dev/dask_integration.sh b/dev/dask_integration.sh
deleted file mode 100755
index d344328b6a..0000000000
--- a/dev/dask_integration.sh
+++ /dev/null
@@ -1,21 +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.
-#
-
-# Pass the service name to run_docker_compose.sh
-# Which validates environment and runs the service
-exec "$(dirname ${BASH_SOURCE})"/run_docker_compose.sh dask_integration
diff --git a/dev/dask_integration/Dockerfile b/dev/dask_integration/Dockerfile
deleted file mode 100644
index f0c1f03f6f..0000000000
--- a/dev/dask_integration/Dockerfile
+++ /dev/null
@@ -1,22 +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 arrow_integration_xenial_base
-
-ADD . /apache-arrow
-WORKDIR /apache-arrow
-
-CMD arrow/dev/dask_integration/dask_integration.sh
diff --git a/dev/dask_integration/dask_integration.sh b/dev/dask_integration/dask_integration.sh
deleted file mode 100755
index f4999c0ae4..0000000000
--- a/dev/dask_integration/dask_integration.sh
+++ /dev/null
@@ -1,98 +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.
-#
-
-# Set up environment and working directory
-cd /apache-arrow
-
-conda activate pyarrow-dev
-
-# install pytables from defaults for now
-conda install -y pytables
-
-pip install -q git+https://github.com/dask/partd --upgrade --no-deps
-pip install -q git+https://github.com/dask/zict --upgrade --no-deps
-pip install -q git+https://github.com/dask/distributed --upgrade --no-deps
-pip install -q git+https://github.com/mrocklin/sparse --upgrade --no-deps
-pip install -q git+https://github.com/dask/s3fs --upgrade --no-deps
-
-conda install -y -q -c conda-forge numba cython \
- bcolz \
- blosc \
- bokeh \
- boto3 \
- chest \
- cloudpickle \
- coverage \
- cytoolz \
- distributed \
- graphviz \
- h5py \
- partd \
- psutil \
- "pytest<=3.1.1" \
- scikit-image \
- scikit-learn \
- sqlalchemy \
- toolz
-
-pip install -q git+https://github.com/dask/fastparquet
-
-pip install -q \
- cachey \
- graphviz \
- moto \
- pyarrow \
- --upgrade --no-deps
-
-pip install -q \
- cityhash \
- flake8 \
- mmh3 \
- pandas_datareader \
- pytest-xdist \
- xxhash \
- pycodestyle
-
-export ARROW_BUILD_TYPE=release
-export ARROW_HOME=$(pwd)/dist
-export PARQUET_HOME=$(pwd)/dist
-CONDA_BASE=/home/ubuntu/miniconda
-export LD_LIBRARY_PATH=$(pwd)/dist/lib:${CONDA_BASE}/lib:${LD_LIBRARY_PATH}
-
-# Allow for --user Python installation inside Docker
-export HOME=$(pwd)
-
-# Clean up and get the dask master branch from github
-rm -rf dask .local
-export GIT_COMMITTER_NAME="Nobody"
-export GIT_COMMITTER_EMAIL="[email protected]"
-git clone https://github.com/dask/dask.git
-pushd dask
-pip install --user -e .[complete]
-# Verify integrity of the installed dask dataframe code
-py.test dask/dataframe/tests/test_dataframe.py
-popd
-
-# Run the integration test
-pushd arrow/python/testing
-py.test dask_tests
-popd
-
-pushd dask/dask/dataframe/io
-py.test tests/test_parquet.py
-popd
diff --git a/dev/tasks/tests.yml b/dev/tasks/tests.yml
index d9493b606e..a0c7676ba7 100644
--- a/dev/tasks/tests.yml
+++ b/dev/tasks/tests.yml
@@ -36,12 +36,14 @@ groups:
- docker-lint
- docker-iwyu
- docker-clang-format
- - docker-hdfs-integration
- docker-pandas-master
+ - docker-hdfs-integration
+ - docker-dask-integration
integration:
- - docker-hdfs-integration
- docker-pandas-master
+ - docker-dask-integration
+ - docker-hdfs-integration
cpp-python:
- docker-cpp
@@ -239,11 +241,27 @@ tasks:
############################## Integration tests ############################
+ docker-dask-integration:
+ platform: linux
+ template: docker-tests/travis.linux.yml
+ params:
+ environment:
+ PYTHON_VERSION: 3.6
+ commands:
+ - docker-compose build cpp
+ - docker-compose build python
+ - docker-compose build dask-integration
+ - docker-compose run dask-integration
+
docker-hdfs-integration:
platform: linux
template: docker-tests/travis.linux.yml
params:
+ environment:
+ PYTHON_VERSION: 3.6
commands:
+ - docker-compose build cpp
+ - docker-compose build python
- docker-compose build hdfs-integration
- docker-compose run hdfs-integration
diff --git a/docker-compose.yml b/docker-compose.yml
index d3a7990d5c..0a01a7cbe9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -222,6 +222,20 @@ services:
# - "21050"
# hostname: impala
+ pandas-master:
+ # Usage:
+ # export PYTHON_VERSION=3.6
+ # docker-compose build cpp
+ # docker-compose build python
+ # docker-compose build --no-cache pandas-master
+ # docker-compose run pandas-master
+ image: arrow:pandas-master
+ build:
+ context: .
+ dockerfile: integration/pandas/Dockerfile
+ shm_size: 2G
+ volumes: *ubuntu-volumes
+
hdfs-namenode:
image: gelog/hadoop
shm_size: 2G
@@ -231,7 +245,7 @@ services:
command: hdfs namenode
hostname: hdfs-namenode
- hdfs-datanode:
+ hdfs-datanode-1:
image: gelog/hadoop
command: hdfs datanode
ports:
@@ -241,6 +255,17 @@ services:
links:
- hdfs-namenode:hdfs-namenode
+ hdfs-datanode-2:
+ 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
+
+ # TODO(kszucs): pass hdfs client version explicitly as a build argument
hdfs-integration:
# Usage:
# export PYTHON_VERSION=3.6
@@ -250,7 +275,8 @@ services:
# docker-compose run hdfs-integration
links:
- hdfs-namenode:hdfs-namenode
- - hdfs-datanode:hdfs-datanode
+ - hdfs-datanode-1:hdfs-datanode-1
+ - hdfs-datanode-2:hdfs-datanode-2
environment:
- ARROW_HDFS_TEST_HOST=hdfs-namenode
- ARROW_HDFS_TEST_PORT=9000
@@ -258,22 +284,20 @@ services:
build:
context: .
dockerfile: integration/hdfs/Dockerfile
+ volumes: *ubuntu-volumes
- pandas-master:
+ # TODO(kszucs): pass dask version explicitly as a build argument
+ dask-integration:
# Usage:
# export PYTHON_VERSION=3.6
# docker-compose build cpp
# docker-compose build python
- # docker-compose build --no-cache pandas-master
- # docker-compose run pandas-master
- image: arrow:pandas-master
+ # docker-compose build dask-integration
+ # docker-compose run dask-integration
build:
context: .
- dockerfile: integration/pandas/Dockerfile
- shm_size: 2G
+ dockerfile: integration/dask/Dockerfile
volumes: *ubuntu-volumes
-
- # TODO(kszucs): dask-integration
# TODO(kszucs): hive-integration
# TODO(kszucs): spark-integration
diff --git a/integration/dask/Dockerfile b/integration/dask/Dockerfile
new file mode 100644
index 0000000000..5e054c51c5
--- /dev/null
+++ b/integration/dask/Dockerfile
@@ -0,0 +1,31 @@
+# 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 arrow:python-3.6
+
+# setup /etc/localtime
+RUN DEBIAN_FRONTEND=noninteractive \
+ apt-get install -y -q tzdata
+
+# install dask release from conda
+RUN conda install -c conda-forge dask pytest=3 && \
+ conda clean --all
+
+# build and test
+CMD arrow/ci/docker_build_cpp.sh && \
+ arrow/ci/docker_build_python.sh && \
+ arrow/integration/dask/runtest.sh
diff --git a/integration/dask/runtest.sh b/integration/dask/runtest.sh
new file mode 100755
index 0000000000..9a37e0a67b
--- /dev/null
+++ b/integration/dask/runtest.sh
@@ -0,0 +1,34 @@
+#!/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
+
+# check that optional pyarrow modules are available
+# because pytest would just skip the dask tests
+python -c "import pyarrow.orc"
+python -c "import pyarrow.parquet"
+
+# TODO(kszucs): the following tests are also uses pyarrow
+# pytest -sv --pyargs dask.bytes.tests.test_s3
+# pytest -sv --pyargs dask.bytes.tests.test_hdfs
+# pytest -sv --pyargs dask.bytes.tests.test_local
+
+pytest -v --pyargs dask.dataframe.io.tests.test_orc
+pytest -v --pyargs dask.dataframe.io.tests.test_parquet
+pytest -v --pyargs dask.dataframe.tests.test_dataframe
diff --git a/integration/hdfs/Dockerfile b/integration/hdfs/Dockerfile
index a1d3e4eb0a..4fc266f267 100644
--- a/integration/hdfs/Dockerfile
+++ b/integration/hdfs/Dockerfile
@@ -15,63 +15,35 @@
# specific language governing permissions and limitations
# under the License.
-FROM gelog/hadoop
+FROM arrow:python-3.6
-RUN apt-get update && \
- apt-get install -y \
- autoconf \
- automake \
- make \
- 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
+# installing libhdfs3, it 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
+# installing libhdfs (JNI)
+ARG HADOOP_VERSION=2.6.5
+ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \
+ HADOOP_HOME=/usr/local/hadoop \
+ HADOOP_OPTS=-Djava.library.path=/usr/local/hadoop/lib/native \
+ PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
+RUN apt-get update -y && \
+ apt-get install -y openjdk-8-jdk && \
+ wget -q -O hadoop-$HADOOP_VERSION.tar.gz "https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=hadoop/common/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz" && \
+ tar -zxf /hadoop-$HADOOP_VERSION.tar.gz && \
+ rm /hadoop-$HADOOP_VERSION.tar.gz && \
+ mv hadoop-$HADOOP_VERSION /usr/local/hadoop
+ADD integration/hdfs/hdfs-site.xml $HADOOP_HOME/etc/hadoop/
+
# build cpp with tests
-ENV ARROW_HDFS=ON \
+ENV CC=gcc \
+ CXX=g++ \
+ ARROW_ORC=ON \
+ 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
+ ARROW_BUILD_TESTS=ON
-# execute integration tests
-ENV LIBHDFS3_CONF=/arrow/integration/hdfs/libhdfs3.xml
-ADD integration /arrow/integration
-CMD arrow/integration/hdfs/runtest.sh
+# build and test
+CMD arrow/ci/docker_build_cpp.sh && \
+ arrow/ci/docker_build_python.sh && \
+ arrow/integration/hdfs/runtest.sh
diff --git a/integration/hdfs/hdfs-site.xml b/integration/hdfs/hdfs-site.xml
new file mode 100644
index 0000000000..a80b945a66
--- /dev/null
+++ b/integration/hdfs/hdfs-site.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+ Licensed 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. See accompanying LICENSE file.
+-->
+
+<!-- Put site-specific property overrides in this file. -->
+
+<configuration>
+ <property>
+ <name>dfs.replication</name>
+ <value>2</value>
+ </property>
+ <property>
+ <name>dfs.datanode.data.dir</name>
+ <value>file:///data/dfs/data</value>
+ </property>
+ <property>
+ <name>dfs.namenode.name.dir</name>
+ <value>file:///data/dfs/name</value>
+ </property>
+ <property>
+ <name>dfs.namenode.checkpoint.dir</name>
+ <value>file:///data/dfs/namesecondary </value>
+ </property>
+ <property>
+ <name>dfs.namenode.datanode.registration.ip-hostname-check</name>
+ <value>false</value>
+ </property>
+ <property>
+ <name>dfs.default.replica</name>
+ <value>1</value>
+ </property>
+</configuration>
diff --git a/integration/hdfs/libhdfs3.xml b/integration/hdfs/libhdfs3.xml
deleted file mode 100644
index f929929b38..0000000000
--- a/integration/hdfs/libhdfs3.xml
+++ /dev/null
@@ -1,332 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-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 Apache HAWQ (incubating) -->
-
-<configuration>
-
-<!-- KDC
- <property>
- <name>hadoop.security.authentication</name>
- <value>kerberos</value>
- </property>
-KDC -->
-
-<!-- HA
- <property>
- <name>dfs.nameservices</name>
- <value>phdcluster</value>
- </property>
-
- <property>
- <name>dfs.ha.namenodes.phdcluster</name>
- <value>nn1,nn2</value>
- </property>6
-
- <property>
- <name>dfs.namenode.rpc-address.phdcluster.nn1</name>
- <value>mdw:9000</value>
- </property>
-
- <property>
- <name>dfs.namenode.rpc-address.phdcluster.nn2</name>
- <value>smdw:9000</value>
- </property>
-
- <property>
- <name>dfs.namenode.http-address.phdcluster.nn1</name>
- <value>mdw:50070</value>
- </property>
-
- <property>
- <name>dfs.namenode.http-address.phdcluster.nn2</name>
- <value>smdw:50070</value>
- </property>
-
-HA -->
-
- <!-- RPC client configuration -->
- <property>
- <name>rpc.client.timeout</name>
- <value>3600000</value>
- <description>
- timeout interval of a RPC invocation in millisecond. default is 3600000.
- </description>
- </property>
- <property>
- <name>rpc.client.connect.tcpnodelay</name>
- <value>true</value>
- <description>
- whether set socket TCP_NODELAY to true when connect to RPC server. default is true.
- </description>
- </property>
-
- <property>
- <name>rpc.client.max.idle</name>
- <value>10000</value>
- <description>
- the max idle time of a RPC connection in millisecond. default is 10000.
- </description>
- </property>
-
- <property>
- <name>rpc.client.ping.interval</name>
- <value>10000</value>
- <description>
- the interval which the RPC client send a heart beat to server. 0 means disable, default is 10000.
- </description>
- </property>
-
- <property>
- <name>rpc.client.connect.timeout</name>
- <value>600000</value>
- <description>
- the timeout interval in millisecond when the RPC client is trying to setup the connection. default is 600000.
- </description>
- </property>
-
- <property>
- <name>rpc.client.connect.retry</name>
- <value>10</value>
- <description>
- the max retry times if the RPC client fail to setup the connection to server. default is 10.
- </description>
- </property>
-
- <property>
- <name>rpc.client.read.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the RPC client is trying to read from server. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>rpc.client.write.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the RPC client is trying to write to server. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>rpc.client.socket.linger.timeout</name>
- <value>-1</value>
- <description>
- set value to socket SO_LINGER when connect to RPC server. -1 means default OS value. default is -1.
- </description>
- </property>
-
- <!-- dfs client configuration -->
- <property>
- <name>dfs.client.read.shortcircuit</name>
- <value>false</value>
- <description>
- whether reading block file bypass datanode if the block and the client are on the same node. default is true.
- </description>
- </property>
-
- <property>
- <name>dfs.default.replica</name>
- <value>1</value>
- <description>
- the default number of replica. default is 3.
- </description>
- </property>
-
- <property>
- <name>dfs.prefetchsize</name>
- <value>10</value>
- <description>
- the default number of blocks which information will be prefetched. default is 10.
- </description>
- </property>
-
- <property>
- <name>dfs.client.failover.max.attempts</name>
- <value>15</value>
- <description>
- if multiply namenodes are configured, it is the max retry times when the dfs client try to issue a RPC call. default is 15.
- </description>
- </property>
-
- <property>
- <name>dfs.default.blocksize</name>
- <value>134217728</value>
- <description>
- default block size. default is 134217728.
- </description>
- </property>
-
- <property>
- <name>dfs.client.log.severity</name>
- <value>INFO</value>
- <description>
- the minimal log severity level, valid values include FATAL, ERROR, INFO, DEBUG1, DEBUG2, DEBUG3. default is INFO.
- </description>
- </property>
-
- <!-- input client configuration -->
- <property>
- <name>input.connect.timeout</name>
- <value>600000</value>
- <description>
- the timeout interval in millisecond when the input stream is trying to setup the connection to datanode. default is 600000.
- </description>
- </property>
-
- <property>
- <name>input.read.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the input stream is trying to read from datanode. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>input.write.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the input stream is trying to write to datanode. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>input.localread.default.buffersize</name>
- <value>2097152</value>
- <description>
- number of bytes of the buffer which is used to hold the data from block file and verify checksum.
- it is only used when "dfs.client.read.shortcircuit" is set to true. default is 1048576.
- </description>
- </property>
-
- <property>
- <name>input.localread.blockinfo.cachesize</name>
- <value>1000</value>
- <description>
- the size of block file path information cache. default is 1000.
- </description>
- </property>
-
- <property>
- <name>input.read.getblockinfo.retry</name>
- <value>3</value>
- <description>
- the max retry times when the client fail to get block information from namenode. default is 3.
- </description>
- </property>
-
- <!-- output client configuration -->
- <property>
- <name>output.replace-datanode-on-failure</name>
- <value>false</value>
- <description>
- whether the client add new datanode into pipeline if the number of nodes in pipeline is less the specified number of replicas. default is false.
- </description>
- </property>
-
- <property>
- <name>output.default.chunksize</name>
- <value>512</value>
- <description>
- the number of bytes of a chunk in pipeline. default is 512.
- </description>
- </property>
-
- <property>
- <name>output.default.packetsize</name>
- <value>65536</value>
- <description>
- the number of bytes of a packet in pipeline. default is 65536.
- </description>
- </property>
-
- <property>
- <name>output.default.write.retry</name>
- <value>10</value>
- <description>
- the max retry times when the client fail to setup the pipeline. default is 10.
- </description>
- </property>
-
- <property>
- <name>output.connect.timeout</name>
- <value>600000</value>
- <description>
- the timeout interval in millisecond when the output stream is trying to setup the connection to datanode. default is 600000.
- </description>
- </property>
-
- <property>
- <name>output.read.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the output stream is trying to read from datanode. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>output.write.timeout</name>
- <value>3600000</value>
- <description>
- the timeout interval in millisecond when the output stream is trying to write to datanode. default is 3600000.
- </description>
- </property>
-
- <property>
- <name>output.packetpool.size</name>
- <value>1024</value>
- <description>
- the max number of packets in a file's packet pool. default is 1024.
- </description>
- </property>
-
- <property>
- <name>output.close.timeout</name>
- <value>900000</value>
- <description>
- the timeout interval in millisecond when close an output stream. default is 900000.
- </description>
- </property>
-
- <property>
- <name>dfs.domain.socket.path</name>
- <value>/var/lib/hadoop-hdfs/dn_socket</value>
- <description>
- Optional. This is a path to a UNIX domain socket that will be used for
- communication between the DataNode and local HDFS clients.
- If the string "_PORT" is present in this path, it will be replaced by the
- TCP port of the DataNode.
- </description>
- </property>
-
- <property>
- <name>dfs.client.use.legacy.blockreader.local</name>
- <value>false</value>
- <description>
- Legacy short-circuit reader implementation based on HDFS-2246 is used
- if this configuration parameter is true.
- This is for the platforms other than Linux
- where the new implementation based on HDFS-347 is not available.
- </description>
- </property>
-
-</configuration>
diff --git a/integration/hdfs/runtest.sh b/integration/hdfs/runtest.sh
index a90eb93645..2f090c8a81 100755
--- a/integration/hdfs/runtest.sh
+++ b/integration/hdfs/runtest.sh
@@ -20,9 +20,17 @@
set -e
export CLASSPATH=`$HADOOP_HOME/bin/hadoop classpath --glob`
+export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
+export LIBHDFS3_CONF=$HADOOP_CONF_DIR/hdfs-site.xml
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HADOOP_HOME/lib/native/
+# execute cpp tests
pushd /build/cpp
- debug/io-hdfs-test
+ debug/arrow-io-hdfs-test
popd
-pytest -v --pyargs pyarrow
+# cannot use --pyargs with custom arguments like --hdfs or --only-hdfs, because
+# pytest ignores them, see https://github.com/pytest-dev/pytest/issues/3517
+export PYARROW_TEST_ONLY_HDFS=ON
+
+pytest -v --pyargs pyarrow.tests.test_hdfs