Startup of confluentinc/cp-kafka:3.3.0 docker image gives class not found

1,561 views
Skip to first unread message

Michael Quinn

unread,
Sep 11, 2017, 7:41:38 PM9/11/17
to Confluent Platform
From the git repo (examples - https://github.com/confluentinc/cp-docker-images/blob/3.3.x/examples/cp-all-in-one/docker-compose.yml), i used the docker-compose.yml

Env
AWS EC-2 instance
RHEL : 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
Docker version 17.06.0-ce, build 02c1d87
docker-compose version 1.15.0, build e12f3b9

The following environment entries are there (see below)
however, when the  KAFKA_METRIC_REPORTERS: var is set, i get a classnotfound error on startup

help please

WARN No meta.properties file under dir /var/lib/kafka/data/meta.properties (kafka.server.BrokerMetadataCheckpoint) broker | [2017-09-11 23:27:21,561] FATAL [Kafka Server 1], Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) broker | org.apache.kafka.common.KafkaException: io.confluent.metrics.reporter.ConfluentMetricsReporter ClassNotFoundException exception occurred broker | at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:288) broker | at kafka.server.KafkaServer.startup(KafkaServer.scala:202) broker | at io.confluent.support.metrics.SupportedServerStartable.startup(SupportedServerStartable.java:102) broker | at io.confluent.support.metrics.SupportedKafka.main(SupportedKafka.java:49) broker | Caused by: java.lang.ClassNotFoundException: io.confluent.metrics.reporter.ConfluentMetricsReporter



KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:9092'
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:9092
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'

Michael Quinn

unread,
Sep 11, 2017, 7:44:16 PM9/11/17
to Confluent Platform
Using image  image: confluentinc/cp-kafka:3.3.0

Michael Quinn

unread,
Sep 11, 2017, 7:48:11 PM9/11/17
to Confluent Platform
oops - problem solved, need to use confluentinc/cp-enterprise-kafka:3.3.0


On Tuesday, 12 September 2017 09:41:38 UTC+10, Michael Quinn wrote:

Akshay Anurag

unread,
Apr 1, 2019, 3:50:23 PM4/1/19
to Confluent Platform
Yes, you need to use Confluent Kafka Enterprise version as the Metrics is only available in the Enterprise version.
Reply all
Reply to author
Forward
0 new messages