I'm using CDH 5.16.0. and I'm trying to execute a simple Oozie workflow for inserting data from one hive table to other.Hive script (hive -f script.hql) ran through CLI is working fine. But the same hql script got hung only while executing "insert into table prod1 select * from prod" hive command through Oozie workflow. Oozie job scheduler always appear in a RUNNING state at the WorkflowManager console with no progress.I finally have to kill the job.This Oozie job hungis coming only for executing "insert into"Hive command.
I noticed you are using a quickstart VM, from your nameNode name (hdfs://quickstart.cloudera:8020) in your job.properties. Most likely, when the oozie launcher launches and stays in RUNNING status, but no further additional hive job launches, yarn does not have enough resources to launch an additional job. Please take a look at the Yarn Resource Manager role log and Yarn Resource Manager scheduler page for clues. This could be due to lack of memory (AM, nodemanager, or scheduler), vcores, or several other factors in yarn tuning. The quickstart VM is tuned for a very small demo environment. You may need to add additional memory to the VM and/or cores, then tune yarn to have more resources for the second hive job from oozie to launch. I will provide a link to a blog to aid you in this tuning below.