Skip to content

Commit

Permalink
quick fixes after Current preso
Browse files Browse the repository at this point in the history
- use AK official image (fix path to tools)
- added superset container
  • Loading branch information
gAmUssA committed Sep 30, 2024
1 parent 40e7adf commit 80390fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 02_pinot-kafka/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ create:
@printf "$(GREEN)✔$(NC) 🪲 Kafka is ready!\n"

topic:
docker exec kafka kafka-topics.sh \
docker exec uncorking-pinot-kafka kafka-topics.sh \
--bootstrap-server localhost:9092 \
--create \
--topic movie_ratings
Expand Down
1 change: 1 addition & 0 deletions 02_pinot-kafka/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ services:
timeout: 10s
retries: 10
environment:
- PATH=/opt/kafka/bin:$PATH
# KRaft settings
- KAFKA_NODE_ID=0
- KAFKA_PROCESS_ROLES=controller,broker
Expand Down
10 changes: 8 additions & 2 deletions 03_pinot-kafka-flink/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GREEN=\033[0;32m
NC=\033[0m # No Color

base: create topic tables validate info
base: create topic tables validate superset-setup info

create:
docker compose build --no-cache
Expand Down Expand Up @@ -51,7 +51,7 @@ create:
@printf "$(GREEN)✔$(NC) 🪲 Kafka is ready!\n"

topic:
docker exec kafka kafka-topics.sh \
docker exec uncorking-pinot-kafka kafka-topics.sh \
--bootstrap-server localhost:9092 \
--create \
--topic rated_movies
Expand Down Expand Up @@ -79,11 +79,17 @@ validate:
exit 1; \
fi; \

superset-setup:
docker exec superset-pinot superset fab create-admin --username admin --firstname Superset --lastname Admin --email admin@superset.com --password admin
docker exec superset-pinot superset db upgrade
docker exec superset-pinot superset init

info:
@printf "\n==========================================================\n"
@printf "🍷 Pinot Query UI: \033[4mhttp://localhost:9000\033[0m\n"
@printf "🦊 Redpanda Console: \033[4mhttp://localhost:9080\033[0m\n"
@printf "🐿️ Flink Console: \033[4mhttp://localhost:8081\033[0m\n"
@printf "📊 Superset Dashboard \033[4mhttp://localhost:8088\033[0m\n"
@printf "==========================================================\n"

destroy:
Expand Down
1 change: 1 addition & 0 deletions 03_pinot-kafka-flink/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ services:
timeout: 10s
retries: 10
environment:
- PATH=/opt/kafka/bin:$PATH
# KRaft settings
- KAFKA_NODE_ID=0
- KAFKA_PROCESS_ROLES=controller,broker
Expand Down

0 comments on commit 80390fa

Please sign in to comment.