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

Modify WebHCat Configuration Files

Hortonworks provides a set of configuration files that represent a working WebHCat configuration. (See Download Companion Files. You can use these files as a reference point. However, you will need to modify them to match your own cluster environment.

If you choose to use the provided configuration files to set up your WebHCat environment, complete the following steps to modify the WebHCat config files:

  1. Extract the WebHCat configuration files to a temporary directory.

    The files are located in the configuration_files/hive-webhcat directory where you decompressed the companion files.

  2. Modify the configuration files.

    In the temporary directory, locate the following files and modify the properties based on your environment.

    1. Edit the webhcat-site.xml file and modify the following properties:

           <description>Properties to set when running Hive.</description>
           <description>ZooKeeper servers, as comma separated HOST:PORT pairs.</description>
    2. In core-site.xml, make sure the following properties are also set to allow WebHcat to impersonate groups and hosts:



      • is a comma-separated list of the UNIX groups whose users may be impersonated.

      • hadoop.proxyuser.hcat.hosts is a comma-separated list of the hosts that are allowed to submit requests using hcat.

  3. Set up the updated WebHCat configuration files.

    1. Delete any existing WebHCat configuration files:

      rm -rf $WEBHCAT_CONF_DIR/*
    2. Copy all of the modified config files to $WEBHCAT_CONF_DIR and set appropriate permissions:

      chmod -R 755 $WEBHCAT_CONF_DIR


      • $WEBHCAT_CONF_DIR is the directory to store the WebHCat configuration files. For example, /etc/hcatalog/conf/webhcat.

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

      • $HADOOP_GROUP is a common group shared by services. For example, hadoop.