cshuo opened a new pull request, #4332:
URL: https://github.com/apache/flink-cdc/pull/4332

   … flink-metrics-dropwizard dependency
   
   ### Describe the issue this Pull Request addresses
   
   The Hudi pipeline connector declared `flink-metrics-dropwizard` with `test` 
scope in its module `pom.xml`, which restricted the dependency to test 
classpaths only, and leads to the failure of job, like:
   ```
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper
   at 
org.apache.hudi.metrics.FlinkStreamWriteMetrics.<init>(FlinkStreamWriteMetrics.java:91)
 
   at 
org.apache.hudi.sink.StreamWriteFunction.registerMetrics(StreamWriteFunction.java:457)
 
   at 
org.apache.hudi.sink.StreamWriteFunction.open(StreamWriteFunction.java:164) 
   ```
   
   This PR removes that scope restriction so the dependency is resolved as a 
regular module dependency, aligning packaging/classpath behavior for non-test 
builds and runtime usage of the connector.
   
   ### Summary and Changelog
   - Removed `<scope>test</scope>` from dependency 
`org.apache.flink:flink-metrics-dropwizard:${flink.version}`.
   - No logic changes; this is a dependency-scope adjustment only.
   


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