Create Hive user home on HDFS.
Login as $HDFS_USER hadoop fs -mkdir /user/$HIVE_USER hadoop fs -chown $HIVE_USER:$HIVE_USER/user/$HIVE_USER
Create warehouse directory on HDFS.
hadoop fs -mkdir /apps/hive/warehouse hadoop fs -chown -R $HIVE_USER:users /apps/hive/warehouse hadoop fs -chmod -R 775 /apps/hive/warehouse