Reply
Expert Contributor
Posts: 73
Registered: ‎09-14-2017
Accepted Solution

How to run Python script in Hue through oozie

[ Edited ]

Hi, can someone give me a few basic steps on how to go about running a simple python script in Hue using Oozie such as reading a hive table and write the data to a csv file. Some steps like where I enter the python code and how to run it through HUE interface to help me get started. An example python script will also be very helpful. Thanks.

Highlighted
Cloudera Employee
Posts: 585
Registered: ‎03-23-2015

Re: How to run Python script in Hue through oozie

The following link:
http://gethue.com/use-the-shell-action-in-oozie/

from Hue website is about how to setup script shell in Hue Oozie interface. Python script will be similar. I suggest you go through the documentation on Hue for more detailed info.
Expert Contributor
Posts: 73
Registered: ‎09-14-2017

Re: How to run Python script in Hue through oozie

The solution was to put the python script in Hue->Query->Editor->Spark in the Libs field with the full path of the python script example: Libs:  /user/userxyz/myscript.py and run the query. Clicking the job_xxxxx link will show if the script ran successfully or not.

Announcements