错误:E0708:E0708:无效的转换 [英] Error: E0708 : E0708: Invalid transition

查看:108
本文介绍了错误:E0708:E0708:无效的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此教程我为蜂巢脚本创建了工作流,但运行时却出现错误下面的命令:

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 :

错误:E0708:E0708:转换无效,节点[Oozie_test]转换[Tester]

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>

因为这是我的第一个oozie工作流程,所以我无法准确知道我要去哪里或我错过了什么.

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

我试图在Internet上搜索解决方案,但是找不到任何运气.

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.

推荐答案

如果成功执行动作(hive),则向节点 Tester ok )>,但是您没有任何名为 Tester 的节点.那是错误.

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.

理想情况下,如果您的工作流程中只有一个动作,则该动作的成功执行应转到您已经在工作流程中定义但未使用的 end .如果发生故障,您想转移到工作流中缺少的 kill 节点.如果出现故障/错误,您需要添加一个 kill 节点并向其传递配置单元操作.

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提供了正确的工作流程.

@charantej provided a correct workflow.

这篇关于错误:E0708:E0708:无效的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆