Command Line Installation
Also available as:
PDF
loading table of contents...

Set Directories and Permissions

Create directories and configure ownership and permissions on the appropriate hosts as described below. Hortonworks provides a set of configuration files that represent a working ZooKeeper configuration. (See Download Companion Files. You can use these files as a reference point, however, you need to modify them to match your own cluster environment.

If you choose to use the provided configuration files to set up your ZooKeeper 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 the following commands on all nodes:

    mkdir -p $HBASE_LOG_DIR;
    chown -R $HBASE_USER:$HADOOP_GROUP $HBASE_LOG_DIR;
    chmod -R 755 $HBASE_LOG_DIR;
    
    mkdir -p $HBASE_PID_DIR;
    chown -R $HBASE_USER:$HADOOP_GROUP $HBASE_PID_DIR;
    chmod -R 755 $HBASE_PID_DIR;

    where:

    • $HBASE_LOG_DIR is the directory to store the HBase logs. For example, /var/log/hbase.

    • $HBASE_PID_DIR is the directory to store the HBase process ID. For example, /var/run/hbase.

    • $HBASE_USER is the user owning the HBase services. For example, hbase.

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