Uh oh!
There was an error while loading. Please reload this page.
PHOENIX-6475 Use org.openlabtesting.protobuf:protoc when building on Linux ARM64 - #1238
PHOENIX-6475 Use org.openlabtesting.protobuf:protoc when building on Linux ARM64#1238martin-g wants to merge 1 commit into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
| <protobuf-java.version>2.5.0</protobuf-java.version> | ||
| <!-- com.google repo will be used except on Aarch64 platform. --> | ||
| <protobuf.group>com.google.protobuf</protobuf.group> | ||
| <protobuf-java.version>2.6.1</protobuf-java.version> |
There was a problem hiding this comment.
I've updated to 2.6.1 to keep the x86_64 and aarch64 versions in sync.
There was a problem hiding this comment.
Reverted to 2.5.0 for both x86_64 and aarch64!
The OpenLabTesting guys released 2.5.0.2 which brings statically linked Protoc.
Here is its build script: https://gist.github.com/liusheng/64aee1b27de037f8b9ccf1873b82c413
stoty
left a comment
There was a problem hiding this comment.
This patch changes too much, and we specifically want to use the exact same version (2.5.0) that HBase and Hadoop does.
Please use https://repo1.maven.org/maven2/org/openlabtesting/protobuf/protoc/2.5.0/ for the aarch64 protoc binary,
and only override only the groupId used by the protobuf maven plugin from the profile.
Uh oh!
There was an error while loading. Please reload this page.
stoty
commented
May 25, 2021
💔 -1 overall
This message was automatically generated. |
I've tried it before choosing os72 but it didn't work because:
i.e. the executable is dynamically linked and nothing provides I will contact the OpenLab Testing guys and see whether they can release 2.5.0.1 with statically linked executable! |
Thanks for the explanation and your work on it. I was suggesting the Openlabtesting version because HBase use(d) that one, and it had 2.5.0 available for arm. However, if that one has dependency problems, then of course it is not useful for us. I can see two solutions:
If you choose 2.) please also add a comment to the profile that we're using 2.6.x here because there is no public 2.5.0 artifact for arm available. |
…Linux ARM64 Stock Protobuf-Java adds aarch64 protoc binary in 3.5.0. To be able to build on Linux ARM64 with Protobuf 2.x we should use https://github.com/theopenlab/protobuf
stoty
left a comment
There was a problem hiding this comment.
+1 I lack the hardware to test this, but LGTM
@stoty about hardware to test it: few other Hadoop related projects use Linux ARM64 Jenkins agents. See https://ci-hadoop.apache.org/computer/ and look for |
stoty
commented
May 26, 2021
In theory it'd be nice to test on ARM, but it's not enough of a priority at the moment to put in the work to set up the tests and maintain them. |
martin-g
commented
May 26, 2021
I could offer my help doing the extra work and maintenance! |
stoty
commented
May 26, 2021
💔 -1 overall
This message was automatically generated. |
stoty
commented
May 26, 2021
💔 -1 overall
This message was automatically generated. |
Stock Protobuf-Java adds aarch64 protoc binary in 3.5.0.
To be able to build on Linux ARM64 with Protobuf 2.x we should use https://github.com/os72/protoc-jar:2.6.1+