zyclove commented on issue #8903:
URL: https://github.com/apache/hudi/issues/8903#issuecomment-1598292766

   @ad1happy2go I use emr-6.5.0. It's error with " java.lang.NoSuchMethodError: 
org.apache.spark.sql.execution.datasources.PartitionedFile".
   
   But i have package with oss spark and hudi bundle.  Work ok now.
   
   `<plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-shade-plugin</artifactId>
                   <version>3.2.1</version>
                   <configuration>
                       <finalName>hudi-${spark.version}-plugin</finalName>
                       
<createDependencyReducedPom>false</createDependencyReducedPom>
                   </configuration>
                   <executions>
                       <execution>
                           <phase>package</phase>
                           <goals>
                               <goal>shade</goal>
                           </goals>
                           <configuration>
                               <relocations>
                                   <relocation>
                                       
<pattern>org.apache.spark.sql.execution.datasources.PartitionedFile</pattern>
                                       
<shadedPattern>org.local.spark.sql.execution.datasources.PartitionedFile</shadedPattern>
                                   </relocation>
                                   <relocation>
                                       <pattern>org.apache.curator</pattern>
                                       
<shadedPattern>org.local.curator</shadedPattern>
                                   </relocation>
                               </relocations>
                               <transformers>
                                   <transformer
                                           
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
                               </transformers>
                               <filters>
                                   <filter>
                                       <artifact>*:*</artifact>
                                       <excludes>
                                           <exclude>module-info.class</exclude>
                                           
<exclude>org/apache/spark/unused/**</exclude>
                                       </excludes>
                                   </filter>
                                   <filter>
                                       <artifact>*:*</artifact>
                                       <excludes>
                                           <exclude>META-INF/*.SF</exclude>
                                           <exclude>META-INF/*.DSA</exclude>
                                           <exclude>META-INF/*.RSA</exclude>
                                       </excludes>
                                   </filter>
                               </filters>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
   `


-- 
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