Skip to content

Commit d29e84b

Browse files
committed
YARN-11794. (3.4) Track gRPC generated code for hadoop-yarn-csi
1 parent 812c679 commit d29e84b

File tree

5 files changed

+64883
-19
lines changed

5 files changed

+64883
-19
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -202,24 +202,6 @@
202202
</filesets>
203203
</configuration>
204204
</plugin>
205-
<plugin>
206-
<groupId>org.xolstice.maven.plugins</groupId>
207-
<artifactId>protobuf-maven-plugin</artifactId>
208-
<version>${protobuf-maven-plugin.version}</version>
209-
<configuration>
210-
<protocArtifact>com.google.protobuf:protoc:${hadoop.protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
211-
<pluginId>grpc-java</pluginId>
212-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
213-
</configuration>
214-
<executions>
215-
<execution>
216-
<goals>
217-
<goal>compile</goal>
218-
<goal>compile-custom</goal>
219-
</goals>
220-
</execution>
221-
</executions>
222-
</plugin>
223205
<plugin>
224206
<groupId>org.apache.rat</groupId>
225207
<artifactId>apache-rat-plugin</artifactId>
@@ -250,12 +232,45 @@
250232
</goals>
251233
<configuration>
252234
<sources>
253-
<source>${basedir}/target/generated-sources/protobuf/java</source>
235+
<source>${basedir}/src/main/grpc-java</source>
254236
</sources>
255237
</configuration>
256238
</execution>
257239
</executions>
258240
</plugin>
259241
</plugins>
260242
</build>
243+
244+
<profiles>
245+
<profile>
246+
<!--
247+
YARN-11794: gRPC v1.69.0 is not executable on CentOS 7 due to GLIBC version
248+
is too old. For branch-3.4, we track the generated code in Git and leave this
249+
profile to allow regenerating when upgrading gRPC or protobuf.
250+
-->
251+
<id>grpc-gen</id>
252+
<build>
253+
<plugins>
254+
<plugin>
255+
<groupId>org.xolstice.maven.plugins</groupId>
256+
<artifactId>protobuf-maven-plugin</artifactId>
257+
<version>${protobuf-maven-plugin.version}</version>
258+
<configuration>
259+
<protocArtifact>com.google.protobuf:protoc:${hadoop.protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
260+
<pluginId>grpc-java</pluginId>
261+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
262+
</configuration>
263+
<executions>
264+
<execution>
265+
<goals>
266+
<goal>compile</goal>
267+
<goal>compile-custom</goal>
268+
</goals>
269+
</execution>
270+
</executions>
271+
</plugin>
272+
</plugins>
273+
</build>
274+
</profile>
275+
</profiles>
261276
</project>

0 commit comments

Comments
 (0)