Support Questions
Find answers, ask questions, and share your expertise

Using Python in Cloudera 4.7

Using Python in Cloudera 4.7

New Contributor


I'm researching into which hadoop platform will be most useful for developing a small proof of concept network. I have looked at HortonWorks and have a couple of Python scripts that we can call. In HortonWorks its a simple case of putting the python into the UDF editor and adding a register in pig (REGISTER '' USING jython AS myfuncs;).

Is it possible to do something similar in Cloudera? General setup has been more difficult with Pig and HcatalogLoader so it is not as easy to just figure it out by playing.


The first 3 lines of the hortonworks code is:


REGISTER '' USING jython AS myfuncs;
a = LOAD 'org' USING org.apache.hcatalog.pig.HCatLoader();
b = foreach a generate phrase, myfuncs.soundex(phrase) as sndx;