Skip to content

Commit 4b085ba

Browse files
author
N. Mert Aydin (he.him)
committed
consume
1 parent 5851fca commit 4b085ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ services:
5050
- PYTHONUNBUFFERED=1
5151
volumes:
5252
- ./py:/home/
53-
command: bash -c "pip install kafka-python && python /home/parse-engine.py"
53+
command: bash -c "pip install kafka-python && python /home/consume.py"
5454
depends_on:
5555
- kafka
5656
restart: always
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from kafka import KafkaConsumer
2-
import json
32

43
try:
5-
print('Welcome to parse engine')
4+
print('Hello. I am about to consume maxwell messages...')
65
consumer = KafkaConsumer('maxwell', bootstrap_servers='kafka:9092')
76
for message in consumer:
87
print(message)
98
except Exception as e:
109
print(e)
11-
# Logs the error appropriately.
1210
pass

0 commit comments

Comments
 (0)