Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created January 25, 2018 13:23
Show Gist options
  • Save oivoodoo/5f73a7dbfadd7c1932ffaeedca1fb1e5 to your computer and use it in GitHub Desktop.
Save oivoodoo/5f73a7dbfadd7c1932ffaeedca1fb1e5 to your computer and use it in GitHub Desktop.
#!/bin/sh
APPLICATION_ID=$2
CLUSTER_ID=$1
ENV=$3
(mkdir $CLUSTER_ID || true) && cd $CLUSTER_ID
echo "aws s3 cp s3://bworks-bi-emr-logs/$ENV/spark/$CLUSTER_ID/containers/$APPLICATION_ID/ . --recursive --profile blastworks"
aws s3 cp s3://bworks-bi-emr-logs/$ENV/spark/$CLUSTER_ID/containers/$APPLICATION_ID/ . --recursive --profile blastworks
# Example
./download.sh j-2D3YJAL0P0WHC application_1516700638884_0040 staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment