Oozie workflow工作流action间参数传递实现
2017-05-14 15:46
399 查看
假设workflow里有两个action节点,shell和hive,hive需要用到shell节点里的值,shell脚本如下
hive节点需传入day这个参数。需要用到shell节点里<capture-output/>这个属性,如下
#!/bin/sh day=`date '+%Y%m%d%H'` echo "day:$day"
hive节点需传入day这个参数。需要用到shell节点里<capture-output/>这个属性,如下
<action name="shell-118a "> <shell xmlns="uri:oozie:shell-action:0.1"> <job-tracker>${jobTracker}</job-tracker> <name-node>${nameNode}</name-node> <configuration> <property> <name>mapred.job.queue.name</name> <value>${queueName}</value> </property> </configuration> <exec>${shell}</exec> <file>${shell}#${shell}</file> <capture-output/> </shell> <ok to="hive_node "/> <error to="fail"/> </action> <action name="hive_node"> <hive xmlns="uri:oozie:hive-action:0.2"> <job-tracker>${jobTracker}</job-tracker> <name-node>${nameNode}</name-node> <job-xml>${apps_hdfs_home}/common/conf/hive-site.xml</job-xml> <script>${sql}</script> <param>day=${wf:actionData('shell-118a')['day']}</param> </hive> <ok to="end"/> <error to="Kill"/> </action>
相关文章推荐
- Oozie workflow工作流action间参数传递实现
- Oozie workflow工作流action间参数传递实现
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型 【转】
- Oozie-自定义实现WorkFlow中shell action
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型 【转】
- struts2框架中Action必须实现execute方法?和Struts参数传递
- web工作流管理系统开发之十六 主子流程参数传递的实现
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型
- [导入]xml应用(2): 通过向xsl传递参数+数据岛方式,实现在客户端单个xml的分框架显示
- 跟我一起学Windows Workflow Foundation(3)-----使用If/Else活动,定制活动处理工作流,使用事件传递数据
- Windows Workflow Beta2 HOL学习笔记(二):向工作流中传递参数
- .net的SQL参数传递实现
- 练习2、通过宿主程序向工作流传递参数
- .net如何实现页面间的参数传递
- 页面之间实现参数的传递
- .net如何实现页面间的参数传递
- JavaScript Base64编码和解码,实现URL参数传递。
- javascript实现页面之间传递参数的方法