Any idea how to set group name when consuming messages in kafka using command line.
I tried with the following command :
bin/kafka-console-consumer.sh --
If you are using bash then you can use its process substitution capability.
bin/kafka-console-consumer.sh --zookeeper localhost:2181 \ --topic nil_RF2_P2 --from-beginning \ --consumer.config <(echo group.id=test1)