Support Questions

Find answers, ask questions, and share your expertise

How to produce Oozie production workflows

avatar
Explorer

I have a simple question. So I build a oozie Job with a hive action. Now I want to execute it on diferent hive databases. How can I do this ? Let's say development and production...

1 ACCEPTED SOLUTION

avatar
Explorer

I'm using hue, so that is Bering generated for me. At the moment I have on my hive sql file use someDatabase; which is like wrong, and I would like to get rid of it ... how to do it with hue ?

UPDATE:

So I actually find out the proper way to do it. Using hue params.

http://gethue.com/hadoop-tutorials-ii-2-execute-hive-queries-and/

View solution in original post

3 REPLIES 3

avatar

Basically, your oozie workflow must pick a job properties from a path on the cluster. The job properties file will hold the details of hive server of that environment.

In your workflow you would be picking the values of database from the job property file. Thus your workflow will be generic and based on which environment you executing, it will pick up the job properties and consequently the required hive server.

avatar
Explorer

I'm using hue, so that is Bering generated for me. At the moment I have on my hive sql file use someDatabase; which is like wrong, and I would like to get rid of it ... how to do it with hue ?

UPDATE:

So I actually find out the proper way to do it. Using hue params.

http://gethue.com/hadoop-tutorials-ii-2-execute-hive-queries-and/

avatar

Cool! If you had mentioned the specifics in your question, you would have got help sooner 🙂