@Override
  public void initialize(Driver driver) {
    this.driver = driver;
    driver.getHookRunner().addOnFailureHook(new LocalHook());
    HiveConf conf = driver.getConf();
    // we unset the queue name intentionally in TezSessionState#startSessionAndContainers
    // as a result reexec create new session in the default queue and create problem
    String queueName = conf.get(TezConfiguration.TEZ_QUEUE_NAME);
    if (queueName != null) {
      conf.set("reexec.overlay.tez.queue.name", queueName);
    }
    subtree = conf.subtree("reexec.overlay");
  }
Re-Executes a query only adding an extra overlay
ql/src/java/org/apache/hadoop/hive/ql/reexec/ReExecutionOverlayPlugin.java