2. Set Directories and Permissions

Create directories and configure ownership + permissions on the appropriate hosts as described below.

If any of these directories already exist, we recommend deleting and recreating them. Use the following instructions to set up Pig configuration files:

  1. We strongly suggest that you edit and source the bash script files included in companion files (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.

  2. Execute these commands on the Hive server machine:

    mkdir -p $HIVE_LOG_DIR;
    chmod -R 755 $HIVE_LOG_DIR;


    • $HIVE_LOG_DIR is the directory for storing theHive Server logs.

      This directory name is a combination of a directory and the $HIVE_USER.

    • $HIVE_USER is the user owning the Hive services. For example, hive.

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

loading table of contents...