Different modes of Pig Execution:
Pig has two execution modes or types. They are:- Local Mode
- MapReduce Mode
Now let us see each execution mode in detail.
Local Mode:
In Local Mode of Pig execution, all the input data will be taken from local file system. After execution it provides output on top of local file system. In local mode, Pig runs in a single JVM and accesses the local filesystem. This mode of suitable only for small datasets and when trying out Pig. To start the local mode of execution, the following command is used.
- # pig -x local
The above command starts Grunt. Grunt is the Pig interactive shell.