n3nash commented on issue #2774:
URL: https://github.com/apache/hudi/issues/2774#issuecomment-814678338


   @vobukh 
   
   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.
   
   I'm not sure how this was tested by the contributor but looks like might 
have only been tested with unit tests where this issue will not be caught. 
There are 2 possible solutions here:
   
   1. Downgrade `io.dropwizard` in Hudi to 3.1.2 -> My guess is this will 
require some code changes in Hudi since package and API's have moved between 
3.1.2 and 4.1.1.
   2. Upgrade prometheus client to 4.1.1, build it and then build the Hudi 
bundle jars with that version -> My guess is this may not require any code 
changes in prometheus client. 
   
   @vobukh Let me know what you think.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to