kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manikumar Reddy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-1799) ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG doesn't work
Date Sat, 29 Nov 2014 10:21:12 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manikumar Reddy updated KAFKA-1799:
-----------------------------------
    Attachment: KAFKA-1799.patch

> ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG doesn't work
> ----------------------------------------------------------
>
>                 Key: KAFKA-1799
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1799
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.2
>            Reporter: Jun Rao
>            Priority: Blocker
>              Labels: newbie++
>             Fix For: 0.8.2
>
>         Attachments: KAFKA-1799.patch
>
>
> When running the following test, we got an unknown configuration exception.
>     @Test
>     public void testMetricsReporter() {
>         Properties producerProps = new Properties();
>         producerProps.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "host1:123");
>         producerProps.put(ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG, "org.apache.kafka.clients.producer.new-metrics-reporter");
>         new KafkaProducer(producerProps);
>     }
> org.apache.kafka.common.config.ConfigException: Unknown configuration 'org.apache.kafka.clients.producer.new-metrics-reporter'
> 	at org.apache.kafka.common.config.AbstractConfig.get(AbstractConfig.java:60)
> 	at org.apache.kafka.common.config.AbstractConfig.getClass(AbstractConfig.java:91)
> 	at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:147)
> 	at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:105)
> 	at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:94)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message