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

Execute these commands on your WebHCat server machine to create log and pid directories.

mkdir -p $WEBHCAT_LOG_DIR
chown -R $WEBHCAT_USER:$HADOOP_GROUP $WEBHCAT_LOG_DIR
chmod -R 755 $WEBHCAT_LOG_DIR
mkdir -p $WEBHCAT_PID_DIR
chown -R $WEBHCAT_USER:$HADOOP_GROUP $WEBHCAT_PID_DIR
chmod -R 755 $WEBHCAT_PID_DIR

loading table of contents...