1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER value="9986e1e0-ce6b-41aa-a49e-46a651c10d6b_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
4
|
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
5
|
<RESOURCE_KIND value="WorkflowDSResources"/>
|
6
|
<RESOURCE_URI value=""/>
|
7
|
<DATE_OF_CREATION value="2018-12-03T10:47:41+00:00"/>
|
8
|
</HEADER>
|
9
|
<BODY>
|
10
|
<WORKFLOW_NAME>Propagate Country from Institutional Repos</WORKFLOW_NAME>
|
11
|
<WORKFLOW_TYPE>Data Provision</WORKFLOW_TYPE>
|
12
|
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
13
|
<CONFIGURATION start="manual">
|
14
|
<NODE isStart="true" name="setOutputFile" type="SetEnvParameter">
|
15
|
<DESCRIPTION>Set the CSV file path on HDFS</DESCRIPTION>
|
16
|
<PARAMETERS>
|
17
|
<PARAM managedBy="system" name="parameterName" required="true" type="string">csvPath</PARAM>
|
18
|
<PARAM managedBy="user" name="parameterValue" required="true" type="string">/tmp/db_openaireplus_services_beta.countryPropagation</PARAM>
|
19
|
</PARAMETERS>
|
20
|
<ARCS>
|
21
|
<ARC to="cleanupCsv"/>
|
22
|
</ARCS>
|
23
|
</NODE>
|
24
|
<NODE isStart="true" name="hadoopConfig" type="SetClusterAndTable">
|
25
|
<DESCRIPTION>Set table name</DESCRIPTION>
|
26
|
<PARAMETERS>
|
27
|
<PARAM managedBy="system" name="cluster" required="true" type="string">DM</PARAM>
|
28
|
<PARAM managedBy="system" name="tableParam" required="true" type="string">tableName</PARAM>
|
29
|
<PARAM managedBy="user" name="table" required="true" type="string">db_openaireplus_services_beta</PARAM>
|
30
|
</PARAMETERS>
|
31
|
<ARCS>
|
32
|
<ARC to="cleanupCsv"/>
|
33
|
</ARCS>
|
34
|
</NODE>
|
35
|
<NODE isJoin="true" name="cleanupCsv" type="DeleteHdfsPathJob">
|
36
|
<DESCRIPTION>CSV files cleanup</DESCRIPTION>
|
37
|
<PARAMETERS>
|
38
|
<PARAM managedBy="system" name="envParams" required="true" type="string">
|
39
|
{
|
40
|
'path' : 'csvPath',
|
41
|
'cluster' : 'cluster'
|
42
|
}
|
43
|
</PARAM>
|
44
|
</PARAMETERS>
|
45
|
<ARCS>
|
46
|
<ARC to="propagateCountry"/>
|
47
|
</ARCS>
|
48
|
</NODE>
|
49
|
<NODE isJoin="false" name="propagateCountry" type="SubmitHadoopJob">
|
50
|
<DESCRIPTION>Propagation of country from institutional repos</DESCRIPTION>
|
51
|
<PARAMETERS>
|
52
|
<PARAM function="validValues(['propagationCountryFromInstitutionalRepositoriesSaveToFile', 'propagationCountryFromInstitutionalRepositories'])" managedBy="user" name="hadoopJob" required="true" type="string">propagationCountryFromInstitutionalRepositories</PARAM>
|
53
|
<PARAM managedBy="system" name="envParams" required="true" type="string">
|
54
|
{
|
55
|
'cluster' : 'cluster',
|
56
|
'hbase.mapred.inputtable' : 'tableName',
|
57
|
'hbase.mapred.outputtable' : 'tableName',
|
58
|
'hbase.mapreduce.inputtable' : 'tableName',
|
59
|
'hbase.mapreduce.outputtable' : 'tableName',
|
60
|
'mapred.output.dir' : 'csvPath'
|
61
|
}
|
62
|
</PARAM>
|
63
|
</PARAMETERS>
|
64
|
<ARCS>
|
65
|
<ARC to="success"/>
|
66
|
</ARCS>
|
67
|
</NODE>
|
68
|
</CONFIGURATION>
|
69
|
<STATUS>
|
70
|
<LAST_EXECUTION_ID>wf_20190613_071747_187</LAST_EXECUTION_ID>
|
71
|
<LAST_EXECUTION_DATE>2019-06-13T07:46:27+00:00</LAST_EXECUTION_DATE>
|
72
|
<LAST_EXECUTION_STATUS>SUCCESS</LAST_EXECUTION_STATUS>
|
73
|
<LAST_EXECUTION_ERROR/>
|
74
|
</STATUS>
|
75
|
</BODY>
|
76
|
</RESOURCE_PROFILE>
|