Submit Search
Upload
Quick reference for kafka
•
Download as TXT, PDF
•
1 like
•
874 views
Rajkumar Asohan, PMP
Follow
Cheat Sheet for Kafka
Read less
Read more
Education
Report
Share
Report
Share
1 of 2
Download now
Recommended
Quick reference for sqoop
Quick reference for sqoop
Rajkumar Asohan, PMP
Quick reference for hql
Quick reference for hql
Rajkumar Asohan, PMP
Wk2 assign
Wk2 assign
onelooking
Orastat line command
Orastat line command
albertinous
ApacheCon-Flume-Kafka-2016
ApacheCon-Flume-Kafka-2016
Jayesh Thakrar
Apache Spark & Scala
Apache Spark & Scala
Edureka!
Flume vs. kafka
Flume vs. kafka
Omid Vahdaty
HealthSimple™ Brand Book
HealthSimple™ Brand Book
Mark Saunders
Recommended
Quick reference for sqoop
Quick reference for sqoop
Rajkumar Asohan, PMP
Quick reference for hql
Quick reference for hql
Rajkumar Asohan, PMP
Wk2 assign
Wk2 assign
onelooking
Orastat line command
Orastat line command
albertinous
ApacheCon-Flume-Kafka-2016
ApacheCon-Flume-Kafka-2016
Jayesh Thakrar
Apache Spark & Scala
Apache Spark & Scala
Edureka!
Flume vs. kafka
Flume vs. kafka
Omid Vahdaty
HealthSimple™ Brand Book
HealthSimple™ Brand Book
Mark Saunders
Quick reference for Grafana
Quick reference for Grafana
Rajkumar Asohan, PMP
Quick reference for solr
Quick reference for solr
Rajkumar Asohan, PMP
Quick reference for spark sql
Quick reference for spark sql
Rajkumar Asohan, PMP
Quick reference for mongo shell commands
Quick reference for mongo shell commands
Rajkumar Asohan, PMP
Quick reference for zookeeper commands
Quick reference for zookeeper commands
Rajkumar Asohan, PMP
Quick reference for HBase shell commands
Quick reference for HBase shell commands
Rajkumar Asohan, PMP
Quick reference for curl
Quick reference for curl
Rajkumar Asohan, PMP
Quick reference for cql
Quick reference for cql
Rajkumar Asohan, PMP
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
National Information Standards Organization (NISO)
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
RKavithamani
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
RoyAbrique
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
RAM LAL ANAND COLLEGE, DELHI UNIVERSITY.
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Thiyagu K
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
SafetyChain Software
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Sapana Sha
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
misteraugie
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Maestría en Comunicación Digital Interactiva - UNR
More Related Content
More from Rajkumar Asohan, PMP
Quick reference for Grafana
Quick reference for Grafana
Rajkumar Asohan, PMP
Quick reference for solr
Quick reference for solr
Rajkumar Asohan, PMP
Quick reference for spark sql
Quick reference for spark sql
Rajkumar Asohan, PMP
Quick reference for mongo shell commands
Quick reference for mongo shell commands
Rajkumar Asohan, PMP
Quick reference for zookeeper commands
Quick reference for zookeeper commands
Rajkumar Asohan, PMP
Quick reference for HBase shell commands
Quick reference for HBase shell commands
Rajkumar Asohan, PMP
Quick reference for curl
Quick reference for curl
Rajkumar Asohan, PMP
Quick reference for cql
Quick reference for cql
Rajkumar Asohan, PMP
More from Rajkumar Asohan, PMP
(8)
Quick reference for Grafana
Quick reference for Grafana
Quick reference for solr
Quick reference for solr
Quick reference for spark sql
Quick reference for spark sql
Quick reference for mongo shell commands
Quick reference for mongo shell commands
Quick reference for zookeeper commands
Quick reference for zookeeper commands
Quick reference for HBase shell commands
Quick reference for HBase shell commands
Quick reference for curl
Quick reference for curl
Quick reference for cql
Quick reference for cql
Recently uploaded
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
National Information Standards Organization (NISO)
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
RKavithamani
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
RoyAbrique
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
RAM LAL ANAND COLLEGE, DELHI UNIVERSITY.
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Thiyagu K
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
SafetyChain Software
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Sapana Sha
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
misteraugie
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Maestría en Comunicación Digital Interactiva - UNR
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
Sakshi Ghasle
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
Sayali Powar
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
sanyamsingh5019
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Maksud Ahmed
Recently uploaded
(20)
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Quick reference for kafka
1.
******************************************************************************** ***************************************************** Single Broker Cluster ******************************************************************************** ***************************************************** Start
Zookeeper [seperate terminal] --------------- bin/zookeeper-server-start.sh config/zookeeper.properties Start Kafka broker [seperate terminal] ------------------ bin/kafka-server-start.sh config/server.properties ________________________________________________________________________________ _____________________________________________________ Create Topic ------------ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic testtopic List Topic ---------- bin/kafka-topics.sh --list --zookeeper localhost:2181 Display Topic Information ------------------------- bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic testtopic Add Partitions to a Topic ------------------------- bin/kafka-topics.sh --alter --zookeeper localhost:2181 --topic testopic --partitions 2 ________________________________________________________________________________ _____________________________________________________ Start Producer [seperate terminal] -------------- bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testtopic Start Consumer [seperate terminal] -------------- bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from- beginning ________________________________________________________________________________ _____________________________________________________ Note: To understand the flow refer Kafka Tutorial.mp4 ******************************************************************************** ***************************************************** Multi Broker Cluster ******************************************************************************** ***************************************************** Create config file for 2 more Kafka Brokers ------------------------------------------- cp config/server.properties config/server-1.properties cp config/server.properties config/server-2.properties Edit config file 2 Kafka Brokers created above ---------------------------------------------- config/server-1.properties: broker.id=1 port=9093
2.
log.dir=/tmp/kafka-logs-1 config/server-2.properties: broker.id=2 port=9094 log.dir=/tmp/kafka-logs-2 Start 2 newly
created Kafka Brokers [seperate terminal] ----------------------------------- JMX_PORT=9997 bin/kafka-server-start.sh config/server-1.properties & JMX_PORT=9998 bin/kafka-server-start.sh config/server-2.properties & Create Topic ------------ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic my-replicated-topic List Topic ---------- bin/kafka-topics.sh --list --zookeeper localhost:2181 Start Producer [seperate terminal] -------------- bin/kafka-console-producer.sh --broker-list localhost:9092 --topic my- replicated-topic Start Consumer [seperate terminal] -------------- bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic my-replicated-topic Kill one of the Kafka Brokers ----------------------------- pkill -9 -f server-1.properties List Topic ---------- bin/kafka-topics.sh --list --zookeeper localhost:2181 Start Consumer [seperate terminal] -------------- bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic my-replicated-topic
Download now