We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5851fca commit 4b085baCopy full SHA for 4b085ba
docker-compose.yml
@@ -50,7 +50,7 @@ services:
50
- PYTHONUNBUFFERED=1
51
volumes:
52
- ./py:/home/
53
- command: bash -c "pip install kafka-python && python /home/parse-engine.py"
+ command: bash -c "pip install kafka-python && python /home/consume.py"
54
depends_on:
55
- kafka
56
restart: always
py/parse-engine.py renamed to py/consume.py
@@ -1,12 +1,10 @@
1
from kafka import KafkaConsumer
2
-import json
3
4
try:
5
- print('Welcome to parse engine')
+ print('Hello. I am about to consume maxwell messages...')
6
consumer = KafkaConsumer('maxwell', bootstrap_servers='kafka:9092')
7
for message in consumer:
8
print(message)
9
except Exception as e:
10
print(e)
11
- # Logs the error appropriately.
12
pass
0 commit comments