Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1799

ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG doesn't work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.2.0
    • Fix Version/s: 0.8.2.0
    • Component/s: None
    • Labels:

      Description

      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)

        Attachments

        1. KAFKA-1799.patch
          1 kB
          Manikumar
        2. KAFKA-1799_2014-11-30_16:04:16.patch
          5 kB
          Manikumar
        3. KAFKA-1799_2014-11-30_15:58:32.patch
          1 kB
          Manikumar

          Activity

            People

            • Assignee:
              omkreddy Manikumar
              Reporter:
              junrao Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: