Details
Description
We are building the HBase 3.0.0-SNAPSHOT on AARCH64.
It is noted that 'protobuf-maven-plugin' only support x86 shown as follows:
<plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>${protobuf.plugin.version}</version> <configuration> <protocArtifact>com.google.protobuf:protoc:${external.protobuf.version}: exe:${os.detected.classifier}</protocArtifact> <protocArtifact>com.google.protobuf:protoc:${external.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> <clearOutputDirectory>false</clearOutputDirectory> <checkStaleness>true</checkStaleness> </configuration> </plugin>
So the build is failed.
[INFO] --- protobuf-maven-plugin:0.5.0:compile (compile-protoc) @ hbase-protocol-shaded --- [INFO] Compiling 32 proto file(s) to /root/hbase/hbase-protocol-shaded/target/generated-sources/protobuf/java Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (compile-protoc) on project hbase-protocol-shaded: Missing:
Then I installed aarch64 protobuf 2.5.0 on the host and modify the pom:
- <protocArtifact>com.google.protobuf:protoc:${external.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> + <protocExecutable>/usr/local/bin/protoc</protocExecutable>
The build is also failed:
[INFO] Compiling 32 proto file(s) to /root/hbase/hbase-protocol-shaded/target/generated-sources/protobuf/java [ERROR] PROTOC FAILED: google/protobuf/any.proto:31:10: Unrecognized syntax identifier "proto3". This parser only recognizes "proto2".
It seems that "internal.protobuf.version" in "hbase-protocol-shaded" is 3.3.0.
How to fix it? Thanks!
Attachments
Issue Links
- blocks
-
HIVE-20359 Update protobuf version in pom.xml
- Open
- relates to
-
HBASE-16761 Migrate existing protobuf2.5.0 Coprocessor Endpoints (and servers-side hbase) to protobuf3.
- Resolved
-
HBASE-24259 [thirdparty] Update Protobuf to 3.11.4
- Resolved
- links to