I am totally a squat in Kafka land
If I run the command
/cfintools/confluent-4.0.0/bin/kafka-avro-console-consumer --topic $t --bootstrap-server $bt --consumer.config /cfintools/avro_consumer_ssl_cfin_prod.properties --property schema.registry.url=$regd --from-beginning
the thing just takes forever to return. No error but no data either.
All I want is the latest 10 messages in that topic and I read about partition and offsets . Now I dont know how n the world should I go about getting this info
Some other place I read about this command
./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group count_errors --describe
But I dont know my consumer group. I just know a topic name and other parameters mentioned in the 1st command
So with this ltd info how do I get the last 10 odd messages in the topic searching only a specific partition and offset or any other way
I tried to use the kt tool
$ ./kt topic -brokers $bk -filter $t -partitions -leaders -replicas
failed to create client err=kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
I know the brokers are valid because I m using them
What I want most kindly :
- get
partitionand offsets in most straightforward manner without any additional info like consumer group - Any other approach to automatically search last 10
messages- that partition and offset and fetch - any GUI based tool that will prevent me from becoming mad