Install the Pig RPMs
On all the hosts where you will execute Pig programs, install the RPMs.
For RHEL or CentOS:
yum install pig
For SLES:
zypper install pig
For Ubuntu or Debian:
apt-get install pig
The RPM will install Pig libraries to /usr/hdp/current/pig. Pig configuration files are placed in /usr/hdp/current/pig-client/conf.