Description
The logic of argument checking is flawed for kafka-console-consumer. Throws below mentioned exception when topic is not specified. Users wont have a clue what went wrong.
Exception in thread "main" java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:337)
at scala.collection.immutable.Nil$.head(List.scala:334)
at kafka.tools.ConsoleConsumer$ConsumerConfig.<init>(ConsoleConsumer.scala:244)
at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:40)
at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala)