2. Set Up Configuration Files

Use the following instructions to set up configuration files for Pig:

  1. Extract the Pig configuration files.

    From the downloaded scripts.zip file, extract the files from the configuration_files/pig directory to a temporary directory.

  2. Copy the configuration files.

    1. On all hosts where Pig will be executed, create the Pig configuration directory:

      rm -r $PIG_CONF_DIR
      mkdir -p $PIG_CONF_DIR
    2. Copy all the configuration files to $PIG_CONF_DIR.

    3. Set appropriate permissions:

      chown -R $PIG_USER:$HADOOP_GROUP $PIG_CONF_DIR
      chmod -R 755 $PIG_CONF_DIR

    where:

    • $PIG_CONF_DIR is the directory to store Pig configuration files. For example, /etc/pig/conf.

    • $PIG_USER is the user owning the Pig services. For example, pig.

    • $HADOOP_GROUP is a common group shared by services. For example, hadoop.


loading table of contents...