yihua opened a new pull request, #5353:
URL: https://github.com/apache/hudi/pull/5353

   ## What is the purpose of the pull request
   
   This PR fixes the `NoClassDefFoundError` due to 
`org.apache.hudi.schema.FilebasedSchemaProvider`.  The class is not packaged to 
the hudi-kafka-connect-bundle because of changes in flink modules (Right now, 
Kafka Connect Sink for Hudi temporarily relies on schema provider classes in 
Flink that do not use Spark context).  The PR corrects the whitelist rule for 
the flink module.
   
   ```
   java.lang.NoClassDefFoundError: 
org/apache/hudi/schema/FilebasedSchemaProvider
       at 
org.apache.hudi.connect.writers.KafkaConnectConfigs.<clinit>(KafkaConnectConfigs.java:57)
       at org.apache.hudi.connect.HoodieSinkTask.start(HoodieSinkTask.java:80)
       at 
org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:308)
       at 
org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:196)
       at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:186)
       at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:241)
       at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
   ```
   
   ## Brief change log
   
     - Corrects the shade include rule of hudi-flink in 
`packaging/hudi-kafka-connect-bundle/pom.xml`.
   
   ## Verify this pull request
   
   The PR is verified by running the quick start guide of Kafka Connect Sink 
for Hudi and the NoClassDefFoundError is no longer thrown.
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.
   


-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to