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

Facing error while trying to create the Producer.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • None
    • None
    • None

    Description

      While trying to run the command
      bin/kafka-console-producer.sh --broker-list localhost:9092 --topic first-topic
      I am facing the below error.

      ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
      Exception in thread "main" java.lang.NoSuchMethodError: kafka.utils.CommandLineUtils$.parseKeyValueArgs(Lscala/collection/Iterable;)Ljava/util/Properties;
      at kafka.tools.ConsoleProducer$ProducerConfig.<init>(ConsoleProducer.scala:279)
      at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:38)
      at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Rohan645 Rohan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: