如何自动重新运行Oozie中失败的动作? [英] How to auto rerun of failed action in oozie?

查看:471
本文介绍了如何自动重新运行Oozie中失败的动作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何自动重新运行工作流程中失败的任何操作?

How can I re-run any action which was failed in the workflow automatically?

我知道从命令行或彻底的色调手动重新运行的方法.

I know the way to rerun manually from command line or thorough hue.

$oozie job -rerun ...

我们可以在工作流程中设置或提供任何参数以在操作失败时自动重试吗?

Is there any parameter we can set or provide in workflow to retry automatically when action fails?

推荐答案

在大多数情况下,当Oozie工作流程中的操作失败时,您需要调试并修复错误并重新运行工作流程.但是有时候,当您希望Oozie在一定间隔后重试该操作时,需要进行固定的次数才能使工作流程失败.您可以在操作定义中指定retry-maxretry-interval.

Most of the time, when an action fails in the Oozie workflow, you need to debug and fix the error and rerun the workflow. But there are times, when you want Oozie to retry the action after an interval, for fixed number of times before failing the workflow. You can specify the retry-max and retry-interval in the action definition.

工作流程操作中的用户重试"示例为:

Examples of User-Retry in a workflow action is :

<workflow-app xmlns="uri:oozie:workflow:0.5" name="wf-name">
<action name="a" retry-max="2" retry-interval="1">
.... 
</action>

您可以找到有关用户-在链接中重试工作流操作.

这篇关于如何自动重新运行Oozie中失败的动作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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