org.apache.hadoop.hive.ql.exec.mr
Class HadoopJobExecHelper
java.lang.Object
org.apache.hadoop.hive.ql.exec.mr.HadoopJobExecHelper
public class HadoopJobExecHelper
- extends Object
Field Summary |
org.apache.hadoop.mapred.JobID |
jobId
|
static List<org.apache.hadoop.mapred.RunningJob> |
runningJobs
A list of the currently running jobs spawned in this Hive instance that is used to kill all
running jobs in the event of an unexpected shutdown - i.e., the JVM shuts down while there are
still jobs running. |
jobId
public transient org.apache.hadoop.mapred.JobID jobId
runningJobs
public static List<org.apache.hadoop.mapred.RunningJob> runningJobs
- A list of the currently running jobs spawned in this Hive instance that is used to kill all
running jobs in the event of an unexpected shutdown - i.e., the JVM shuts down while there are
still jobs running.
HadoopJobExecHelper
public HadoopJobExecHelper(org.apache.hadoop.mapred.JobConf job,
SessionState.LogHelper console,
Task<? extends Serializable> task,
HadoopJobExecHook hookCallBack)
getJobEndMsg
public static String getJobEndMsg(org.apache.hadoop.mapred.JobID jobId)
- this msg pattern is used to track when a job is successfully done.
- Parameters:
jobId
-
- Returns:
- the job end message
mapStarted
public boolean mapStarted()
reduceStarted
public boolean reduceStarted()
mapDone
public boolean mapDone()
reduceDone
public boolean reduceDone()
getJobId
public org.apache.hadoop.mapred.JobID getJobId()
setJobId
public void setJobId(org.apache.hadoop.mapred.JobID jobId)
killRunningJobs
public static void killRunningJobs()
checkFatalErrors
public boolean checkFatalErrors(org.apache.hadoop.mapred.Counters ctrs,
StringBuilder errMsg)
jobInfo
public void jobInfo(org.apache.hadoop.mapred.RunningJob rj)
- from StreamJob.java.
localJobDebugger
public void localJobDebugger(int exitVal,
String taskId)
progressLocal
public int progressLocal(Process runningJob,
String taskId)
progress
public int progress(org.apache.hadoop.mapred.RunningJob rj,
org.apache.hadoop.mapred.JobClient jc,
HiveTxnManager txnMgr)
throws IOException
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.