-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19605. Upgrade Protobuf 3.25.5 for docker images #7780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
(!) A patch to the testing environment has been detected. |
make install && | ||
cmake -S . -B build -Dprotobuf_BUILD_TESTS=OFF && | ||
cmake --build build --parallel $(nproc) && | ||
cmake --install build --prefix /opt/protobuf && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protocolbuffers/protobuf#10132 (since protobuf 3.22.0) removes autotools support, the supported toolchains are bazel and cmake.
@@ -10,7 +10,7 @@ | |||
"overrides": [ | |||
{ | |||
"name": "protobuf", | |||
"version": "3.21.12" | |||
"version": "3.25.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this works, but I don't have Windows env to verify this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for PR @pan3793. Please let me know once you're done with all the changes and I can verify it on Windows.
💔 -1 overall
This message was automatically generated. |
-o /opt/protobuf.tar.gz && | ||
tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src && | ||
mkdir -p /opt/abseil-cpp-src && | ||
curl -L -s -S \ | ||
https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.tar.gz \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recent protobuf versions have hard dependency on abseil, the version is defined at
https://github.com/protocolbuffers/protobuf/blob/v3.25.5/protobuf_deps.bzl#L46
(!) A patch to the testing environment has been detected. |
$ cd protobuf-3.25.5 | ||
$ cmake -S . -B build -Dprotobuf_BUILD_TESTS=OFF | ||
$ cmake --build build --parallel $(nproc) | ||
$ cmake --install build | ||
$ protoc --version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it returns 25.5 (seems protobuf changed version policy recently)
chengpan@a1847ca27697:~/hadoop$ protoc --version
libprotoc 25.5
💔 -1 overall
This message was automatically generated. |
CentOS 7 CI failure caused by GLIBC version too low, which is already tracked by YARN-11794 and HADOOP-19489
|
hadoop-hdfs-native-client building fails, further fix is required. convert to draft now, will investigate later |
Description of PR
HADOOP-19289 upgraded protobuf-java 3.25.5, we should use same version for protobuf installed in docker images.
How was this patch tested?
Changes are covered by CI, also manually tested in local
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?