Created
January 25, 2018 13:23
-
-
Save oivoodoo/5f73a7dbfadd7c1932ffaeedca1fb1e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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