Syntax
Local Mode HDFS Mode
Pig -x local (then enter) Pig (then enter)
grunt> or
Pig -x mapred
grunt>
-------------------------------------------------------------------------------
Script Mode
Instead of executing transformation at the grunt shell one after another we are going to inscribe bunch of pig statement in a single file which generally we are going to trigger for execution.
Syntax
Local Mode HDFS Mode
pig -x local <<scriptname>> pig <<scriptname>>
-x stand for execution mode
--------------------------------------------------------------------------------------------
Embedded Mode
If we are not acheiving the desired functionality using the pre-defined function then we can generally go ahead with the User defined function (UDF) i.e we developing the external piece of code and embedding in the main script.
Next Chapter : Mapreduce Vs Apache Pig
No comments:
Post a Comment