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 Hive and HCatalog configuration files :

  1. We strongly suggest that you edit and source the files included in scripts.zip file (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;
    chown -R $HIVE_USER:$HADOOP_GROUP $HIVE_LOG_DIR;
    chmod -R 755 $HIVE_LOG_DIR;

    where:

    • $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...