Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created September 25, 2022 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/a13770f43fb6869c892bb55d450723c5 to your computer and use it in GitHub Desktop.
Save garystafford/a13770f43fb6869c892bb55d450723c5 to your computer and use it in GitHub Desktop.
# 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