How to schedule a sqoop action using oozie -
i new oozie, wondering - how schedule sqoop job using oozie. know sqoop action can added part of oozie workflow. how can schedule sqoop action , running every 2 mins or 8pm every day automatically (just lie cron job)?
you need create coordinator.xml file start, end , frequency. here example
<coordinator-app name="example-coord" xmlns="uri:oozie:coordinator:0.2" frequency="${coord:days(7)}" start="${start}" end= "${end}" timezone="america/new_york"> <controls> <timeout>5</timeout> </controls> <action> <workflow> <app-path>${wf_application_path}</app-path> </workflow> </action> </coordinator-app>
then create coordinator.properties file one:
host=namenode01 namenode=hdfs://${host}:8020 wf_application_path=${namenode}/oozie/deployments/example oozie.coord.application.path=${wf_application_path} start=2013-07-13t07:00z end=2013-09-31t23:59z
upload coordinator.xml file hdfs , submit coordinator job like
oozie job -config coordinator.properties -run
check documentation http://oozie.apache.org/docs/3.3.2/coordinatorfunctionalspec.html contains examples.
Comments
Post a Comment