Created
September 25, 2022 03:24
-
-
Save garystafford/a13770f43fb6869c892bb55d450723c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy pinot table schema and config files to pinot controller | |
CONTROLLER_CONTAINER=$(docker container ls --filter name=streaming-stack_pinot-controller.1 --format "{{.ID}}") | |
cd ~/streaming-sales-generator/apache_pinot_examples | |
docker cp configs_schemas/ ${CONTROLLER_CONTAINER}:/tmp/ | |
# create three tables | |
docker exec -it ${CONTROLLER_CONTAINER} \ | |
bin/pinot-admin.sh AddTable \ | |
-tableConfigFile /tmp/configs_schemas/purchases-config.json \ | |
-schemaFile /tmp/configs_schemas/purchases-schema.json -exec | |
docker exec -it ${CONTROLLER_CONTAINER} \ | |
bin/pinot-admin.sh AddTable \ | |
-tableConfigFile /tmp/configs_schemas/products-config.json \ | |
-schemaFile /tmp/configs_schemas/products-schema.json -exec | |
docker exec -it ${CONTROLLER_CONTAINER} \ | |
bin/pinot-admin.sh AddTable \ | |
-tableConfigFile /tmp/configs_schemas/purchases-enriched-config.json \ | |
-schemaFile /tmp/configs_schemas/purchases-enriched-schema.json -exec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment