2. Enable Tez

Use the following instructions to enable Tez:

On all the client and gateway nodes, create a tez-site.xml with the following contents and copy it to $TEZ_CONF_DIR.

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration xmlns:xi="http://www.w3.org/2001/XInclude">

<!-- Tez properties -->

  <property>
    <name>tez.lib.uris</name>
    <value>${fs.default.name}/apps/tez/tez-0.1.0.2.0.4.0,${fs.default.name}/apps/tez/tez-0.1.0.2.0.4.0/lib</value>
  </property>

</configuration>

where

  • $TEZ_CONF_DIR is the directory that contains all the Tez configuration files and by default is set to /etc/tez/conf.

  • $fs.default.name points to the default URI (protocol specifier, hostname, and port) for all filesystem requests in Hadoop. This is typically HDFS host:port combination. For example, hdfs://$NAMENODE_HOST:$NAMENODE_PORT.


loading table of contents...