Revision 48139
Added by Alessia Bardi over 6 years ago
copyHbaseTable.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
3 |
<HEADER>
|
|
4 |
<RESOURCE_IDENTIFIER value="07d88cf9-87ee-4585-b226-eb8917a60bb6_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
|
5 |
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
|
6 |
<RESOURCE_KIND value="WorkflowDSResources"/>
|
|
7 |
<RESOURCE_URI value=""/>
|
|
8 |
<DATE_OF_CREATION value="2006-05-04T18:13:51.0Z"/>
|
|
9 |
</HEADER>
|
|
10 |
<BODY>
|
|
11 |
<WORKFLOW_NAME>Copy HBase Table</WORKFLOW_NAME>
|
|
12 |
<WORKFLOW_TYPE>IIS</WORKFLOW_TYPE>
|
|
13 |
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
|
14 |
<CONFIGURATION start="manual">
|
|
3 |
<HEADER>
|
|
4 |
<RESOURCE_IDENTIFIER value="07d88cf9-87ee-4585-b226-eb8917a60bb6_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
|
5 |
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
|
6 |
<RESOURCE_KIND value="WorkflowDSResources"/>
|
|
7 |
<RESOURCE_URI value=""/>
|
|
8 |
<DATE_OF_CREATION value="2006-05-04T18:13:51.0Z"/>
|
|
9 |
</HEADER>
|
|
10 |
<BODY>
|
|
11 |
<WORKFLOW_NAME>Copy HBase Table</WORKFLOW_NAME>
|
|
12 |
<WORKFLOW_TYPE>IIS</WORKFLOW_TYPE>
|
|
13 |
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
|
14 |
<CONFIGURATION start="manual">
|
|
15 | 15 |
<NODE name="setInfo" type="PrepareCopyTable" isStart="true"> |
16 | 16 |
<DESCRIPTION>Set copy parameters</DESCRIPTION> |
17 | 17 |
<PARAMETERS> |
... | ... | |
21 | 21 |
<PARAM required="true" type="string" name="targetTable" managedBy="user"></PARAM> |
22 | 22 |
</PARAMETERS> |
23 | 23 |
<ARCS> |
24 |
<ARC to="checkSource" />
|
|
24 |
<ARC to="checkSource"/> |
|
25 | 25 |
</ARCS> |
26 | 26 |
</NODE> |
27 | 27 |
<NODE name="checkSource" type="CheckHBaseTable"> |
... | ... | |
29 | 29 |
<PARAMETERS> |
30 | 30 |
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM> |
31 | 31 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
32 |
{
|
|
33 |
'hbaseTable' : 'sourceTable',
|
|
34 |
'cluster' : 'sourceCluster'
|
|
32 |
{ |
|
33 |
'hbaseTable' : 'sourceTable', |
|
34 |
'cluster' : 'sourceCluster' |
|
35 | 35 |
} |
36 | 36 |
</PARAM> |
37 | 37 |
<PARAM required="true" type="string" name="existOutNode" managedBy="system">yes</PARAM> |
38 |
<PARAM required="true" type="string" name="dontExistOutNode" managedBy="system">no</PARAM>
|
|
38 |
<PARAM required="true" type="string" name="dontExistOutNode" managedBy="system">no</PARAM> |
|
39 | 39 |
</PARAMETERS> |
40 | 40 |
<ARCS> |
41 |
<ARC to="sourceDesc" name="yes" />
|
|
42 |
<ARC to="failure" name ="no" />
|
|
41 |
<ARC to="sourceDesc" name="yes"/> |
|
42 |
<ARC to="failure" name="no"/>
|
|
43 | 43 |
</ARCS> |
44 | 44 |
</NODE> |
45 | 45 |
<NODE name="sourceDesc" type="GetHBaseTableDescription"> |
... | ... | |
47 | 47 |
<PARAMETERS> |
48 | 48 |
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM> |
49 | 49 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
50 |
{
|
|
51 |
'hbaseTable' : 'sourceTable',
|
|
52 |
'cluster' : 'sourceCluster'
|
|
50 |
{ |
|
51 |
'hbaseTable' : 'sourceTable', |
|
52 |
'cluster' : 'sourceCluster' |
|
53 | 53 |
} |
54 | 54 |
</PARAM> |
55 | 55 |
</PARAMETERS> |
56 | 56 |
<ARCS> |
57 |
<ARC to="checkTarget" />
|
|
57 |
<ARC to="checkTarget"/> |
|
58 | 58 |
</ARCS> |
59 |
</NODE>
|
|
59 |
</NODE> |
|
60 | 60 |
<NODE name="checkTarget" type="CheckHBaseTable"> |
61 | 61 |
<DESCRIPTION>check hbase target table</DESCRIPTION> |
62 | 62 |
<PARAMETERS> |
63 | 63 |
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM> |
64 | 64 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
65 |
{
|
|
66 |
'hbaseTable' : 'targetTable',
|
|
67 |
'cluster' : 'targetCluster'
|
|
65 |
{ |
|
66 |
'hbaseTable' : 'targetTable', |
|
67 |
'cluster' : 'targetCluster' |
|
68 | 68 |
} |
69 | 69 |
</PARAM> |
70 | 70 |
<PARAM required="true" type="string" name="existOutNode" managedBy="system">yes</PARAM> |
71 | 71 |
<PARAM required="true" type="string" name="dontExistOutNode" managedBy="system">no</PARAM> |
72 | 72 |
</PARAMETERS> |
73 | 73 |
<ARCS> |
74 |
<ARC to="setMode" name="yes" />
|
|
75 |
<ARC to="create" name="no" />
|
|
74 |
<ARC to="setMode" name="yes"/> |
|
75 |
<ARC to="create" name="no"/> |
|
76 | 76 |
</ARCS> |
77 | 77 |
</NODE> |
78 | 78 |
<NODE name="setMode" type="Selection"> |
79 | 79 |
<DESCRIPTION>select copy mode</DESCRIPTION> |
80 | 80 |
<PARAMETERS> |
81 |
<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
|
|
81 |
<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM> |
|
82 | 82 |
</PARAMETERS> |
83 | 83 |
<ARCS> |
84 |
<ARC to="drop" name="REFRESH" />
|
|
85 |
<ARC to="copyTable" name="INCREMENTAL" />
|
|
84 |
<ARC to="drop" name="REFRESH"/> |
|
85 |
<ARC to="copyTable" name="INCREMENTAL"/> |
|
86 | 86 |
</ARCS> |
87 |
</NODE>
|
|
87 |
</NODE> |
|
88 | 88 |
<NODE name="drop" type="DropHBaseTable"> |
89 | 89 |
<DESCRIPTION>drop hbase target table</DESCRIPTION> |
90 | 90 |
<PARAMETERS> |
91 | 91 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
92 |
{
|
|
93 |
'hbaseTable' : 'targetTable',
|
|
94 |
'cluster' : 'targetCluster'
|
|
92 |
{ |
|
93 |
'hbaseTable' : 'targetTable', |
|
94 |
'cluster' : 'targetCluster' |
|
95 | 95 |
} |
96 |
</PARAM>
|
|
96 |
</PARAM> |
|
97 | 97 |
</PARAMETERS> |
98 | 98 |
<ARCS> |
99 |
<ARC to="create" />
|
|
99 |
<ARC to="create"/> |
|
100 | 100 |
</ARCS> |
101 | 101 |
</NODE> |
102 | 102 |
<NODE name="create" type="CreateHBaseTable"> |
... | ... | |
104 | 104 |
<PARAMETERS> |
105 | 105 |
<PARAM name="tableColumnsParamName" type="string" managedBy="system" required="true">hTableColumns</PARAM> |
106 | 106 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
107 |
{
|
|
108 |
'hbaseTable' : 'targetTable',
|
|
109 |
'cluster' : 'targetCluster'
|
|
107 |
{ |
|
108 |
'hbaseTable' : 'targetTable', |
|
109 |
'cluster' : 'targetCluster' |
|
110 | 110 |
} |
111 |
</PARAM>
|
|
111 |
</PARAM> |
|
112 | 112 |
</PARAMETERS> |
113 | 113 |
<ARCS> |
114 |
<ARC to="copyTable" />
|
|
114 |
<ARC to="copyTable"/> |
|
115 | 115 |
</ARCS> |
116 | 116 |
</NODE> |
117 | 117 |
<NODE name="copyTable" type="SubmitHadoopJob"> |
... | ... | |
120 | 120 |
<PARAM required="true" type="string" name="hadoopJob" managedBy="system">copytable</PARAM> |
121 | 121 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
122 | 122 |
{ |
123 |
'cluster' : 'sourceCluster',
|
|
124 |
'targetCluster' : 'targetCluster',
|
|
125 |
'new.name' : 'targetTable',
|
|
126 |
'hbase.mapreduce.inputtable' : 'sourceTable',
|
|
127 |
'peer.adr' : 'peer.adr'
|
|
123 |
'cluster' : 'sourceCluster', |
|
124 |
'targetCluster' : 'targetCluster',
|
|
125 |
'new.name' : 'targetTable',
|
|
126 |
'hbase.mapreduce.inputtable' : 'sourceTable', |
|
127 |
'peer.adr' : 'peer.adr' |
|
128 | 128 |
} |
129 | 129 |
</PARAM> |
130 |
<PARAM required="true" type="boolean" name="simulation" managedBy="user">false</PARAM>
|
|
130 |
<PARAM required="true" type="boolean" name="simulation" managedBy="user">false</PARAM>
|
|
131 | 131 |
</PARAMETERS> |
132 | 132 |
<ARCS> |
133 |
<ARC to="success" />
|
|
133 |
<ARC to="success"/> |
|
134 | 134 |
</ARCS> |
135 |
</NODE>
|
|
136 |
</CONFIGURATION>
|
|
137 |
<STATUS />
|
|
138 |
</BODY>
|
|
135 |
</NODE> |
|
136 |
</CONFIGURATION>
|
|
137 |
<STATUS/>
|
|
138 |
</BODY>
|
|
139 | 139 |
</RESOURCE_PROFILE> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40