Set Up HDFS User and Prepare WebHCat Directories
Set up the WebHCat user.
Login as $HDFS_USER hdfs dfs -mkdir /user/$WEBHCAT_USER hdfs dfs -chown -R $WEBHCAT_USER:$HDFS_USER /user/$WEBHCAT_USER hdfs dfs -mkdir /apps/webhcat
Prepare WebHCat directories on HDFS.
hdfs dfs -copyFromLocal /usr/hdp/<hdp_version>/pig/pig.tar.gz /apps/webhcat/ hdfs dfs -copyFromLocal /usr/hdp/<hdp_version>/hive.tar.gz /apps/webhcat/ hdfs dfs -copyFromLocal /usr/hdp/<hdp_version>/hadoop-mapreduce/hadoop-streaming*.jar /apps/webhcat/
Set appropriate permissions for the HDFS user and the webhcat directory.
hdfs fs -chown -R $WEBHCAT_USER:$HDFS_USER /apps/webhcat hdfs fs -chmod -R 755 /apps/webhcat
where:
$WEBHCAT_USER is the user owning the WebHCat services. For example, hcat.