@Override
  public void stop() {
    clusterStateUpdateThread.interrupt(); // Don't wait for the thread.
  }
Implements query resource allocation using guaranteed tasks.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/GuaranteedTasksAllocator.java