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 execute these scripts to fit your environment. See Define Environment Parameters
for more information.
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
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