Set up the HDFS user. Login as
$HDFS_USER
hadoop fs -mkdir /user/$WEBHCAT_USER hadoop fs -chown -R $WEBHCAT_USER:$WEBHCAT_USER /user/$WEBHCAT_USER hadoop fs -mkdir /apps/webhcat
Prepare WebHCat directories on HDFS.
hadoop dfs -copyFromLocal /usr/share/HDP-webhcat/pig.tar.gz /apps/webhcat/ hadoop dfs -copyFromLocal /usr/share/HDP-webhcat/hive.tar.gz /apps/webhcat/ hadoop dfs -copyFromLocal /usr/lib/hadoop/contrib/streaming/hadoop-streaming*.jar /apps/webhcat/
Set appropriate permissions for the HDFS user and the webhcat directory.
hadoop fs -chown -R $WEBHCAT_USER:users /apps/webhcat hadoop fs -chmod -R 755 /apps/webhcat