Examples of killJob()


Examples of org.apache.hadoop.mapred.RunningJob.killJob()

            RunningJob job = jc.getJob(id);
            if (job == null)
                System.out.println("Job with id " + jobid + " is not active");
            else
            {   
                job.killJob();
                log.info("Kill " + id + " submitted.");
            }
        }
    }
       
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

          this.state = Job.SUCCESS;
        } else {
          this.state = Job.FAILED;
          this.message = "Job failed!";
          try {
            running.killJob();
          } catch (IOException e1) {

          }
          try {
            this.jc.close();
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

    } catch (IOException ioe) {
      this.state = Job.FAILED;
      this.message = StringUtils.stringifyException(ioe);
      try {
        if (running != null)
          running.killJob();
      } catch (IOException e1) {

      }
      try {
        this.jc.close();
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

            RunningJob job = jc.getJob(id);
            if (job == null)
                System.out.println("Job with id " + jobid + " is not active");
            else
            {   
                job.killJob();
                log.info("Kill " + id + " submitted.");
            }
        }
    }
       
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

                sb.append("Job with id ");
                sb.append(jobid);
                sb.append(" is not active");
                System.out.println(sb.toString());
            } else {
                job.killJob();
                log.error("kill submited.");
            }
        }
    }
       
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

        if (ctxCreated) {
          ctx.clear();
        }
        if (rj != null) {
          if (returnVal != 0) {
            rj.killJob();
          }
          HadoopJobExecHelper.runningJobKillURIs.remove(rj.getJobID());
        }
        RCFileMergeMapper.jobClose(outputPath, success, job, console);
      } catch (Exception e) {
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

          ctx.clear();
        }

        if (rj != null) {
          if (returnVal != 0) {
            rj.killJob();
          }
          HadoopJobExecHelper.runningJobKillURIs.remove(rj.getJobID());
        }
      } catch (Exception e) {
      }
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

                    getConfiguration());
            @SuppressWarnings("deprecation")
            org.apache.hadoop.mapred.JobID jobId =
                org.apache.hadoop.mapred.JobID.forName(getJobId());
            RunningJob job = jobClient.getJob(jobId);
            job.killJob();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

      RunningJob runningJob = jobClient.getJob(JobID.forName(submissionId));
      if(runningJob == null) {
        return;
      }

      runningJob.killJob();
    } catch (IOException e) {
      throw new SqoopException(MapreduceSubmissionError.MAPREDUCE_0003, e);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

      if (fatal)
        continue// wait until rj.isComplete
      if ( fatal = checkFatalErrors(th, errMsg)) {
        success = false;
        console.printError("[Fatal Error] " + errMsg.toString() + ". Killing the job.");
        rj.killJob();
        continue;
      }
      errMsg.setLength(0);
     
      updateCounters(th);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.