Category Archives: oozie

Tips: OOZIE

I would include important commands and other tips related to oozie here.. Trigger Workflow oozie job -oozie http://<host&gt;:11000/oozie -config /users/oozieTest/ooziePigTest/oozie-test/job/job.properties -run Trigger Workflow Through REST API curl -X POST -H “Content-Type: application/xml” -d @oozie-testcurl.xml “http://<host&gt;:11000/oozie/v2/jobs?action=start” Trigger Coordinator oozie job -oozie http://<host&gt;:11000/oozie … Continue reading

Posted in oozie, Rest API, Tips | Tagged , , | Leave a comment

Oozie : Trigger coordinator on data availability

Here is a sample to trigger coordinator on data availability.. Coordinator.xml <coordinator-app name=”oozie-coord-pig-datatrigger” frequency=”3″ start=”2015-06-09T14:25Z” end=”2015-07-05T12:59Z” timezone=”Canada/Eastern” xmlns=”uri:oozie:coordinator:0.1″> <datasets> <dataset name=”input1″ frequency=”05″ initial-instance=”2015-06-09T13:30Z” timezone=”Canada/Eastern”> <!– Below path can be created on HDFS like ${appPath}/feed/2014/03/11/20 –> <uri-template>/user/oozie/trigger</uri-template> </dataset> </datasets> <input-events> <data-in … Continue reading

Posted in oozie | Tagged , , , | Leave a comment

Oozie : Sending emails

Oozie has a feature which allows sending emails in Oozie from a workflow application. For example :- In your workflow.xml, include the following action. <action name=”sendEmail”> <email xmlns=”uri:oozie:email-action:0.1″> <to>xyz@abc.com</to> <subject>WF Success</subject> <body>WF Successfully executed</body> </email> <ok to=”end”/> <error to=”kill”/> </action> Edit … Continue reading

Posted in oozie | Tagged , , | Leave a comment

Oozie : Trigger Oozie Coordinator Jobs via RestAPI calls

It is also possible to execute the Oozie Coordinator Jobs using Rest API. It helps us to run it from any machine which doesnt have oozie client installed. Create an xml file – oozie-testxml.xml – in the local of your Unix … Continue reading

Posted in oozie | Leave a comment

Oozie : Trigger Oozie workflow via RestAPI calls

It is also possible to execute the Oozie workflow using Rest API. It helps us to run it from any machine which doesnt have oozie client installed. Create an xml file – oozie-testxml.xml – in the local of your Unix machine. $ … Continue reading

Posted in oozie | Leave a comment

Oozie : Coordinator Jobs : Quickly schedule a job

Hi Guys, I am back.. Lets schedule the pig action developed in my previous post quickly…We would use oozie coordinator engine for the same. In your Unix machine, make a folder and create a property file – coordinator.properties oozie.coord.application.path=${nameNode}${oozieCoordXmlHdfsPath} oozie.libpath=${nameNode}/user/oozie/share/lib nameNode=NAMENODEHOST:8020 … Continue reading

Posted in oozie | Tagged , , | Leave a comment

Oozie : Pig Action – Pig Jobs using oozie

Hi All, In my upcoming posts, lets discuss about oozie and how to implement various actions using it… What are OOzie and Pig??   Apache Oozie is a system for running workflows of dependent jobs. It is composed of two main parts: a workflow … Continue reading

Posted in oozie, Uncategorized | Tagged , , , , , , , , , | Leave a comment