Confluent Metrics Reporter : failed
See original GitHub issueAfter running “docker-compose up -d” , I get the following error:
- docker-compose.yml
kafka7:
image: confluentinc/cp-kafka:5.1.2
container_name: confluent_kafka7
ports:
- 9092:9092
- 9999:9999
environment:
- KAFKA_BROKER_ID=7
- KAFKA_ZOOKEEPER_CONNECT=xxxxxx
- KAFKA_ADVERTISED_LISTENERS=xxxxxx
- KAFKA_DELETE_TOPIC_ENABLE=true
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=FALSE
- KAFKA_LOG_RETENTION_HOURS=72
- KAFKA_MIN_INSYNC_REPLICAS=2
- KAFKA_NUM_NETWORK_THREADS=12
- KAFKA_NUM_IO_THREADS=24
- KAFKA_NUM_REPLICA_FETCHERS=25
- KAFKA_REPLICA_FETCH_MAX_BYTES=104857600
- KAFKA_REPLICA_FETCH_RESPONSE_MAX_BYTES=104857600
- KAFKA_MESSAGE_MAX_BYTES=104857600
- KAFKA_NUM_PARTITIONS=14
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
- JMX_PORT=9999
- KAFKA_HEAP_OPTS=-Xms32G -Xmx32G
- KAFKA_inter_broker_protocol_version=2.1
- KAFKA_log_message_format_version=2.1
- KAFKA_METRIC_REPORTERS=io.confluent.metrics.reporter.ConfluentMetricsReporter
- CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS=xxxxxx
- CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT=xxxxxx
- CONFLUENT_METRICS_REPORTER_TOPIC_PARTITIONS=14
- CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS=3
- CONFLUENT_METRICS_ENABLE=true
- CONFLUENT_SUPPORT_CUSTOMER_ID=anonymous
- error message
[2019-03-15 10:45:57,039] INFO [TransactionCoordinator id=7] Starting up. (kafka.coordinator.transaction.TransactionCoordinator)
[2019-03-15 10:45:57,040] INFO [TransactionCoordinator id=7] Startup complete. (kafka.coordinator.transaction.TransactionCoordinator)
[2019-03-15 10:45:57,040] INFO [Transaction Marker Channel Manager 7]: Starting (kafka.coordinator.transaction.TransactionMarkerChannelManager)
[2019-03-15 10:45:57,065] ERROR [KafkaServer id=7] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.apache.kafka.common.KafkaException: io.confluent.metrics.reporter.ConfluentMetricsReporter ClassNotFoundException exception occurred
at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:357)
at kafka.server.DynamicMetricsReporters.createReporters(DynamicBrokerConfig.scala:725)
at kafka.server.DynamicMetricsReporters.<init>(DynamicBrokerConfig.scala:673)
at kafka.server.DynamicBrokerConfig.addReconfigurables(DynamicBrokerConfig.scala:212)
at kafka.server.KafkaServer.startup(KafkaServer.scala:304)
at io.confluent.support.metrics.SupportedServerStartable.startup(SupportedServerStartable.java:114)
at io.confluent.support.metrics.SupportedKafka.main(SupportedKafka.java:66)
Caused by: java.lang.ClassNotFoundException: io.confluent.metrics.reporter.ConfluentMetricsReporter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.kafka.common.utils.Utils.loadClass(Utils.java:335)
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:324)
at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:355)
... 6 more
[2019-03-15 10:45:57,068] INFO [KafkaServer id=7] shutting down (kafka.server.KafkaServer)
[2019-03-15 10:45:57,069] INFO [SocketServer brokerId=7] Stopping socket server request processors (kafka.network.SocketServer)
[2019-03-15 10:45:57,072] INFO [SocketServer brokerId=7] Stopped socket server request processors (kafka.network.SocketServer)
[2019-03-15 10:45:57,072] INFO [Kafka Request Handler on Broker 7], shutting down (kafka.server.KafkaRequestHandlerPool)
[2019-03-15 10:45:57,074] INFO [Kafka Request Handler on Broker 7], shut down completely (kafka.server.KafkaRequestHandlerPool)
[2019-03-15 10:45:57,075] INFO [KafkaApi-7] Shutdown complete. (kafka.server.KafkaApis)
[2019-03-15 10:45:57,076] INFO [ExpirationReaper-7-topic]: Shutting down (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2019-03-15 10:45:57,204] INFO [ExpirationReaper-7-topic]: Stopped (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2019-03-15 10:45:57,204] INFO [ExpirationReaper-7-topic]: Shutdown completed (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Confluent Metrics Reporter
The Confluent Metrics Reporter collects various metrics from an Apache Kafka® ... WARN Failed to produce metrics message (io.confluent.metrics.reporter.
Read more >Apache Kafka brokers not sending metrics to Confluent ...
I'm getting a metric.reporters = [] in the KafkaConfig log section. I'm getting a this WARN in the Confluent Control Center log: [2018- ......
Read more >Control Center not showing system metrics - Google Groups
[2018-07-22 08:01:39,118] ERROR Error checking or creating metrics topic (io.confluent.metrics.reporter.ConfluentMetricsReporter).
Read more >Monitoring with the Confluent Control Center | Apache Kafka ...
This recipe shows you how to use the metrics reporter of the Confluent Control Center.
Read more >Kafka + Metricbeat error:Failed to fetch offset for (topic, partition)
To set up monitoring kafka metrics with Elastic, I have followe… ... KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please use
image: confluentinc/cp-enterprise-kafka:latest
instead ofimage: confluentinc/cp-kafka:5.1.2
to create the broker. Metrics is only available in Confluent Enterprise.
hey @pmihalcin
Confluent Proactive Support (you can read more about it here ) enabled by default in confluent images. To disable it in docker you can use
export KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE=false
Hope this helps!