public HiveResources extractHiveResources() {
    HiveResources result = resources;
    resources = null;
    return result;
  }
Mark session as being in use from TezTask, for safety/debugging purposes.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java