some things done
This commit is contained in:
3
kafka/consumer.py
Normal file
3
kafka/consumer.py
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
from datetime import datetime
|
||||
|
20
kafka/docker-compose.yml
Normal file
20
kafka/docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: "3"
|
||||
services:
|
||||
zookeeper:
|
||||
image: 'bitnami/zookeeper:latest'
|
||||
ports:
|
||||
- '2181:2181'
|
||||
environment:
|
||||
- ALLOW_ANONYMOUS_LOGIN=yes
|
||||
kafka:
|
||||
image: 'bitnami/kafka:latest'
|
||||
ports:
|
||||
- '9092:9092'
|
||||
environment:
|
||||
- KAFKA_BROKER_ID=1
|
||||
- KAFKA_LISTENERS=PLAINTEXT://:9092
|
||||
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
|
||||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
|
||||
- ALLOW_PLAINTEXT_LISTENER=yes
|
||||
depends_on:
|
||||
- zookeeper
|
1
kafka/publisher.py
Normal file
1
kafka/publisher.py
Normal file
@ -0,0 +1 @@
|
||||
#!/usr/bin/env python3
|
Reference in New Issue
Block a user