Skip to content

Commit

Permalink
Short script to fetch logs from server after profiling and exclude ou…
Browse files Browse the repository at this point in the history
…t folder from git tracking
  • Loading branch information
bh2smith committed Nov 21, 2018
1 parent b161415 commit 8268b56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.idea
.project
.settings
out/*
target
dizk.iml
9 changes: 9 additions & 0 deletions src/main/java/profiler/scripts/fetch_logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

. init.sh

# Get master node URL
readonly MASTER=`$SPARK_EC2_PATH -k $AWS_KEYPAIR_NAME -i $AWS_KEYPAIR_PATH --region=$AWS_REGION_ID get-master $AWS_CLUSTER_NAME | grep amazonaws.com`

# Transfer logs back to local
scp -i $AWS_KEYPAIR_PATH -r ec2-user@$MASTER:/tmp/spark-events/src/main/resources/logs/ $DIZK_REPO_PATH/out/

0 comments on commit 8268b56

Please sign in to comment.