You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2014/12/02 01:15:12 UTC

[jira] [Updated] (KAFKA-1799) ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG doesn't work

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

Jun Rao updated KAFKA-1799:
---------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Thanks for the patch. +1 and committed to trunk and 0.8.2.

> 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
>            Assignee: Manikumar Reddy
>            Priority: Blocker
>              Labels: newbie++
>             Fix For: 0.8.2
>
>         Attachments: KAFKA-1799.patch, KAFKA-1799_2014-11-30_15:58:32.patch, KAFKA-1799_2014-11-30_16:04:16.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)