[feature](cloud) Add Alibaba Cloud OSS C++ SDK stack - Part 2#65794
Open
nsivarajan wants to merge 2 commits into
Open
[feature](cloud) Add Alibaba Cloud OSS C++ SDK stack - Part 2#65794nsivarajan wants to merge 2 commits into
nsivarajan wants to merge 2 commits into
Conversation
…pe credential support
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
4 tasks
Contributor
Author
|
run buildall |
16 tasks
nsivarajan
force-pushed
the
native-oss-sdk-pr2
branch
from
July 19, 2026 16:50
126777a to
7205542
Compare
Contributor
FE UT Coverage ReportIncrement line coverage `` 🎉 |
nsivarajan
force-pushed
the
native-oss-sdk-pr2
branch
from
July 19, 2026 18:16
7205542 to
d945d2a
Compare
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage `` 🎉 |
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
nsivarajan
force-pushed
the
native-oss-sdk-pr2
branch
from
July 20, 2026 04:48
d945d2a to
c3ad4f0
Compare
Contributor
Author
|
run buildall |
3 tasks
Contributor
Author
|
run cloud_p0 |
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
nsivarajan
marked this pull request as ready for review
July 20, 2026 14:38
nsivarajan
requested review from
CalvinKirs,
gavinchou,
liaoxin01,
luwei16 and
morningman
as code owners
July 20, 2026 14:38
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #65793
Related PR: Related PR: part 2 of 4 — PR-1 #61329 | PR-3 #xxx | PR-4 #xxx
Problem Summary:
Doris BE currently accesses OSS through the AWS S3-compatible SDK path. This works for basic AK/SK operations but cannot use ECS instance profile credentials, STS AssumeRole, RRSA, or environment variable providers — all of which require the native Alibaba Cloud OSS C++ SDK.
PR-3 (BE native OSS filesystem) requires the Alibaba Cloud OSS C++ SDK and its dependency chain. This PR adds all 7 libraries to the Doris thirdparty build system, following the same pattern as the existing Azure SDK integration.
The entire OSS SDK stack is opt-out (
DISABLE_BUILD_OSS=ON) and defaults to enabled, mirroring theDISABLE_BUILD_AZUREpattern already in the codebase.Libraries added (build order):
aprapr-utiltea-cpp(darabonba_core)credentials-cppopenapi-v2sts-20150401alibabacloud-oss-cpp-sdkA patch (
tea-cpp-doris-oss-fix.patch) is included to add CA cert support (CURLOPT_CAINFO) and CURL async error propagation to the tea-cpp library.Changes
thirdparty/vars.sh— download URLs, checksums, source names for all 7 libsthirdparty/download-thirdparty.sh— tea-cpp patch applicationthirdparty/build-thirdparty.sh—build_apr(),build_apr_util(),build_tea_cpp(),build_credentials_cpp(),build_openapi_v2(),build_sts_20150401(),build_oss_cpp(); build order respects dependency chainthirdparty/patches/tea-cpp-doris-oss-fix.patch(new) — CA cert + CURL fixbe/cmake/thirdparty.cmake— OSS libs added underif(NOT BUILD_OSS STREQUAL "OFF")cloud/cmake/thirdparty.cmake— same, for cloud recyclerbe/CMakeLists.txt—option(BUILD_OSS ... OFF)+-DUSE_OSSdefinitioncloud/CMakeLists.txt— samebuild.sh—BUILD_OSS='ON'default,DISABLE_BUILD_OSShandlerBuild
Default — builds OSS SDK stack
./build.sh --be --cloud
Opt-out — skip OSS SDK entirely
DISABLE_BUILD_OSS=ON ./build.sh --be --cloud
Thirdparty only
cd thirdparty && ./build-thirdparty.sh
Release note
[build] Add Alibaba Cloud OSS C++ SDK and dependency stack (apr, apr-util,tea-cpp, credentials-cpp, openapi-v2, sts-20150401) as optional thirdparty libraries. Disabled via
DISABLE_BUILD_OSS=ON. No effect on existing builds when disabled.None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)