I am using below script to setup Dr Elephant and Sparklens on EMR. I am using EMR version- 5.25-
set -x -e # check for master node IS_MASTER=false if grep isM