cdmikechen opened a new pull request #4458:
URL: https://github.com/apache/hudi/pull/4458
## What is the purpose of the pull request
KafkaConnect use `org.apache.hudi.DataSourceUtils` to build HiveSyncConfig
now, but `DataSourceUtils` import some spark dependencies. So that Hive sync
will fail because of the application of related classes.
```
Caused by: java.lang.ClassNotFoundException:
org.apache.spark.sql.types.DataType
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 66 more
```
## Brief change log
- Add a separate method to create HiveSyncConfig
## Verify this pull request
Need to add Hive sync test by https://issues.apache.org/jira/browse/HUDI-2673
## Committer checklist
- [x] Has a corresponding JIRA in PR title & commit
- [x] Commit message is descriptive of the change
- [ ] CI is green
- [x] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]