$ bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092
>This is my first event
[2024-04-09 00:57:37,685] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 6 : {quickstart-events=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
>Is there ?
>This is my second event
>This is realtime event publishing
Event read 해보기
$ bin/kafka-console-consumer.sh --topic quickstart-events --from-beginning --bootstrap-server localhost:9092
This is my first event
Is there ?
This is my second event
This is realtime event publishing
MacOS
GROUP TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG CONSUMER-ID HOST CLIENT-ID console-consumer-80282 quickstart-events 0 - 4 - console-consumer-e1a1fbfc-acca-4b72-aee2-cea8219d4e54 /192.168.219.102 console-consumer