0% found this document useful (0 votes)
43 views1 page

E 0

fresco

Uploaded by

Se Sathya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

E 0

fresco

Uploaded by

Se Sathya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

h2

nohup /opt/kafka_2.11-0.10.1.0/bin/kafka-server-start.sh /opt/kafka_2.11-


0.10.1.0/config/server.properties > /opt/kafka_2.11-0.10.1.0/kafka.log 2>&1 &

cat /opt/kafka_2.11-0.10.1.0/kafka.log | grep port

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


--partitions 1 --topic FirstTopic

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

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


beginning --consumer-property group.id=MyGroup

list the topiCs

/opt/kafka_2.11-0.10.1.0# bin/kafka-topics.sh --list --zookeeper localhost:2181

You might also like