Might be a good opportunity to get familiar with tools surrounding Pig if
you think we need a more robust example.


On Tue, Jun 25, 2013 at 11:39 AM, Oren Leiman <oleiman@mortardata.com>wrote:

> Hrm, didn't modify the existing template. This was already hanging out in
> templates/controlscripts, just moved it to templates/projects
>
>
> On Tue, Jun 25, 2013 at 11:36 AM, Jonathan Packer <
> notifications@github.com> wrote:
>
>> In lib/mortar/templates/project/controlscripts/controlscript.py:
>>
>> > @@ -0,0 +1,11 @@
>> > +def run_script():
>> > +    import os
>> > +    from org.apache.pig.scripting import Pig
>> > +
>> > +    # compile the pig code
>> > +    P = Pig.compileFromFile("../pigscripts/#{script_name}.pig")
>> > +    bound = P.bind()
>>
>> you should passing parameters here, something like:
>>
>> bound = P.bind({
>> "MY_PARAMETER": 5
>> })
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/mortardata/mortar/pull/111/files#r4869084>
>> .
>>
>
>