1
|
<?xml version="1.0" encoding="UTF-8"?>
|
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">
|
15
|
<NODE name="setInfo" type="PrepareCopyTable" isStart="true">
|
16
|
<DESCRIPTION>Set copy parameters</DESCRIPTION>
|
17
|
<PARAMETERS>
|
18
|
<PARAM required="true" type="string" name="sourceCluster" managedBy="user" function="obtainValues('hadoopClusters', {})">DM</PARAM>
|
19
|
<PARAM required="true" type="string" name="sourceTable" managedBy="user"></PARAM>
|
20
|
<PARAM required="true" type="string" name="targetCluster" managedBy="user" function="obtainValues('hadoopClusters', {})">IIS</PARAM>
|
21
|
<PARAM required="true" type="string" name="targetTable" managedBy="user"></PARAM>
|
22
|
</PARAMETERS>
|
23
|
<ARCS>
|
24
|
<ARC to="checkSource"/>
|
25
|
</ARCS>
|
26
|
</NODE>
|
27
|
<NODE name="checkSource" type="CheckHBaseTable">
|
28
|
<DESCRIPTION>check hbase source table</DESCRIPTION>
|
29
|
<PARAMETERS>
|
30
|
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM>
|
31
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
32
|
{
|
33
|
'hbaseTable' : 'sourceTable',
|
34
|
'cluster' : 'sourceCluster'
|
35
|
}
|
36
|
</PARAM>
|
37
|
<PARAM required="true" type="string" name="existOutNode" managedBy="system">yes</PARAM>
|
38
|
<PARAM required="true" type="string" name="dontExistOutNode" managedBy="system">no</PARAM>
|
39
|
</PARAMETERS>
|
40
|
<ARCS>
|
41
|
<ARC to="sourceDesc" name="yes"/>
|
42
|
<ARC to="failure" name="no"/>
|
43
|
</ARCS>
|
44
|
</NODE>
|
45
|
<NODE name="sourceDesc" type="GetHBaseTableDescription">
|
46
|
<DESCRIPTION>get source table description</DESCRIPTION>
|
47
|
<PARAMETERS>
|
48
|
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM>
|
49
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
50
|
{
|
51
|
'hbaseTable' : 'sourceTable',
|
52
|
'cluster' : 'sourceCluster'
|
53
|
}
|
54
|
</PARAM>
|
55
|
</PARAMETERS>
|
56
|
<ARCS>
|
57
|
<ARC to="checkTarget"/>
|
58
|
</ARCS>
|
59
|
</NODE>
|
60
|
<NODE name="checkTarget" type="CheckHBaseTable">
|
61
|
<DESCRIPTION>check hbase target table</DESCRIPTION>
|
62
|
<PARAMETERS>
|
63
|
<PARAM required="true" type="string" name="tableColumnsParamName" managedBy="system">hTableColumns</PARAM>
|
64
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
65
|
{
|
66
|
'hbaseTable' : 'targetTable',
|
67
|
'cluster' : 'targetCluster'
|
68
|
}
|
69
|
</PARAM>
|
70
|
<PARAM required="true" type="string" name="existOutNode" managedBy="system">yes</PARAM>
|
71
|
<PARAM required="true" type="string" name="dontExistOutNode" managedBy="system">no</PARAM>
|
72
|
</PARAMETERS>
|
73
|
<ARCS>
|
74
|
<ARC to="setMode" name="yes"/>
|
75
|
<ARC to="create" name="no"/>
|
76
|
</ARCS>
|
77
|
</NODE>
|
78
|
<NODE name="setMode" type="Selection">
|
79
|
<DESCRIPTION>select copy mode</DESCRIPTION>
|
80
|
<PARAMETERS>
|
81
|
<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
|
82
|
</PARAMETERS>
|
83
|
<ARCS>
|
84
|
<ARC to="drop" name="REFRESH"/>
|
85
|
<ARC to="copyTable" name="INCREMENTAL"/>
|
86
|
</ARCS>
|
87
|
</NODE>
|
88
|
<NODE name="drop" type="DropHBaseTable">
|
89
|
<DESCRIPTION>drop hbase target table</DESCRIPTION>
|
90
|
<PARAMETERS>
|
91
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
92
|
{
|
93
|
'hbaseTable' : 'targetTable',
|
94
|
'cluster' : 'targetCluster'
|
95
|
}
|
96
|
</PARAM>
|
97
|
</PARAMETERS>
|
98
|
<ARCS>
|
99
|
<ARC to="create"/>
|
100
|
</ARCS>
|
101
|
</NODE>
|
102
|
<NODE name="create" type="CreateHBaseTable">
|
103
|
<DESCRIPTION>create hbase table</DESCRIPTION>
|
104
|
<PARAMETERS>
|
105
|
<PARAM name="tableColumnsParamName" type="string" managedBy="system" required="true">hTableColumns</PARAM>
|
106
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
107
|
{
|
108
|
'hbaseTable' : 'targetTable',
|
109
|
'cluster' : 'targetCluster'
|
110
|
}
|
111
|
</PARAM>
|
112
|
</PARAMETERS>
|
113
|
<ARCS>
|
114
|
<ARC to="copyTable"/>
|
115
|
</ARCS>
|
116
|
</NODE>
|
117
|
<NODE name="copyTable" type="SubmitHadoopJob">
|
118
|
<DESCRIPTION>Copy table Job</DESCRIPTION>
|
119
|
<PARAMETERS>
|
120
|
<PARAM required="true" type="string" name="hadoopJob" managedBy="system">copytable</PARAM>
|
121
|
<PARAM required="true" type="string" name="envParams" managedBy="system">
|
122
|
{
|
123
|
'cluster' : 'sourceCluster',
|
124
|
'targetCluster' : 'targetCluster',
|
125
|
'new.name' : 'targetTable',
|
126
|
'hbase.mapreduce.inputtable' : 'sourceTable',
|
127
|
'peer.adr' : 'peer.adr'
|
128
|
}
|
129
|
</PARAM>
|
130
|
<PARAM required="true" type="boolean" name="simulation" managedBy="user">false</PARAM>
|
131
|
</PARAMETERS>
|
132
|
<ARCS>
|
133
|
<ARC to="success"/>
|
134
|
</ARCS>
|
135
|
</NODE>
|
136
|
</CONFIGURATION>
|
137
|
<STATUS/>
|
138
|
</BODY>
|
139
|
</RESOURCE_PROFILE>
|