Clcanny opened a new pull request, #5709: URL: https://github.com/apache/hudi/pull/5709
## *Tips* - *Thank you very much for contributing to Apache Hudi.* - *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.* ## What is the purpose of the pull request Print more error infos when new source failed with config error. For example, when we new JsonKafkaSource.java with error checkpoint config. 1. `UtilHelpers` tries `JsonKafkaSource(TypedProperties properties, JavaSparkContext sparkContext, SparkSession sparkSession, SchemaProvider schemaProvider, HoodieDeltaStreamerMetrics metrics` first, and it throws `HoodieException`(That `HoodieException` contains useful error msg). 2. Then `UtilHelpers` tries `JsonKafkaSource(TypedProperties properties, JavaSparkContext sparkContext, SparkSession sparkSession, SchemaProvider schemaProvider`, and it throws `HoodieException`. 3. User only knows a not related error msg, and wonder why program complains not such method. ## Brief change log 1. Print error msg if not `NoSuchMethodException` in `UtilHelpers`. ## Verify this pull request This pull request is a trivial rework / code cleanup without any test coverage. ## Committer checklist - [ ] Has a corresponding JIRA in PR title & commit - [Y] 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
