Project

General

Profile

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="c7d7d775-2db3-474d-85ab-5173a582d516_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>OAF to HBase</WORKFLOW_NAME>
12
		<WORKFLOW_TYPE>Data Load</WORKFLOW_TYPE>
13
		<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
14
		<CONFIGURATION start="manual">
15
		
16
			<NODE name="setTable" type="SetHBaseTable" isStart="true">
17
				<DESCRIPTION>set hbase table</DESCRIPTION>
18
				<PARAMETERS>
19
					<PARAM name="table" type="string" managedBy="user" required="true"></PARAM>
20
				</PARAMETERS>
21
				<ARCS>
22
					<ARC to="mapreduce" />
23
				</ARCS>
24
			</NODE>		
25
		
26
			<NODE name="prepareImport" type="PrepareMDStoreImport" isStart="true">
27
				<DESCRIPTION>Configure export to HDFS</DESCRIPTION>
28
				<PARAMETERS>
29
					<PARAM required="true" type="string" name="hdfsPathParam" managedBy="system">hdfsPath</PARAM>
30
					<PARAM required="true" type="string" name="hdfsPath" managedBy="user">/tmp/mdstores_oaf-store-cleaned.seq</PARAM>
31
					<PARAM required="true" type="string" name="mappingParam" managedBy="system">xslt</PARAM>
32
					<PARAM required="true" type="string" name="mapping" managedBy="user" function="obtainValues('oaf2hbaseMappings', {})"></PARAM>
33
				</PARAMETERS>
34
				<ARCS>
35
					<ARC to="reuseHdfsRecords" />
36
				</ARCS>
37
			</NODE>
38
			<NODE name="reuseHdfsRecords" type="ReuseHdfsRecords">
39
				<DESCRIPTION>reuse mdstore records</DESCRIPTION>
40
				<PARAMETERS>
41
					<PARAM required="true" type="boolean" name="reuseMdRecords" managedBy="user">false</PARAM>
42
				</PARAMETERS>
43
				<ARCS>
44
					<ARC name="true" to="doneExport" />
45
					<ARC name="false" to="exportRecords" />
46
				</ARCS>
47
			</NODE>
48
			<NODE name="exportRecords" type="MDStoreBatchExporter">
49
				<DESCRIPTION>Fetch mdstore records</DESCRIPTION>
50
				<PARAMETERS>
51
					<PARAM required="true" type="string" name="format" managedBy="user">OAF</PARAM>
52
					<PARAM required="true" type="string" name="layout" managedBy="user">store</PARAM>
53
					<PARAM required="true" type="string" name="interpretation" managedBy="user">cleaned</PARAM>
54
					<PARAM required="true" type="string" name="outputEprParam" managedBy="system">records_epr</PARAM>
55
				</PARAMETERS>
56
				<ARCS>
57
					<ARC to="storeHdfsRecords" />
58
				</ARCS>
59
			</NODE>
60
			<NODE name="storeHdfsRecords" type="StoreHdfsRecords">
61
				<DESCRIPTION>Store records to HDFS</DESCRIPTION>
62
				<PARAMETERS>
63
					<PARAM required="true" type="string" name="inputEprParam" managedBy="system">records_epr</PARAM>
64
					<PARAM required="true" type="string" name="hdfsPathParam" managedBy="system">hdfsPath</PARAM>
65
					<PARAM required="true" type="string" name="cluster" managedBy="system">DM</PARAM>					
66
				</PARAMETERS>
67
				<ARCS>
68
					<ARC to="doneExport" />
69
				</ARCS>
70
			</NODE>
71
			
72
			<NODE name="doneExport">
73
				<DESCRIPTION></DESCRIPTION>
74
				<PARAMETERS/>
75
				<ARCS>
76
					<ARC to="mapreduce" />
77
				</ARCS>
78
			</NODE>					
79
			<NODE name="mapreduce" type="SubmitHadoopJob" isJoin="true">
80
				<DESCRIPTION>Run M/R import Job</DESCRIPTION>
81
				<PARAMETERS>
82
					<PARAM required="true" type="string" name="cluster" managedBy="system">DM</PARAM>
83
					<PARAM required="true" type="string" name="hadoopJob" managedBy="system">mdStoreHdfsImportJob</PARAM>
84
					<PARAM required="true" type="boolean" name="simulation"	managedBy="user">false</PARAM>
85
					<PARAM required="true" type="string" name="envParams" managedBy="system">
86
						{ 
87
							'mapred.input.dir' : 'hdfsPath', 
88
							'hbase.import.xslt' : 'xslt',
89
							'hbase.mapred.outputtable' : 'hbaseTable'
90
						}
91
					</PARAM>	
92
				</PARAMETERS>
93
				<ARCS>
94
					<ARC to="success" />
95
				</ARCS>
96
			</NODE>
97
		</CONFIGURATION>
98
		<STATUS />
99
	</BODY>
100
</RESOURCE_PROFILE>
101

    
102

    
(17-17/34)