Skip to content
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

BIGTOP-3893: Fix Hadoop3.3.4 build issues on ppc64le #1077

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

guyuqi
Copy link
Member

@guyuqi guyuqi commented Dec 15, 2022

https://issues.apache.org/jira/browse/BIGTOP-3893

Description of PR

Fix Hadoop3.3.4 build issues on ppc64le.

Haoop common depends on protobuf-2.5.0:
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (src-compile-protoc-legacy) on project hadoop-common: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:linux-ppcle_64:2.5.0
[ERROR]
[ERROR]   Try downloading the file manually from the project website.
[ERROR]
[ERROR]   Then, install it using the command:
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-ppcle_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR]   Alternatively, if you host your own repository you can deploy the file there:
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-ppcle_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]   Path to dependency:
[ERROR]         1) org.apache.hadoop:hadoop-common:jar:3.3.4
[ERROR]         2) com.google.protobuf:protoc:exe:linux-ppcle_64:2.5.0
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]

In Haddop YARN CSI, it depends on protobuf-3.6.1 and grpc-java 1.26.0.
But there is no pre-built binary of protobuf-3.6.1 and grpc-java-1.26.0 for ppc64le.
It's needed to build protobuf-3.6.1 and grpc-java Binaries in Bigtop toolchain:

INFO] Apache Hadoop YARN CSI ............................. FAILURE [  0.552 s

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project hadoop-yarn-csi: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:linux-ppcle_64:3.6.1
[ERROR]
[ERROR]   Try downloading the file manually from the project website.
[ERROR]
[ERROR]   Then, install it using the command:
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.6.1 -Dclassifier=linux-ppcle_64 -Dpackagin                                                                                                                                                                                       g=exe -Dfile=/path/to/file
[ERROR]
[ERROR]   Alternatively, if you host your own repository you can deploy the file there:
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.6.1 -Dclassifier=linux-ppcle_64 -Dpackaging=                                                                                                                                                                                       exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]   Path to dependency:
[ERROR]         1) org.apache.hadoop:hadoop-yarn-csi:jar:3.3.4
[ERROR]         2) com.google.protobuf:protoc:exe:linux-ppcle_64:3.6.1
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR]   org.apache.hadoop:hadoop-yarn-csi:jar:3.3.4
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots, releases=true, snapshots=true),
[ERROR]   repository.jboss.org (https://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=false),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR]


#############################################################################
[ERROR] ----------
[ERROR] 1) io.grpc:protoc-gen-grpc-java:exe:linux-ppcle_64:1.26.0
[ERROR]
[ERROR]   Try downloading the file manually from the project website.
[ERROR]
[ERROR]   Then, install it using the command:
[ERROR]       mvn install:install-file -DgroupId=io.grpc -DartifactId=protoc-gen-grpc-java -Dversion=1.26.0 -Dclassifier=linux-ppcle_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR]   Alternatively, if you host your own repository you can deploy the file there:
[ERROR]       mvn deploy:deploy-file -DgroupId=io.grpc -DartifactId=protoc-gen-grpc-java -Dversion=1.26.0 -Dclassifier=linux-ppcle_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]   Path to dependency:
[ERROR]         1) org.apache.hadoop:hadoop-yarn-csi:jar:3.3.4
[ERROR]         2) io.grpc:protoc-gen-grpc-java:exe:linux-ppcle_64:1.26.0

How was this patch tested?

Build bigtop toolchain (bigtop/slaves docker images) and build Hadoop on ppcle64.

Change-Id: I89b73bc220de99233b347ef5fe6dfee825ad36c0
Signed-off-by: Yuqi Gu <[email protected]>
@guyuqi
Copy link
Member Author

guyuqi commented Dec 18, 2022

I Confirmed that it would successfully build related docker images and Hadoop on ppcle64.

@JunHe77
Copy link
Contributor

JunHe77 commented Dec 18, 2022

LGTM, +1

Copy link
Member

@iwasakims iwasakims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for coming here late. LGTM while I don't have local ppc64le for testing this now.

@guyuqi guyuqi merged commit d590ea6 into apache:master Dec 19, 2022
@guyuqi
Copy link
Member Author

guyuqi commented Dec 19, 2022

Merged, thanks.

guyuqi added a commit that referenced this pull request Dec 19, 2022
eubnara pushed a commit to eubnara/bigtop that referenced this pull request Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants