pan3793 opened a new pull request, #7790: URL: https://github.com/apache/hadoop/pull/7790
<!-- Thanks for sending a pull request! 1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute 2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'. --> ### Description of PR An alternative to https://github.com/apache/hadoop/pull/7499 to recover the CentOS 7 build. This is only for branch-3.4, we should consider removing the support of CentOS 7 for trunk. ### How was this patch tested? The verification step requires manually patching HADOOP-19540 and HADOOP-19246 on branch-3.4 first. Before ``` $ git checkout branch-3.4 $ git checkout trunk -- start-build-env.sh $ git checkout trunk -- dev-support/docker/pkg-resolver/install-yasm.sh $ ./start-build-env.sh centos_7 $ mvn clean install -DskipTests -pl :hadoop-yarn-csi -am ... [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 43.582 s [INFO] Finished at: 2025-07-10T07:54:08Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile-custom (default) on project hadoop-yarn-csi: protoc did not exit cleanly. Review output for more information. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :hadoop-yarn-csi ``` After ``` $ git checkout YARN-11794-3.4 $ git checkout trunk -- start-build-env.sh $ git checkout trunk -- dev-support/docker/pkg-resolver/install-yasm.sh $ ./start-build-env.sh centos_7 $ mvn clean install -DskipTests -pl :hadoop-yarn-csi -am ... [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 48.896 s [INFO] Finished at: 2025-07-10T07:42:12Z [INFO] ------------------------------------------------------------------------ ``` ### For code changes: - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')? - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org