private boolean reconnectToRunningJobEnabledAndSupported(Configuration conf,
      LauncherDelegator.JobType jobType) {
    if (conf.get(ENABLE_JOB_RECONNECT) == null) {
      return false;
    }

    Boolean enableJobReconnect = Boolean.parseBoolean(conf.get(ENABLE_JOB_RECONNECT));
    if (!enableJobReconnect) {
      return false;
    }

    // Reconnect is only supported for MR and Streaming jobs at this time
    return jobType.equals(LauncherDelegator.JobType.JAR)
        || jobType.equals(LauncherDelegator.JobType.STREAMING);
  }
Checks if reconnection to an already running job is enabled and supported for a given
job type.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/LaunchMapper.java