Introduction to Apache Kafka
Mike Metzger
Data Engineering Consultant
ordrs
instead of orders
)$ bin/kafka-topics.sh --bootstrap-server localhost:9092 --list
orders
$ echo "Test message" | bin/kafka-console-producer.sh
--bootstrap-server localhost:9092 \
--topic ordrs
$ bin/kafka-topics.sh --bootstrap-server localhost:9092 --list
orders
ordrs
bin\kafka-topics.sh --bootstrap-server localhost:9092 --list
WARN [AdminClient clientId=adminclient-1]
Connection to node -1 (localhost/127.0.0.1:9092) could not be established.
Node may not be available. (org.apache.kafka.clients.NetworkClient)
ps ax | grep kafka
, netstat -tlnp | grep 9092
)--from-beginning
if you need older messages--max-messages
to only read a specific message quantity--bootstrap-server
--help
option to get further detailsIntroduction to Apache Kafka