Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Running EMR using AWS Java v2 SDK

Setting up default roles

aws emr create-default-roles

Build the docker image

docker build -t emr-spot-example .

Run the application

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