[ 
https://issues.apache.org/jira/browse/HUDI-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nishith Agarwal updated HUDI-1799:
----------------------------------
    Description: 
Prometheus reporter throws the following exception

 

java.lang.NoSuchMethodError: 
io.prometheus.client.dropwizard.DropwizardExports.(Lorg/apache/hudi/com/codahale/metrics/MetricRegistry;)V

 

This looks like a problem due to the version differences between 
{{io.dropwizard}} in [prometheus-java 
client|https://github.com/prometheus/client_java/blob/master/simpleclient_dropwizard/pom.xml#L40]
 (3.1.2) vs {{io.dropwizard}} dependency in 
[Hudi|https://github.com/apache/hudi/blob/master/pom.xml#L105] (4.1.1)

Since Hudi brings in 4.1.1, the prometheus client is unable to find the 
required method

 

{{java.lang.NoSuchMethodError: 
io.prometheus.client.dropwizard.DropwizardExports.(Lorg/apache/hudi/com/codahale/metrics/MetricRegistry;)V}}

which is present in 3.1.2.

 

More details on suggested solutions to unblock production -> 
https://github.com/apache/hudi/issues/2774

  was:
Prometheus reporter throws the following exception

 

java.lang.NoSuchMethodError: 
io.prometheus.client.dropwizard.DropwizardExports.(Lorg/apache/hudi/com/codahale/metrics/MetricRegistry;)V

 

 


> NoSuchMethod error in prometheus reporter
> -----------------------------------------
>
>                 Key: HUDI-1799
>                 URL: https://issues.apache.org/jira/browse/HUDI-1799
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: metrics
>            Reporter: Nishith Agarwal
>            Assignee: sivabalan narayanan
>            Priority: Major
>              Labels: sev:high
>
> Prometheus reporter throws the following exception
>  
> java.lang.NoSuchMethodError: 
> io.prometheus.client.dropwizard.DropwizardExports.(Lorg/apache/hudi/com/codahale/metrics/MetricRegistry;)V
>  
> This looks like a problem due to the version differences between 
> {{io.dropwizard}} in [prometheus-java 
> client|https://github.com/prometheus/client_java/blob/master/simpleclient_dropwizard/pom.xml#L40]
>  (3.1.2) vs {{io.dropwizard}} dependency in 
> [Hudi|https://github.com/apache/hudi/blob/master/pom.xml#L105] (4.1.1)
> Since Hudi brings in 4.1.1, the prometheus client is unable to find the 
> required method
>  
> {{java.lang.NoSuchMethodError: 
> io.prometheus.client.dropwizard.DropwizardExports.(Lorg/apache/hudi/com/codahale/metrics/MetricRegistry;)V}}
> which is present in 3.1.2.
>  
> More details on suggested solutions to unblock production -> 
> https://github.com/apache/hudi/issues/2774



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to