Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/git-jaforiqbal/kafka-installation
https://github.com/git-jaforiqbal/kafka-installation
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/git-jaforiqbal/kafka-installation
- Owner: git-JaforIqbal
- Created: 2023-09-09T10:13:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:22:33.000Z (about 1 year ago)
- Last Synced: 2023-09-09T11:27:01.784Z (about 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kafka-installation
### Kafka Default Port
```Zookeeper Port : 2181```
```Kafka Server/Broker Port : 9092```# Command CLI:
### Start the ZooKeeper service
```bin/zookeeper-server-start.sh config/zookeeper.properties```### Start the Kafka broker service
```bin/kafka-server-start.sh config/server.properties```### To Create a kafka Topic:
```bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic connect-plus-user-management --partitions 3 --replication-factor 1```### To Get The List Of kafka Topic:
```bin/kafka-topics.sh --bootstrap-server localhost:9092 --list```### To Get Details Of a kafka Topic:
```bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic connect-plus-user-management```### To Produce a Message :
```bin/kafka-console-producer.sh --broker-list localhost:9092 --topic connect-plus-user-management```### To Check Consumer on a Specific Topic Message :
```bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic connect-plus-user-management --from-beginning```# Commands For Docker Env
### Move into Kafka container for docker
```docker exec -it /bin/sh```
### Go inside kafka installation folder
```cd /opt/kafka_/bin```