From f8df7cad3d8c808f02cafe20bad5990aaca7af32 Mon Sep 17 00:00:00 2001 From: Ivan Orlov Date: Mon, 15 Sep 2014 20:07:39 -0700 Subject: [PATCH] Add force flag to emrterminate --- setenv.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setenv.sh b/setenv.sh index 2945be0..4c4650d 100644 --- a/setenv.sh +++ b/setenv.sh @@ -110,7 +110,9 @@ function emrstat { } function emrterminate { + if [ "$1" == -f ]; then f=1; shift; fi FLOW_ID=`flowid $1` + [ -n "$f" ] && emr -j $FLOW_ID --set-termination-protection false emr -j $FLOW_ID --terminate export EMR_FLOW_ID="" }