hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hadoop] vinayakumarb commented on a change in pull request #2342: HADOOP-17288. Use shaded guava from thirdparty.
Date Tue, 06 Oct 2020 08:58:45 GMT

vinayakumarb commented on a change in pull request #2342:
URL: https://github.com/apache/hadoop/pull/2342#discussion_r500116361

File path: hadoop-common-project/hadoop-auth/pom.xml
@@ -234,6 +235,24 @@
+      <plugin>
+        <groupId>com.google.code.maven-replacer-plugin</groupId>
+        <artifactId>replacer</artifactId>
+        <executions>
+          <execution>
+            <id>replace-sources</id>
+            <configuration>
+              <skip>false</skip>
+            </configuration>
+          </execution>
+          <execution>
+            <id>replace-test-sources</id>
+            <configuration>
+              <skip>false</skip>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>

Review comment:
       Instead of replacing guava references along with protobuf references, create a separate
replacer-execution in hadoop-project/pom.xml and enable by default for all projects.
                   <skip>false</skip><!--This will run for all modules-->
   2. Exclude guava-replacement in hadoop-yarn-csi module. yarn-csi seems to have separate
classpath, and it explicitly uses guava-20. This will not affect any downstreams.
   3. Replaces all dependencies on guava to hadoop-shaded-guava (except yarn-csi)
   4. In hadoop-common/pom.xml, Keep both guava (11.0.2) and hadoop-shaded-guava as dependencies.
Of course code should use shaded version of guava. version 11.0.2 is used in curator libs
during runtime. 

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.

For queries about this service, please contact Infrastructure at:

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message