aws emr create-default-roles
docker build -t emr-spot-example .
docker build -t emr-spot-example .
docker run --rm -it \
-e AWS_ACCESS_KEY_ID="" \
-e AWS_SECRET_ACCESS_KEY="" \
-e AWS_REGION="" \
-e EC2_KEY_NAME="" \
-e EC2_SUBNETS_IDs="" \ # comma-separated values
-v $(pwd)/.m2:/root/.m2 \
-v $(pwd):/app \
emr-spot-example bash
Once inside the container, run:
./run_example.sh