YARN-11921. Replace unsupported org.xolstice.maven.plugins in hadoop-yarn-csi#8156
YARN-11921. Replace unsupported org.xolstice.maven.plugins in hadoop-yarn-csi#8156aajisaka merged 1 commit intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
| </plugin> | ||
| <plugin> | ||
| <groupId>org.xolstice.maven.plugins</groupId> | ||
| <groupId>io.github.ascopes</groupId> |
There was a problem hiding this comment.
The plugin version is unset. Which plugin version do you want to use?
|
This PR is targeted only for YARN. Do you want to replace the plugin in Common and HDFS as well as YARN in this PR? Common and HDFS config: Lines 2380 to 2420 in 1dab293 |
I will commit to to doing the rest in the next commit, but is it possible we merge this as it is. It does no harm and I am working mostly with nodemanager right now. This poses a challenge for me. |
Thanks, I'll merge this. |
|
I think I'll need to revert this from branch-3.4. I noticed that the build in start-build-env.sh is failing now with a bytecode version compatibility error trying to use the new plugin. On branch-3.4, the build Docker image uses Java 8. The change can remain in trunk, where we've upgraded to Java 17. |
|
Reverted from branch-3.4. |
|
Since the version is not specified, using the newly released v5.0.0 results in build failure due to breaking changes. $ ./start-build-env.sh ubuntu_24
$ git log --oneline -n1
56192be95af (HEAD -> trunk, origin/trunk, origin/HEAD) HDFS-17861. The mis-behavior of commitBlockSynchronization may cause standby namenode and observer namenode crash. (#8120)
$ mvn package -f hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
~~~
[ERROR] Failed to execute goal io.github.ascopes:protobuf-maven-plugin:5.0.0:generate (default) on project hadoop-yarn-csi: The parameters 'protoc' for goal io.github.ascopes:protobuf-maven-plugin:5.0.0:generate are missing or invalid -> [Help 1]Specifying a version earlier than v5.0.0 does not cause the build to fail. $ git diff hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
index fd780bd6963..91c96d749f6 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
@@ -197,6 +197,7 @@
<plugin>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
+ <version>4.1.3</version>
<configuration>
<protocVersion>${hadoop.protobuf.version}</protocVersion>
<binaryMavenPlugins>
$ mvn package -f hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml
~~~
[INFO] BUILD SUCCESS
~~~ |
|
@LamiumAmplexicaule , thanks for pointing this out. I'm testing a slightly different version of the patch and will send a pull request shortly. |
This is now tracked in YARN-11930 and #8255 . |
Description of PR
xolstice plugin is unsupported thus causing you to pull old out of date binaries from maven. This replaces the plugin with a different one that is supported.
How was this patch tested?
Completed the build even on alpine linux as well as locally on fedora 42.