Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

oozie shell action

avatar
Rising Star

I created a similar job as in : https://community.hortonworks.com/content/supportkb/48985/how-to-setup-oozie-shell-action.html

On execution the yarn log shows as success.

But I can't see the /tmp/output file being created anywhere. I checked on the local linux host as well as hdfs.

One question I have is in job.properties -

oozie.coord.application.path=${nameNode}/user/root/apps/shell


Should the configuration files (job.properties, coordinator.xml etc) reside in the above directory? I have them there.

Not sure what is happening.

Appreciate the insights.

1 ACCEPTED SOLUTION

avatar
Master Guru

@n c

job.properties -> Needs to be on local filesystem on Oozie client from where you wish to submit the oozie job -run command. No need to have this file on HDFS.

workflow.xml -> This needs to be on HDFS.

script -> This needs to be on HDFS.


Regarding your question on python script - Please refer below article for how to create coordinator ( Please ignore input event part )

https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.ht...


in coordinator.xml you mention "<app-path>${workflowAppUri}</app-path>" that's what is location of workflow.xml


Please use Ambari workflow manager to design coordinators and workflows with easy WebUI.


Hope this helps.


Please let me know if you have any questions. Please accept my answer if it was helpful. 🙂

View solution in original post

12 REPLIES 12

avatar
Rising Star

@Kuldeep Kulkarni , does your example : https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.ht...

set the job to run once a day?

If not, can you please let me know how to do that? I want to run a job once daily. Thanks.

avatar
Master Guru

@n c
For some reason, I'm not able to add a comment in this post so replying as an answer:

For CDH, you can use Hue to design the submit the workflow.

For frequency - here is you can change the frequency of coordinator as per your requirement

 frequency="${coord:days(1)}"

avatar
Rising Star

@Kuldeep Kulkarni, there are many lines with "input data" in the page you referred - not sure which ones to ignore.

Should I ignore the sections for datasets/input events/output events - that will leave only the workflow section.

Is that right?

Can't I use the coordinator from your shell action example?

But in that I don't see : "<app-path>${workflowAppUri}</app-path>"

Appreciate the clarification.