-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsqoop_wf.xml
31 lines (24 loc) · 912 Bytes
/
sqoop_wf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<workflow-app name="sqoop-wf" xmlns="uri:oozie:workflow:0.1">
<start to = "sqoopjob"/>
<action name="sqoopjob">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.compress.map.output</name>
<value>true</value>
</property>
</configuration>
<command>${sqoopCommand}</command>
<archive>hdfs://localhost:8020/user/oozie/share/lib/sqoop/ojdbc6_g.jar#ojdbc6_g.jar</archive>
<!-- the ojdbc driver was placed there manually -->
</sqoop>
<ok to="end"/>
<error to="kill_job"/>
</action>
<kill name = "kill_job">
<message>Job Failed</message>
</kill>
<end name = "end" />
</workflow-app>