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 Directories

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

loading table of contents...