Skip to content

Apache DataFusion SQL Query Engine

ARROW-453: [C++] Filesystem implementation for Amazon S3

Antoine Pitrouf17b55c7dea6
diff --git a/.travis.yml b/.travis.yml
index 6dd5489ab7..1261f3877a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -75,6 +75,7 @@ matrix:
- ARROW_TRAVIS_ORC=1
- ARROW_TRAVIS_PARQUET=1
- ARROW_TRAVIS_PLASMA=1
+ - ARROW_TRAVIS_S3=1
- ARROW_TRAVIS_USE_SYSTEM_JAVA=1
- ARROW_TRAVIS_USE_TOOLCHAIN=1
# TODO: This fails in re2 code
diff --git a/appveyor.yml b/appveyor.yml
index e84d78c362..a508b0ee26 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -52,8 +52,10 @@ environment:
CLCACHE_SERVER: 1
CLCACHE_COMPRESS: 1
CLCACHE_COMPRESSLEVEL: 6
+ ARROW_BUILD_FLIGHT: "OFF"
ARROW_BUILD_GANDIVA: "OFF"
ARROW_LLVM_VERSION: "7.0.*"
+ ARROW_S3: "OFF"
PYTHON: "3.6"
ARCH: "64"
@@ -67,6 +69,7 @@ environment:
- JOB: "Toolchain"
GENERATOR: Ninja
CONFIGURATION: "Release"
+ ARROW_S3: "ON"
ARROW_BUILD_FLIGHT: "ON"
ARROW_BUILD_GANDIVA: "ON"
# NOTE: Since ARROW-5403 we have disabled the static CRT build
diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.bat
index 0d2139aa37..90b0e24572 100644
--- a/ci/appveyor-cpp-setup.bat
+++ b/ci/appveyor-cpp-setup.bat
@@ -58,3 +58,8 @@ if "%USE_CLCACHE%" == "true" (
clcache -s
powershell.exe -Command "Start-Process clcache-server"
)
+
+if "%ARROW_S3%" == "ON" (
+ @rem Download Minio somewhere on PATH, for unit tests
+ appveyor DownloadFile https://dl.min.io/server/minio/release/windows-amd64/minio.exe -FileName C:\Windows\Minio.exe || exit /B
+)
diff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.yml
index fd21ed8d3f..2aff2cb72f 100644
--- a/ci/conda_env_cpp.yml
+++ b/ci/conda_env_cpp.yml
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
+aws-sdk-cpp
benchmark=1.4.1
boost-cpp>=1.68.0
brotli
diff --git a/ci/cpp-msvc-build-main.bat b/ci/cpp-msvc-build-main.bat
index 8755a52007..62f6b5dfd6 100644
--- a/ci/cpp-msvc-build-main.bat
+++ b/ci/cpp-msvc-build-main.bat
@@ -71,6 +71,7 @@ cmake -G "%GENERATOR%" %CMAKE_ARGS% ^
-DCMAKE_CXX_FLAGS_RELEASE="/MD %CMAKE_CXX_FLAGS_RELEASE%" ^
-DARROW_FLIGHT=%ARROW_BUILD_FLIGHT% ^
-DARROW_GANDIVA=%ARROW_BUILD_GANDIVA% ^
+ -DARROW_S3=%ARROW_S3% ^
-DARROW_PARQUET=ON ^
-DPARQUET_BUILD_EXECUTABLES=ON ^
-DARROW_PYTHON=ON ^
diff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.sh
index 5ee5eb79be..1c5b6e652e 100755
--- a/ci/travis_before_script_cpp.sh
+++ b/ci/travis_before_script_cpp.sh
@@ -120,6 +120,10 @@ if [ "$ARROW_TRAVIS_PYTHON" == "1" ]; then
fi
fi
+if [ "$ARROW_TRAVIS_S3" == "1" ]; then
+ CMAKE_COMMON_FLAGS="$CMAKE_COMMON_FLAGS -DARROW_S3=ON"
+fi
+
if [ "$ARROW_TRAVIS_PARQUET" == "1" ]; then
CMAKE_COMMON_FLAGS="$CMAKE_COMMON_FLAGS \
-DARROW_PARQUET=ON \
diff --git a/ci/travis_install_linux.sh b/ci/travis_install_linux.sh
index 441d50d9b1..a5283139a8 100755
--- a/ci/travis_install_linux.sh
+++ b/ci/travis_install_linux.sh
@@ -42,6 +42,14 @@ if [ "$ARROW_TRAVIS_GANDIVA" == "1" ]; then
sudo apt-get install -y -qq llvm-$ARROW_LLVM_MAJOR_VERSION-dev
fi
+if [ "$ARROW_TRAVIS_S3" == "1" ]; then
+ # Download the Minio S3 server into PATH
+ S3FS_DIR=~/.local/bin/
+ mkdir -p $S3FS_DIR
+ wget --directory-prefix $S3FS_DIR https://dl.min.io/server/minio/release/linux-amd64/minio
+ chmod +x $S3FS_DIR/minio
+fi
+
if [ "$ARROW_TRAVIS_USE_SYSTEM" == "1" ]; then
if [ "$DISTRO_CODENAME" == "xenial" ]; then
# TODO(ARROW-4761): Install libzstd-dev once we support zstd<1