Depending upon where it is placed in your pig script it will be invoked in either map or reduce phase. To get better understanding of your pig script execution plan you can do this from the grunt shell

explain -script <your-script> -dot -out <dot-output-file>

You can then feed the dot output file into a dot parser to generate the DAG in jpg/gif format

-...@nkur

prasenjit mukherjee wrote:
Just wondering if I can use the DEFINE command to write my custom
mapper/reducer functions. Mapper ( I believe)   I can, but what not sure
about  reducer.  I guess this depends how the define commands are invoked.

-Prasen

Reply via email to