5.3.2. Problem: "Cannot initialize Cluster" exception.

If you see an error similar to this during job submission, it indicates that the HADOOP_CLASSPATH is incorrectly configured:

ERROR security.UserGroupInformation: PriviledgedActionException  as:<user> (auth:SIMPLE)
    cause:java.io.IOException: Cannot  initialize Cluster. Please check your configuration formapreduce.framework.name and
    the correspond server addresses. java.io.IOException: Cannot initialize Cluster. Please
    check your configuration for mapreduce.framework.name and the correspond server addresses.

Solution: This issue is caused when HADOOP_CLASSPATH is incorrectly configured. To set HADOOP_CLASSPATH:

  • On the Tez Service host machine, edit hadoop-env.sh and modify the following parameter:

    export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$TEZ_HOME/*:$TEZ_HOME/lib/*

    where, $TEZ_HOME is the location of the directory that contains all the Tez JAR files. By default, $TEZ_HOME is set to /usr/lib/tez.


loading table of contents...