Invoking Pig
Tuesday, February 22, 2011
5:46 PM
Invoking Pig
Download the cloudera training VM (stable release 0.3.3) 
Unpack into a local directory, e.g., cloudera-training-0.3.3
Download VMWare player (or equivalent). 
Double-click on the file cloudera-training-0.3.3.vmx
(which will invoke VMWare player)
Wait for it to boot linux. 
Login: hadoop 
Password: hadoop
Select Applications/Terminal from top menu
Make yourself a working directory: 
$ mkdir 150CPA
$ cd 150CPA
Make yourself a file to read into pig
$ vi junk.dat
or
$ emacs junk.dat
Run pig in local interactive mode
$ pig -x local 
grunt>