public static void killRunningJobs() {
    synchronized (runningJobs) {
      for (RunningJob rj : runningJobs) {
        try {
          System.err.println("killing job with: " + rj.getID());
          rj.killJob();
        } catch (Exception e) {
          LOG.warn("Failed to kill job", e);
          System.err.println("Failed to kill job: "+ rj.getID());
          // do nothing
        }
      }
    }
  }
In Hive, when the user control-c's the command line, any running jobs spawned from that command
line are best-effort killed.

This static constructor registers a shutdown thread to iterate over all the running job kill
URLs and do a get on them.
ql/src/java/org/apache/hadoop/hive/ql/exec/mr/HadoopJobExecHelper.java