Nihar Rao
02/13/2023, 4:34 PM2023-02-13 10:58:05,901 WARN org.apache.flink.runtime.metrics.MetricRegistryImpl [] - Error while registering metric: numRecordsOut.
java.lang.ClassCastException: class org.apache.flink.dropwizard.metrics.FlinkCounterWrapper cannot be cast to class com.codahale.metrics.Metric (org.apache.flink.dropwizard.metrics.FlinkCounterWrapper is in unnamed module of loader 'app'; com.codahale.metrics.Metric is in unnamed module of loader org.apache.flink.core.plugin.PluginLoader$PluginClassLoader @5833f5cd)
Due to this error, the metric is not reported. On looking into this, FlinkCounterWrapper does extend codahale.Counter. Can anyone please tell me how to fix this?Martijn Visser
02/13/2023, 5:33 PMNihar Rao
02/13/2023, 6:04 PMMartijn Visser
02/13/2023, 7:14 PM