protected Hive getHive() {
    try {
      // Hive.getWithFastCheck shouldn't be used here as it always re-opens metastore connection.
      // The conf object in HMS client is always different from the one used here.
      return Hive.get(conf);
    } catch (HiveException e) {
      LOG.error("Failed to get Hive", e);
      throw new RuntimeException(e);
    }
  }
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