jackiehff opened a new issue #2641:
URL: https://github.com/apache/hudi/issues/2641


   **Describe the problem you faced**
   
   When I build hudi source with newest spark 3.1.1 version, the terminal 
prints compile error : 
/Users/jackiehff/github/hudi/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionHelper.scala:133:
 error: class IncompatibleSchemaException in package avro cannot be accessed in 
package org.apache.spark.sql.avro
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1.change spark version from 3.0.0 to 3.1.1 in hudi parent pom.xml
   2.open the terminal under hudi folder, execute command: mvn clean package 
-DskipTests -Dscala-2.12 -Dspark3
   
   **Stacktrace**
   
   ```[ERROR] 
/Users/jackiehff/github/hudi/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionHelper.scala:133:
 error: class IncompatibleSchemaException in package avro cannot be accessed in 
package org.apache.spark.sql.avro
   [ERROR]                   throw new IncompatibleSchemaException(
   [ERROR]                             ^
   [ERROR] 
/Users/jackiehff/github/hudi/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionHelper.scala:151:
 error: not found: type IncompatibleSchemaException
   [ERROR]               throw new IncompatibleSchemaException(
   [ERROR]                         ^
   [ERROR] 
/Users/jackiehff/github/hudi/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionHelper.scala:256:
 error: not found: type IncompatibleSchemaException
   [ERROR]                 case _ => throw new IncompatibleSchemaException(
   [ERROR]                                     ^
   [ERROR] 
/Users/jackiehff/github/hudi/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionHelper.scala:265:
 error: not found: type IncompatibleSchemaException
   [ERROR]           throw new IncompatibleSchemaException(
   [ERROR]                     ^
   [ERROR] four errors found
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary for Hudi 0.8.0-SNAPSHOT:
   ```
   
   


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


Reply via email to