public void initialize(QueryState queryState, QueryPlan queryPlan, TaskQueue taskQueue, Context context) {
    this.queryPlan = queryPlan;
    setInitialized();
    this.queryState = queryState;
    if (null == this.conf && queryState != null) {
      this.conf = queryState.getConf();
    }
    this.taskQueue = taskQueue;
    this.context = context;
    this.console = new LogHelper(LOG);
  }
this can be set by the Task, to provide more info about the failure in TaskResult
where the Driver can find it.  This is checked if {@link Task#execute()}
returns non-0 code.
ql/src/java/org/apache/hadoop/hive/ql/exec/Task.java