title: How to load & execute Python script in Hue?
body: <p>I'm a new Hadoop user and am attempting to run Python script via the Hue interface.</p>
  
  <p>After some searching I've found a solution in the cloudera forum:</p>
  
  <p><a href="https://community.cloudera.com/t5/Web-UI-Hue-Beeswax/How-to-run-Python-script-in-Hue-through-oozie/m-p/61455" rel="nofollow noreferrer">https://community.cloudera.com/t5/Web-UI-Hue-Beeswax/How-to-run-Python-script-in-Hue-through-oozie/m-p/61455</a></p>
  
  <p>where the poster stated "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."</p>
  
  <p>However, I can't figure out how to load &amp; then execute my Python script in the Hadoop distributed file system. The Hue interface doesn't seem to have an HDFS feature that displays my root &amp; allows file uploads. Do I load my Python script as a text file from my desktop or is there an editor in Hue? </p>