From 14e57f1fafdd095568f7d52b9b169aa7d7bad751 Mon Sep 17 00:00:00 2001 From: zhli1142015 Date: Fri, 22 Nov 2024 16:28:52 +0800 Subject: [PATCH] feat(ABFS): Add dep for ABFS Auth support --- CMakeLists.txt | 1 + scripts/setup-adapters.sh | 5 +++++ scripts/velox_env_linux.yml | 1 + scripts/velox_env_mac.yml | 1 + 4 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ddbbeb76e382..a106a0c2ad5db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,7 @@ if(VELOX_ENABLE_ABFS) endif() # files-datalake is built on blobs find_package(azure-storage-files-datalake-cpp CONFIG REQUIRED) + find_package(azure-identity-cpp CONFIG REQUIRED) add_definitions(-DVELOX_ENABLE_ABFS) endif() diff --git a/scripts/setup-adapters.sh b/scripts/setup-adapters.sh index b2d146cc614de..8ecb072899012 100755 --- a/scripts/setup-adapters.sh +++ b/scripts/setup-adapters.sh @@ -127,6 +127,11 @@ function install_azure-storage-sdk-cpp { cd $azure_core_dir cmake_install -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=OFF ) + # install azure-identity + ( + cd sdk/identity/azure-identity + cmake_install -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=OFF + ) # install azure-storage-common ( cd sdk/storage/azure-storage-common diff --git a/scripts/velox_env_linux.yml b/scripts/velox_env_linux.yml index fc0b4cf0c40fe..59ceeb0adb456 100644 --- a/scripts/velox_env_linux.yml +++ b/scripts/velox_env_linux.yml @@ -39,6 +39,7 @@ dependencies: - sysroot_linux-64=2.17 # dependencies - aws-sdk-cpp + - azure-identity-cpp - azure-storage-blobs-cpp - boost-cpp - bzip2 diff --git a/scripts/velox_env_mac.yml b/scripts/velox_env_mac.yml index a999f18d0d6b0..776247a41f08e 100644 --- a/scripts/velox_env_mac.yml +++ b/scripts/velox_env_mac.yml @@ -38,6 +38,7 @@ dependencies: - sysroot_linux-64=2.17 # dependencies - aws-sdk-cpp + - azure-identity-cpp - azure-storage-blobs-cpp - boost-cpp - bzip2