1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER value="a6901d21-c09d-43dc-8fc9-236c32069293_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
4
|
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
5
|
<RESOURCE_KIND value="WorkflowDSResources"/>
|
6
|
<RESOURCE_URI value=""/>
|
7
|
<DATE_OF_CREATION value="2015-10-12T14:10:32+00:00"/>
|
8
|
</HEADER>
|
9
|
<BODY>
|
10
|
<WORKFLOW_NAME>Calculate person distribution</WORKFLOW_NAME>
|
11
|
<WORKFLOW_TYPE>Notification Broker</WORKFLOW_TYPE>
|
12
|
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
13
|
<CONFIGURATION start="manual">
|
14
|
<NODE name="setHdfsFile" type="SetHdfsFile" isStart="true">
|
15
|
<DESCRIPTION/>
|
16
|
<PARAMETERS>
|
17
|
<PARAM name="hdfsPath" type="string" managedBy="user" required="true">/tmp/brokerPersonDistribution.tmp.seq</PARAM>
|
18
|
<PARAM name="hdfsPathParam" type="string" managedBy="system" required="true">brokerPersonDistributionPath</PARAM>
|
19
|
</PARAMETERS>
|
20
|
<ARCS>
|
21
|
<ARC to="cleanupHDFS"/>
|
22
|
</ARCS>
|
23
|
</NODE>
|
24
|
|
25
|
<NODE name="cleanupHDFS" type="DeleteHdfsPathJob">
|
26
|
<DESCRIPTION>hdfs cleanup (xml)</DESCRIPTION>
|
27
|
<PARAMETERS>
|
28
|
<PARAM required="true" type="string" name="cluster" managedBy="system">DM</PARAM>
|
29
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
30
|
{
|
31
|
'path' : 'brokerPersonDistributionPath'
|
32
|
}
|
33
|
</PARAM>
|
34
|
</PARAMETERS>
|
35
|
<ARCS>
|
36
|
<ARC to="step1_MR"/>
|
37
|
</ARCS>
|
38
|
</NODE>
|
39
|
|
40
|
|
41
|
<NODE name="step1_MR" type="SubmitHadoopJob">
|
42
|
<DESCRIPTION>Run M/R Job</DESCRIPTION>
|
43
|
<PARAMETERS>
|
44
|
<PARAM managedBy="system" name="cluster" required="true" type="string">DM</PARAM>
|
45
|
<PARAM managedBy="system" name="hadoopJob" required="true" type="string">calculatePersonDistributionStep1Job</PARAM>
|
46
|
<PARAM managedBy="system" name="envParams" required="false" type="string">
|
47
|
{
|
48
|
'mapred.output.dir' : 'brokerPersonDistributionPath'
|
49
|
}
|
50
|
</PARAM>
|
51
|
<PARAM managedBy="system" name="sysParams" required="false" type="string">
|
52
|
{
|
53
|
'hbase.mapred.inputtable' : 'hbase.mapred.datatable',
|
54
|
'hbase.mapreduce.inputtable' : 'hbase.mapred.datatable'
|
55
|
}
|
56
|
</PARAM>
|
57
|
</PARAMETERS>
|
58
|
<ARCS>
|
59
|
<ARC to="step2_MR"/>
|
60
|
</ARCS>
|
61
|
</NODE>
|
62
|
<NODE name="step2_MR" type="SubmitHadoopJob">
|
63
|
<DESCRIPTION>Run M/R Job</DESCRIPTION>
|
64
|
<PARAMETERS>
|
65
|
<PARAM managedBy="system" name="cluster" required="true" type="string">DM</PARAM>
|
66
|
<PARAM managedBy="system" name="hadoopJob" required="true" type="string">calculatePersonDistributionStep2Job</PARAM>
|
67
|
<PARAM managedBy="system" name="envParams" required="false" type="string">
|
68
|
{
|
69
|
'mapred.input.dir' : 'brokerPersonDistributionPath'
|
70
|
}
|
71
|
</PARAM>
|
72
|
<PARAM managedBy="system" name="sysParams" required="false" type="string"/>
|
73
|
</PARAMETERS>
|
74
|
<ARCS>
|
75
|
<ARC to="success"/>
|
76
|
</ARCS>
|
77
|
</NODE>
|
78
|
</CONFIGURATION>
|
79
|
<STATUS/>
|
80
|
</BODY>
|
81
|
</RESOURCE_PROFILE>
|