我可以动态地重命名oozie作业名称吗? [英] Can I rename the oozie job name dynamically

查看:121
本文介绍了我可以动态地重命名oozie作业名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Hadoop服务,我们有多个应用程序。我们需要通过重新执行相同的工作流程来处理每个应用程序的数据。这些计划将在一天的同一时间执行。问题是当这些作业运行时很难知道作业运行/失败/成功的应用程序。当然,我可以打开工作配置并知道它,但这需要时间,因为有10个应用程序在该服务下运行。

We have a Hadoop service in which we have multiple applications. We need to process the data for each of the applications by reexecuting the same workflow. These are scheduled to execute at the same time of the day. The issue is that when these jobs are running its hard to know for which application the job is running/failed/succeeded. Ofcourse, I can open the job coonfiguration and know it but that does take time since there are 10s of applications running under that service.

oozie中有任何选项可以动态在执行作业时传递工作流的名称(或其一部分),例如

Is there any option in oozie to dynamically pass the name of the workflow (or part of it) when executing the job such as

oozie job -run -config <filename> -name "<NameIWishToGive>"
OR
oozie job -run -config <filename> -nameSuffix "<MyApplicationNameUnderTheService>"

另外,我们不希望创建多个作业文件夹来单独执行,因为这会太多复制粘贴。

Also, we dont wish to create multiple job folders to execute separately as that would be too much of copy paste.

请建议。

推荐答案

你会发现一大堆oozie命令行这里在apache文档中。我不确定你正在寻找哪一个,所以我想我只是粘贴链接。希望这有助于!

you will find a whole bunch of oozie command lines here in the apache docs. i'm not sure which one exactly you are looking for so i thought i'd just paste the link. hope this helps!

这篇关于我可以动态地重命名oozie作业名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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