Skip to content

Commit 136dc6c

Browse files
committedApr 23, 2022
Fix Kafka setup
1 parent 529df96 commit 136dc6c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ services:
105105
SAT_PROCESSING_DELAY: 0.010
106106
RELAY_PROCESSING_DELAY: 0.012
107107
VIEW_ANGLE: 70
108-
command: python main.py start
108+
#command: python main.py start
109109
command: /wait-for-it.sh memgraph:7687 -- python main.py start
110110
depends_on:
111111
- core

‎memgraph/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM memgraph/memgraph
1+
FROM memgraph/memgraph:2.2.1
22

33
USER root
44

‎simulator/simulator/setup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ def run(memgraph, kafka_ip, kafka_port):
7171
memgraph.drop_database()
7272
log.info("Creating stream connections on Memgraph")
7373
memgraph.execute(
74-
"CREATE STREAM satellite_stream TOPICS satellite TRANSFORM starlink.satellite")
74+
"CREATE KAFKA STREAM satellite_stream TOPICS satellite TRANSFORM starlink.satellite")
7575
memgraph.execute("START STREAM satellite_stream")
7676
memgraph.execute(
77-
"CREATE STREAM city_stream TOPICS city TRANSFORM starlink.city")
77+
"CREATE KAFKA STREAM city_stream TOPICS city TRANSFORM starlink.city")
7878
memgraph.execute("START STREAM city_stream")
7979
memgraph.execute(
80-
"CREATE STREAM visible_from_stream TOPICS visible_from TRANSFORM starlink.visible_from")
80+
"CREATE KAFKA STREAM visible_from_stream TOPICS visible_from TRANSFORM starlink.visible_from")
8181
memgraph.execute("START STREAM visible_from_stream")
8282
memgraph.execute(
83-
"CREATE STREAM delete_visible_from_stream TOPICS delete_visible_from TRANSFORM starlink.delete_visible_from")
83+
"CREATE KAFKA STREAM delete_visible_from_stream TOPICS delete_visible_from TRANSFORM starlink.delete_visible_from")
8484
memgraph.execute("START STREAM delete_visible_from_stream")
8585
memgraph.execute(
86-
"CREATE STREAM laser_link_stream TOPICS laser_link TRANSFORM starlink.laser_link")
86+
"CREATE KAFKA STREAM laser_link_stream TOPICS laser_link TRANSFORM starlink.laser_link")
8787
memgraph.execute("START STREAM laser_link_stream")
8888
except Exception as e:
8989
log.info(f"Error on stream creation: {e}")

0 commit comments

Comments
 (0)
Please sign in to comment.