You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Mohammed Naseer Khan (JIRA)" <ji...@apache.org> on 2017/04/26 18:18:04 UTC

[jira] [Commented] (KAFKA-4202) Facing error while trying to create the Producer.

    [ https://issues.apache.org/jira/browse/KAFKA-4202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985298#comment-15985298 ] 

Mohammed Naseer Khan commented on KAFKA-4202:
---------------------------------------------

resetting the classpath worked for me, as mentioned in the above comment I had a few conflicting jars in kafka and flume.

export CLASSPATH=""

> Facing error while trying to create the Producer.
> -------------------------------------------------
>
>                 Key: KAFKA-4202
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4202
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Rohan
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)