Non-Ambari Cluster Installation Guide
Also available as:
loading table of contents...

Set Up HDFS User and Prepare WebHCat Directories

  1. 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
  2. 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/
  3. 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


    • $WEBHCAT_USER is the user owning the WebHCat services. For example, hcat.