Execute shell script as one of the steps on EMR

Execute shell script as one of the steps on EMR

We are thinking to migrate our Hadoop infrastructure from Data Center to AWS EMR. As some of the tasks / stages in ETL process are dependent e.g. flow is like
Map Reduce job will generate data
Shell ...