Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running cruise control on confluent kafka(java.lang.NoSuchMethodError: 'boolean com.linkedin.kafka.cruisecontrol.metricsreporter.metric.MetricsUtils.isInterested(com.yammer.metrics.core.MetricName)') #1638

Open
vipulchandraker opened this issue Jul 31, 2021 · 4 comments

Comments

@vipulchandraker
Copy link

Hi,

I have placed the cruise-control-metrics-reporter-0.1.0-SNAPSHOT.jar under /usr/share/java/kafka/ location.

#ls -l /usr/share/java/kafka/cruise-control-metrics-reporter-0.1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 51720 Jul 31 17:07 /usr/share/java/kafka/cruise-control-metrics-reporter-0.1.0-SNAPSHOT.jar

I see that the jar is loaded by the broker process as well.
lsof -p 11500 | grep cruise
java 11500 cp-kafka 227r REG 202,1 51720 17159194 /usr/share/java/kafka/cruise-control-metrics-reporter-0.1.0-SNAPSHOT.jar
java 11500 cp-kafka 367r REG 202,1 51720 8955089 /usr/share/java/confluent-common/cruise-control-metrics-reporter-0.1.0-SNAPSHOT.jar

I am seeing following exception in broker logs.

[2021-07-31 17:52:45,621] INFO Kafka startTimeMs: 1627753965621 (org.apache.kafka.common.utils.AppInfoParser) [2021-07-31 17:52:45,632] INFO App info kafka.admin.client for _confluent-license-admin-1001 unregistered (org.apache.kafka.common.utils.AppInfoParser) [2021-07-31 17:52:45,634] INFO Metrics scheduler closed (org.apache.kafka.common.metrics.Metrics) [2021-07-31 17:52:45,634] INFO Closing reporter org.apache.kafka.common.metrics.JmxReporter (org.apache.kafka.common.metrics.Metrics) [2021-07-31 17:52:45,634] INFO Metrics reporters closed (org.apache.kafka.common.metrics.Metrics) [2021-07-31 17:52:45,635] INFO Trial license for Confluent Enterprise expires in 29 days on 2021-08-30. (io.confluent.license.LicenseManager) [2021-07-31 17:53:37,451] INFO Cruise Control metrics reporter exited. (com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter) [2021-07-31 17:53:37,452] ERROR Uncaught exception in thread 'CruiseControlMetricsReporterRunner': (org.apache.kafka.common.utils.KafkaThread) java.lang.NoSuchMethodError: 'boolean com.linkedin.kafka.cruisecontrol.metricsreporter.metric.MetricsUtils.isInterested(com.yammer.metrics.core.MetricName)' at com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor.processGauge(YammerMetricProcessor.java:141) at com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor.processGauge(YammerMetricProcessor.java:26) at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28) at com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter.reportYammerMetrics(CruiseControlMetricsReporter.java:399) at com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter.run(CruiseControlMetricsReporter.java:331) at java.base/java.lang.Thread.run(Thread.java:829)

@tomncooper
Copy link
Contributor

tomncooper commented Aug 6, 2021

0.1.0 seems like an strange version number (the latest ones are 2.x.x)? Are you building CC from source? Which branch did you build from (master or one of the migrate branches)? What version of Kafka are you running it with?

@Fattouh92
Copy link

I am facing the exact same issue as well. I am using cp-server 6.0.1 image which is kafka 2.6.0 if I am not mistaken and cruise control 2.5.78.

My thinking is: confluent has Self balancing feature that builds on top of cruise control. they must include cruise control jars somehow.
I think there is a clash somehow with the classes included twice. Confluent jars is what gets used and not sure which version or what they do there

@tomncooper can you verify this line of thinking please?
maybe issue #276 is also related

@vipulchandraker any updates here?

@mfouze
Copy link

mfouze commented Aug 10, 2022

Hello,
Any update on this case ?

@saikumarstkm
Copy link

saikumarstkm commented Apr 17, 2023

I am also facing the same error

[2023-04-17 11:39:08,657] ERROR Uncaught exception in thread 'CruiseControlMetricsReporterRunner': (org.apache.kafka.common.utils.KafkaThread) java.lang.NoSuchMethodError: 'boolean com.linkedin.kafka.cruisecontrol.metricsreporter.metric.MetricsUtils.isInterested(com.yammer.metrics.core.MetricName)' at com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor.processGauge(YammerMetricProcessor.java:141) at com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor.processGauge(YammerMetricProcessor.java:26) at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28) at com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter.reportYammerMetrics(CruiseControlMetricsReporter.java:479) at com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter.run(CruiseControlMetricsReporter.java:411) at java.base/java.lang.Thread.run(Thread.java:829) at org.apache.kafka.common.utils.KafkaThread.run(KafkaThread.java:64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants