Skip to content

Commit 9d57b49

Browse files
committed
Update Amazon books topic
1 parent b6437cd commit 9d57b49

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

data-analysis/amazon-books-memgraph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def connect_to_memgraph(memgraph_ip, memgraph_port):
2323

2424
def set_stream(memgraph):
2525
log.info("Creating stream connections on Memgraph")
26-
memgraph.execute("CREATE KAFKA STREAM ratings_stream TOPICS ratings TRANSFORM amazon_books.book_ratings BOOTSTRAP_SERVERS 'kafka:9092' CREDENTIALS {'sasl.username':'public', 'sasl.password':'public', 'security.protocol':'SASL_PLAINTEXT', 'sasl.mechanism':'PLAIN'};")
26+
memgraph.execute("CREATE KAFKA STREAM ratings_stream TOPICS book-ratings TRANSFORM amazon_books.book_ratings BOOTSTRAP_SERVERS 'kafka:9092' CREDENTIALS {'sasl.username':'public', 'sasl.password':'public', 'security.protocol':'SASL_PLAINTEXT', 'sasl.mechanism':'PLAIN'};")
2727
memgraph.execute("START STREAM ratings_stream;")
2828

2929
# TODO: What to do when a new object is created

docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ services:
166166
env_file:
167167
platform_variables.env
168168
environment:
169-
KAFKA_TOPIC: "ratings"
170-
REDPANDA_TOPIC: "ratings"
171-
RABBITMQ_QUEUE: "ratings"
172-
PULSAR_TOPIC: "ratings"
169+
KAFKA_TOPIC: "book-ratings"
170+
REDPANDA_TOPIC: "book-ratings"
171+
RABBITMQ_QUEUE: "book-ratings"
172+
PULSAR_TOPIC: "book-ratings"
173173
networks:
174174
- app-tier
175175

0 commit comments

Comments
 (0)