Non-Ambari Cluster Installation Guide
Also available as:
PDF
loading table of contents...

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.

Hortonworks provides a set of configuration files that represent a working Hive/HCatalog configuration. (See Download Companion Files. You can use these files as a reference point. However, you will need to modify them to match your own cluster environment.

If you choose to use the provided configuration files to set up your Hive/HCatalog environment, complete the following steps to create the appropriate directories. If any of these directories already exist, we recommend deleting and recreating them.

  1. 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.