In CloudFormation template I am creating an EMR cluster and have added 2 Hive steps using AWS::EMR::Step resource.

1. First step contain - HIVE DDL statement
2. Second Step contains - HIVE DML statement

I am creating Stack by passing CloudFormation template to it. But while EMR creation, many times second step executes first having all DML statements and it fails since DB & table schema is not present.

I want to set priority so that everytime HIVE DDL step executes first.
Appreciate your help on this.