public void updateWebUiStats(MapRedStats mapRedStats, RunningJob rj) {
    if (queryDisplay != null &&
        conf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_SHOW_STATS) &&
        conf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_SHOW_GRAPH) &&
        conf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_EXPLAIN_OUTPUT)) {
      try {
        queryDisplay.updateTaskStatistics(mapRedStats, rj, getId());
      } catch (IOException | JSONException e) {
        LOG.error("Failed to update web UI stats", e);
      }
    }
  }
Find out if a job can be run in local mode based on it's characteristics

@param conf Hive Configuration
@param numReducers total number of reducers for this job
@param inputLength the size of the input
@param inputFileCount the number of files of input
@return String null if job is eligible for local mode, reason otherwise
ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapRedTask.java