![]() ![]() Run the following command to start a Kafka Producer in a different terminal, using the console interface, subscribed to TestingTopic $ bin/kafka-console-producer.sh -broker-list localhost:9092 -topic TestingTopic ![]() Run the following command to start a Kafka Producer in a different terminal, using the console interface, writing to TestingTopic. Step 3: Start the Kafka Console Producer. $ bin/kafka-topics.sh -create -zookeeper localhost:2181 -replication-factor 1 -partitions 1 -topic TestingTopic $ bin/kafka-server-start.sh config/server.propertiesĬreate a topic named TestingTopic by running the following command. $ bin/zookeeper-server-start.sh config/zookeeper.properties Go to the root of the Kafka directory and run each of the following commands in separate terminals to start Zookeeper and Kafka Cluster, respectively. Step 1: Start Zookeeper and Kafka Cluster Install Ubuntu in the virtual machine click here. ![]() Step 4: Start the Kafka Console Consumer.Step 3: Start the Kafka Console Producer.Step 1: Start Zookeeper and Kafka Cluster.Recipe Objective: How to execute Kafka console commands console consumer and console producer?. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |