org.apache.hadoop.hive.ql.exec
Class HadoopJobExecHelper
java.lang.Object
org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper
public class HadoopJobExecHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
job
protected transient org.apache.hadoop.mapred.JobConf job
task
protected Task<? extends Serializable> task
mapProgress
protected transient int mapProgress
reduceProgress
protected transient int reduceProgress
jobId
public transient String jobId
runningJobKillURIs
public static Map<String,String> runningJobKillURIs
- 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()
HadoopJobExecHelper
public HadoopJobExecHelper(org.apache.hadoop.mapred.JobConf job,
SessionState.LogHelper console,
Task<? extends Serializable> task,
HadoopJobExecHook hookCallBack)
getJobEndMsg
public static String getJobEndMsg(String 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 String getJobId()
setJobId
public void setJobId(String 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)
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation