1. Install the Tez RPMs

  1. Execute the following command on all client and gateway nodes in your cluster. From a terminal window, type:

    yum install tez

    This will install the Tez RPM.

  2. Execute these commands on the Tez client nodes and gateway nodes to create the config directories:

    mkdir -p $TEZ_CONF_DIR;
    chown -R tez:$HADOOP_GROUP $TEZ_CONF_DIR;
    chmod -R 755 $TEZ_CONF_DIR;

    where:

    • $TEZ_CONF_DIR is the directory for storing Tez configuration.

      This directory name is a combination of a directory and the tez.

    • tez is the user owning the Tez services. For example, tez.

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

  3. From any one of the client nodes, upload the tez jars to HDFS using the following commands:

    su $HDFS_USER
    hadoop fs -mkdir -p /apps/tez/
    hadoop fs -chmod -R 755 /apps/tez/
    hadoop fs -chown $HIVE_USER:$HADOOP_GROUP /apps/tez/
    
    su $HIVE_USER
    hadoop fs -mkdir -p /apps/tez/tez-0.1.0.2.0.4.0/lib/ 
    hadoop fs -chmod -R 755 /apps/tez/ 
    hadoop fs -put /usr/lib/tez/*.jar /apps/tez/tez-0.1.0.2.0.4.0/
    hadoop fs -put /usr/lib/tez/lib/*.jar /apps/tez/tez-0.1.0.2.0.4.0/lib/
    hadoop fs -chmod 444 /apps/tez/tez-0.1.0.2.0.4.0/*.jar
    hadoop fs -chmod 444 /apps/tez/tez-0.1.0.2.0.4.0/lib/*.jar

    where,

    • $HDFS_USER is the user owning HDFS Service. For example, hdfs.

    • $HIVE_USER is the user owning Hive Service. For example, hive.

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


loading table of contents...