0% found this document useful (0 votes)
18 views

Kafka Practicals

Uploaded by

Namma ooru
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Kafka Practicals

Uploaded by

Namma ooru
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

BIGDATA

KAFKA
In First terminal

cd kafka_2.10-0.8.2.0

bin/zookeeper-server-start.sh config/zookeeper.properties

In another terminal

cd kafka_2.10-0.8.2.0

bin/kafka-server-start.sh config/server.properties

1 [email protected]
99520 29030
BIGDATA
Topic Creation

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --


topic kafkatest

View List of Topics

bin/kafka-topics.sh --list --zookeeper localhost:2181

2 [email protected]
99520 29030
BIGDATA
Producer Creation

bin/kafka-console-producer.sh --broker-list localhost:9092 --topic kafkatest

This is a sample message for testing

Using Kafkatest topic

Consumer Creation

bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic kafkatest --from-beginning

3 [email protected]
99520 29030

You might also like