1.1. Optional: Modify Default Directories

[Warning]Warning

These instructions are now obsolete and no longer provide a Supported version of Tez. Use the information found in HDP 2.1 regarding Installing and Configuring Tez.

By default, the Tez RPM creates the following directories:

 

Table 7.2. Default Directories for Tez

Hadoop ServiceParameterDescriptionDefault

Tez

TEZ_HOME

Directory that contains all the Tez JAR files.

/usr/lib/tez

Tez

TEZ_CONF_DIR

Directory that contains all the Tez configuration files.

/etc/tez/conf

Tez

TEZ_LOG_DIR

Directory to store the Tez logs.

$TEZ_HOME/logs

Tez

TEZ_PID_DIR

Directory to store the Tez process ID.

/tmp

To change these default locations, execute the following instructions:

  • Create new directories for those parameters that you want to override.

  • Ensure that Tez Service user has appropriate permissions to these directories.

    For example, if Hive user is responsible for submitting queries to the Tez Service, this user should have appropriate permissions to the newly created directories.

  • On all the client nodes and Tez Service host machine, edit /etc/tez/conf/tez-env.sh file and modify those environment variables that you want to override.

    For example:

    export TEZ_LOG_DIR="$TEZ_LOG_DIR" 
    export TEZ_PID_DIR="$TEZ_PID_DIR" 
    export TEZ_HOME="$TEZ_HOME"
    export TEZ_CONF_DIR="$TEZ_CONF_DIR" 
                            


loading table of contents...