Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: E0708 : E0708: Invalid transition

Using this tutorial i created workflow for hive script but gives me error when i run below command:

 oozie job -oozie http://xxx.xx.xx.xx:11000/oozie -config  /home/ec2-user/ankit/oozie_job1/job.properties -submit

Error which i get is this :

Error: E0708 : E0708: Invalid transition, node [Oozie_test] transition [Tester]

My workflow code is below:

<workflow-app name="Tester" xmlns="uri:oozie:workflow:0.1">
<start to="Oozie_test"/>
<action name="Oozie_test">
<hive xmlns="uri:oozie:hive-action:0.2">
 <job-tracker>xxx.xx.xx.xx:8021</job-tracker>
 <name-node>xxx.xx.11.xx:8020</name-node>
 <configuration>
    <property>
         <name>oozie.hive.defaults</name>
         <value>/home/ec2-user/ankit/oozie_job1/hive-default.xml</value>
    </property>
 </configuration>
 <script>hive_job1.hql</script>
</hive>
<ok to="Tester"/>
<error to="fail"/>
</action>
<end name="end"/>
</workflow-app>

As this being my first oozie workflow,i am not able to get where exactly i am going wrong or what i have missed.

I tried to search the solution for this on internet but couldn't find any luck.

Please let me know how to solve this error and what other info is required from my side.

like image 228
Ankit Agrahari Avatar asked Dec 18 '22 16:12

Ankit Agrahari


1 Answers

In case of successful execution of action (hive), transition (ok) is to the node Tester, but you do not have any node named Tester. That is the error.

Ideally, if you have just one action in your workflow, then successful execution of the action should go to end, which you have already defined in your workflow but did not use it. In case of failure you want to transit to kill node, which is missing in your workflow. You need to add an kill node and transit you hive action to it, in case of failure/error.

@charantej provided a correct workflow.

like image 153
YoungHobbit Avatar answered Dec 21 '22 09:12

YoungHobbit