没有合适的资源?快使用搜索试试~ 我知道了~
Oozie之JavaAction测试实例
5星 · 超过95%的资源 需积分: 17 82 下载量 166 浏览量
2013-07-22
10:16:13
上传
评论
收藏 88KB DOCX 举报
温馨提示
试读
8页
使用oozie的流程,以javaAction为例 该实例可以编写自己的Main函数,通过参数传递给oozie,并可以获取oozie的输出,作为action的下一步判断。
资源推荐
资源详情
资源评论
Java Acon
目录
1.官网解释..................................................................................................................................... 1
2.JavaAcon 使用........................................................................................................................... 4
2.1 编写自定义功能的 main 函数.......................................................................................... 4
2.2 编写 workow.xml 文件.................................................................................................... 6
2.3 编写 job.properes 文件.................................................................................................. 7
2.4 部署.................................................................................................................................. 7
2.5 运行.................................................................................................................................. 8
1.官网解释
Thejavaaction will execute thepublic static void main(String[] args)method of the
specied main Java class.
Java applications are executed in the Hadoop cluster as map-reduce job with a single Mapper task.
The work&ow job will wait until the java application completes its execution before continuing to the next
action.
Thejavaaction has to be congured with the job-tracker, name-node, main Java class, JVM options and
arguments.
To indicate anokaction transition, the main Java class must complete gracefully themainmethod
invocation.
To indicate anerroraction transition, the main Java class must throw an exception.
The main Java class must not callSystem.exit(int n)as this will make thejavaaction to do
anerrortransition regardless of the used exit code.
Ajavaaction can be congured to perform HDFS les/directories cleanup before starting the Java
application. This capability enables Oozie to retry a Java application in the situation of a transient or non-
transient failure (This can be used to cleanup any temporary data which may have been created by the Java
application in case of failure).
BaYangMoBeiBei
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页