Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active December 28, 2022 18:13
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/9aca3afd9b19b7db21005dfde6416248 to your computer and use it in GitHub Desktop.
Save garystafford/9aca3afd9b19b7db21005dfde6416248 to your computer and use it in GitHub Desktop.
# cd into project
cd streaming-sales-generator/
# initialize swarm stack - 1x only
docker swarm init
# optional: delete previous streaming-stack
docker stack rm streaming-stack
# deploy first streaming-stack
docker stack deploy streaming-stack --compose-file docker/spark-kstreams-stack.yml
# observe the deployment's progress
docker stack services streaming-stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment