kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Ribeiro (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-2601) ConsoleProducer tool shows stacktrace on invalid command parameters
Date Thu, 01 Oct 2015 16:16:27 GMT

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

Edward Ribeiro commented on KAFKA-2601:

Hi [~GabrielNicolasAvellaneda], 

LGTM, but I am a newbie too (started about three months ago, but has been on and off due to
work commitments, not consistently participating **yet**). So, I will pass the review torch
to [~gwenshap], she is a Kafka committer and the coolest person you will interact with. :)
They are all very busy, so be patient. ;)

ps: send message to the dev mailing list asking to include you as a contributor, so you can
assign issues to yourself.


> ConsoleProducer tool shows stacktrace on invalid command parameters
> -------------------------------------------------------------------
>                 Key: KAFKA-2601
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2601
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>    Affects Versions:
>            Reporter: Gabriel Nicolas Avellaneda
>            Priority: Minor
>              Labels: easyfix
> Running kafka-console-producer tool with an invalid argument shows a full stack trace
instead of a user-friendly error:
> {code}
> vagrant@vagrant-ubuntu-trusty-64:/vagrant/kafka/kafka_2.9.1-$ bin/kafka-console-producer.sh
--zookeeper localhost:2181 --topic another-topic
> Exception in thread "main" joptsimple.UnrecognizedOptionException: 'zookeeper' is not
a recognized option
>         at joptsimple.OptionException.unrecognizedOption(OptionException.java:93)
>         at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:402)
>         at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:55)
>         at joptsimple.OptionParser.parse(OptionParser.java:392)
>         at kafka.tools.ConsoleProducer$ProducerConfig.<init>(ConsoleProducer.scala:216)
>         at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:35)
>         at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)
> {code}

This message was sent by Atlassian JIRA

View raw message