2. Set Directories and Permissions

The scripts.zip file you downloaded in Download Companion Files includes two scripts, usersAndGroups.sh and directories.sh, for setting environment parameters. We strongly suggest you edit and source (alternatively, you can also copy the contents to your ~/.bash_profile) to set up these environment variables in your environment. See Define Environment Parameters for more information.

 2.1. Create Log and PID Directories

  1. Execute these commands on the HBaseMaster node and RegionServer 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

  2. Execute these commands on the ZooKeeper nodes:

    mkdir -p $ZOOKEEPER_LOG_DIR
    chown -R $ZOOKEEPER_USER:$HADOOP_GROUP $ZOOKEEPER_LOG_DIR
    chmod -R 755 $ZOOKEEPER_LOG_DIR

    mkdir -p $ZOOKEEPER_PID_DIR
    chown -R $ZOOKEEPER_USER:$HADOOP_GROUP $ZOOKEEPER_PID_DIR
    chmod -R 755 $ZOOKEEPER_PID_DIR

    mkdir -p $ZOOKEEPER_DATA_DIR
    chmod -R 755 $ZOOKEEPER_DATA_DIR>
    chown -R $ZOOKEEPER_USER:$HADOOP_GROUP $ZOOKEEPER_DATA_DIR


loading table of contents...