Login in via ssh to compute:
ssh ec2-user@publicip
cd ksqldbWorkshop-main/docker/
docker ps
All container should be healthy and running.
Open URL in Browser
- from your local machine connecting to cloud http://publicip:9021/
You should see in Control Center
- a running cluster
- three connectors are running
- 1 KSQL APP is running
- three topics AML_Status, Funds_Status, Payment_Instruction are created and some internal topics.
Open your terminal app (cloud setup to be first login via ssh) and create additional topics, we use them later in workshop:
docker exec -it workshop-kafka kafka-topics --create --topic orders --bootstrap-server localhost:9092
docker exec -it workshop-kafka kafka-topics --create --topic shipments --bootstrap-server localhost:9092
docker exec -it workshop-kafka kafka-topics --create --topic inventory --bootstrap-server localhost:9092
docker exec -it workshop-kafka kafka-topics --create --topic shipment_status --bootstrap-server localhost:9092
docker exec -it workshop-kafka kafka-topics --create --topic transactions --bootstrap-server localhost:9092
For some topics we prepared some data files to loaded into Kafka. These files are used to produce data into topics. Later we will also use connectors and INSERT Statements
:
# produce data orders
docker exec -it workshop-kafka bash -c 'cat /produce-data/orders.json | kafka-console-producer --topic orders --broker-list localhost:9092 --property "parse.key=true" --property "key.separator=:"'
# produce data shipments
docker exec -it workshop-kafka bash -c 'cat /produce-data/shipments.json | kafka-console-producer --topic shipments --broker-list localhost:9092 --property "parse.key=true" --property "key.separator=:"'
# produce data shipment statuses
docker exec -it workshop-kafka bash -c 'cat /produce-data/shipment_status.json | kafka-console-producer --topic shipment_status --broker-list localhost:9092 --property "parse.key=true" --property "key.separator=:"'
# produce data transactions
docker exec -it workshop-kafka bash -c 'cat /produce-data/transactions.json | kafka-console-producer --topic transactions --broker-list localhost:9092 --property "parse.key=true" --property "key.separator=:"'