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