https://github.com/codewithkyle/kafka-csharp-prototype
Apache Kafka C# Prototype
https://github.com/codewithkyle/kafka-csharp-prototype
Last synced: 9 months ago
JSON representation
Apache Kafka C# Prototype
- Host: GitHub
- URL: https://github.com/codewithkyle/kafka-csharp-prototype
- Owner: codewithkyle
- Created: 2023-04-12T21:58:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T22:06:54.000Z (over 2 years ago)
- Last Synced: 2025-03-11T14:52:22.138Z (9 months ago)
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### Server Setup:
**Update Kafka**
```
vi config/server.properties
```
```
advertised.listeners=PLAINTEXT://PUBLIC_IP:9092
log.dirs=/var/log/kafka
```
**Update ZooKeeper**
```
vi config/zookeeper.properties
```
```
dataDir=/var/log/zookeeper
```
### Create daemons:
**ZooKeeper**
```
sudo vi /etc/systemd/system/zookeeper.service
```
```
[Unit]
Description=Apache ZooKeeper Server
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
User=root
ExecStart=/root/kafka/bin/zookeeper-server-start.sh /root/kafka/config/zookeeper.properties
ExecStop=/root/kafka/bin/zoookeeper-server-stop.sh
Restart=on-failure
[Install]
WantedBy=multi-user.target
```
**Kafka**
```
sudo vi /etc/systemd/system/kafka.service
```
```
[Unit]
Description=Apache Kafka Server
Requires=network.target remote-fs.target
After=network.target remote-fs.target zookeeper.service
[Service]
Type=simple
User=root
ExecStart=/root/kafka/bin/kafka-server-start.sh /root/kafka/config/server.properties
ExecStop=/root/kafka/bin/kafka-server-stop.sh
Restart=on-failure
[Install]
WantedBy=multi-user.target
```