paul8263 commented on code in PR #6489:
URL: https://github.com/apache/hudi/pull/6489#discussion_r969053299


##########
hudi-cli/pom.xml:
##########
@@ -254,12 +293,24 @@
     <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-common</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>com.google.code.gson</groupId>
+          <artifactId>gson</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-hdfs</artifactId>
     </dependency>
 
+    <dependency>

Review Comment:
   Spring Boot, which is required by Spring Shell, have to use the newer 
version of gson. If not we will get an exception as below:
   
   ` java.lang.BootstrapMethodError: java.lang.NoSuchMethodError: 
com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder;`.
   
   If we did not add it, a legacy version of `GSON` would be provided by 
Hadoop, which would lead to problems.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to