Created
July 26, 2016 13:57
-
-
Save developer-sdk/b2f20347f7fd9fcec223d108135e2927 to your computer and use it in GitHub Desktop.
shell Action의 출력을 다음 액션의 입력값으로 전달
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <workflow-app xmlns="uri:oozie:workflow:0.4" name="Test workflow"> | |
| <start to="shellAction" /> | |
| <action name="shellAction"> | |
| <shell xmlns="uri:oozie:shell-action:0.1"> | |
| <job-tracker>${jobTracker}</job-tracker> | |
| <name-node>${nameNode}</name-node> | |
| <exec>test_script.sh</exec> | |
| <file>test_script.sh#test_script.sh</file> | |
| <capture-output /> | |
| </shell> | |
| <ok to="JavaAction" /> | |
| <error to="fail" /> | |
| </action> | |
| <action name="JavaAction"> | |
| <java> | |
| <main-class>com.test.TestDriver</main-class> | |
| <arg>${wf:actionData('shellAction')['dateVariable']}</arg> | |
| <capture-output /> | |
| </java> | |
| <ok to="end" /> | |
| <error to="fail" /> | |
| </action> | |
| <kill name="fail"> | |
| <message>Job failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message> | |
| </kill> | |
| <end name="end" /> | |
| </workflow-app> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo "dateVariable=${dateValue}"
쉘 액션의 출력은 다음과 같다.