Install Pig
Installing Pig is a very simple task, except that downloading is a bit slow
1. Install hadoop 2.x
(slightly)
2. Install pig
Wget http://apache.dataguru.cn/pig/latest/pig-0.15.0.tar.gz
Tar zxvf pig-0.15.0.tar.gz-C / home/hadoop
Mv / home/hadoop/pig-0.15.0 / home/hadoop/pig
3. Environment configuration
Vim / etc/bashrc
Export PIG_INSTALL=/home/hadoop/pig
Export PATH=$PATH:$PIG_INSTALL/bin
4. Test
Pig-help