forked from YahooArchive/oozie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes OOZIE-100 escape characters for xml when create dag evaluator
- Loading branch information
Angelo Kaichen Huang
committed
May 23, 2011
1 parent
250462d
commit fd367f8
Showing
7 changed files
with
313 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
64 changes: 64 additions & 0 deletions
64
core/src/test/resources/coord-action-start-escape-strings.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
Copyright (c) 2010 Yahoo! Inc. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. See accompanying LICENSE file. | ||
--> | ||
<coordinator-app xmlns="uri:oozie:coordinator:0.2" name="COORD-TEST" frequency="1" timezone="UTC" freq_timeunit="DAY" end_of_duration="NONE" instance-number="1" action-nominal-time="2009-12-15T01:00Z" action-actual-time="2010-10-01T00:00Z"> | ||
<controls> | ||
<timeout>10</timeout> | ||
<concurrency>1</concurrency> | ||
<execution>FIFO</execution> | ||
</controls> | ||
<input-events> | ||
<data-in name="din" dataset="din"> | ||
<uris>#inputDir</uris> | ||
<dataset name="din" frequency="1" initial-instance="2009-12-01T01:00Z" timezone="UTC" freq_timeunit="DAY" end_of_duration="NONE"> | ||
<uri-template>#inputTemplate</uri-template> | ||
</dataset> | ||
</data-in> | ||
</input-events> | ||
<output-events> | ||
<data-out name="dout" dataset="dout"> | ||
<uris>#outputDir</uris> | ||
<dataset name="dout" frequency="1380" initial-instance="2009-12-01T01:00Z" timezone="UTC" freq_timeunit="MINUTE" end_of_duration="NONE"> | ||
<uri-template>#outputTemplate</uri-template> | ||
</dataset> | ||
</data-out> | ||
</output-events> | ||
<action> | ||
<workflow> | ||
<app-path>${wfAppPath}</app-path> | ||
<configuration> | ||
<property> | ||
<name>jobTracker</name> | ||
<value>${myJobTracker}</value> | ||
</property> | ||
<property> | ||
<name>nameNode</name> | ||
<value>${myNameNode}</value> | ||
</property> | ||
<property> | ||
<name>input</name> | ||
<value>#inputDir</value> | ||
</property> | ||
<property> | ||
<name>output</name> | ||
<value>#outputDir</value> | ||
</property> | ||
<property> | ||
<name>urlTemplate</name> | ||
<value>http://yahoo.com/test?custid1=yahoo&custid2=us&offset=0&hits=10</value> | ||
</property> | ||
</configuration> | ||
</workflow> | ||
</action> | ||
</coordinator-app> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!-- | ||
Copyright (c) 2010 Yahoo! Inc. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. See accompanying LICENSE file. | ||
--> | ||
<workflow-app xmlns="uri:oozie:workflow:0.1" name="recovery-el-wf"> | ||
<start to="hadoop"/> | ||
<action name="hadoop"> | ||
<map-reduce> | ||
<job-tracker>${jobTracker}</job-tracker> | ||
<name-node>${nameNode}</name-node> | ||
<prepare> | ||
<delete path="${delPath}"/> | ||
</prepare> | ||
<configuration> | ||
<property> | ||
<name>mapred.map.tasks</name> | ||
<value>1</value> | ||
</property> | ||
<property> | ||
<name>mapred.reduce.tasks</name> | ||
<value>0</value> | ||
</property> | ||
<property> | ||
<name>mapred.mapper.class</name> | ||
<value>${mrclass}</value> | ||
</property> | ||
<property> | ||
<name>mapred.reducer.class</name> | ||
<value>${mrclass}</value> | ||
</property> | ||
<property> | ||
<name>mapred.input.dir</name> | ||
<value>${input}</value> | ||
</property> | ||
<property> | ||
<name>mapred.output.dir</name> | ||
<value>${output}</value> | ||
</property> | ||
<property> | ||
<name>url.template</name> | ||
<value>${urlTemplate}</value> | ||
</property> | ||
|
||
</configuration> | ||
</map-reduce> | ||
<ok to="subwf"/> | ||
<error to="k"/> | ||
</action> | ||
<action name="subwf"> | ||
<sub-workflow> | ||
<app-path>${subWfApp}</app-path> | ||
<configuration> | ||
<property> | ||
<name>a</name> | ||
<value>A</value> | ||
</property> | ||
</configuration> | ||
</sub-workflow> | ||
<ok to="end"/> | ||
<error to="k"/> | ||
</action> | ||
<kill name="k"> | ||
<message>kill</message> | ||
</kill> | ||
<end name="end"/> | ||
</workflow-app> |
Oops, something went wrong.