I’m trying to convert a simple work flow to oozie. I have tried looking through the oozie examples but they are a bit over-whelming. Effectively I want to run a query and output the result to a text file.
hive -e 'select * from tables' > output.txt
How to I got about translating that into oozie to have it run every hour?
Your workflow might look something like this…
workflow.xmlSo here hive-site.xml is the site xml present in $HIVE_HOME/conf folder.
script.q file contains the actual hive query.
select * from ${INPUT_TABLE}.how and where can we use the OUTPUT param?