There are several configuration files that need to be set up for Pig.
If any of these directories already exist, we recommend deleting and recreating them. Use the following instructions to set up Pig configuration files:
We strongly suggest that you edit and source the files included in
scripts.zipfile (downloaded in Download Companion Files). Alternatively, you can also copy the contents to your~/.bash_profile) to set up these environment variables in your environment.From the file you downloaded in extract the files in
configuration_files/pigdirectory to a temporary directory.Copy the configuration files.
On all hosts where Pig will be executed, replace the installed Pig configs with the downloaded one and set appropriate permissions:
rm -rf $PIG_CONF_DIR mkdir -p $PIG_CONF_DIR
<Copy the all config files to
$PIG_CONF_DIR>chmod -R 755 $PIG_CONF_DIR/../
where:
$PIG_CONF_DIRis the directory to store the Pig logs. For example,/etc/pig/conf.$PIG_USERis the user owning the Pig services. For example,pig.$HADOOP_GROUPis a common group shared by services. For example,hadoop.

