2. Setting 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 the companion files.

    Alternately, 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 ;
    chown -R $HIVE_USER:$HADOOP_GROUP $HIVE_LOG_DIR;
    chmod -R 755 $HIVE_LOG_DIR;

    where:

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

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

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

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


loading table of contents...