|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.Task<MapredWork>
org.apache.hadoop.hive.ql.exec.ExecDriver
public class ExecDriver
ExecDriver.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Task |
|---|
Task.FeedType |
| Field Summary | |
|---|---|
protected org.apache.hadoop.mapred.JobConf |
job
|
protected HadoopJobExecHelper |
jobExecHelper
|
protected static org.apache.commons.logging.Log |
LOG
|
static MemoryMXBean |
memoryMXBean
|
| Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
|---|
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_LOCAL_MAPJOIN, CONVERTED_MAPJOIN, db, driverContext, feedSubscribers, id, initialized, isdone, jobID, LOCAL_MAPJOIN, NO_TAG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, taskTag, work |
| Constructor Summary | |
|---|---|
ExecDriver()
Constructor when invoked from QL. |
|
ExecDriver(MapredWork plan,
org.apache.hadoop.mapred.JobConf job,
boolean isSilent)
Constructor/Initialization for invocation as independent utility. |
|
| Method Summary | |
|---|---|
static void |
addInputPaths(org.apache.hadoop.mapred.JobConf job,
MapredWork work,
String hiveScratchDir,
Context ctx)
|
boolean |
checkFatalErrors(org.apache.hadoop.mapred.Counters ctrs,
StringBuilder errMsg)
Fatal errors are those errors that cannot be recovered by retries. |
protected void |
createTmpDirs()
|
int |
execute(DriverContext driverContext)
Execute a query plan using Hadoop. |
static String |
generateCmdLine(HiveConf hconf,
Context ctx)
Given a Hive Configuration object - generate a command line fragment for passing such configuration information to ExecDriver. |
String |
getName()
Gets the name of the node. |
Collection<Operator<? extends OperatorDesc>> |
getTopOperators()
|
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType. |
boolean |
hasReduce()
|
void |
initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext driverContext)
Initialization when invoked from QL. |
boolean |
isMapRedTask()
|
protected void |
localizeMRTmpFilesImpl(Context ctx)
If this task uses any map-reduce intermediate data (either for reading or for writing), localize them (using the supplied Context). |
void |
logPlanProgress(SessionState ss)
|
static void |
main(String[] args)
|
boolean |
mapDone()
|
boolean |
mapStarted()
|
boolean |
reduceDone()
|
boolean |
reduceStarted()
|
boolean |
requireLock()
|
protected void |
setInputAttributes(org.apache.hadoop.conf.Configuration conf)
Set hive input format, and input format file if necessary. |
void |
updateCounters(org.apache.hadoop.mapred.Counters ctrs,
org.apache.hadoop.mapred.RunningJob rj)
|
| Methods inherited from class org.apache.hadoop.hive.ql.exec.Task |
|---|
addDependentTask, cloneConf, done, executeTask, fetch, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getParentTasks, getQueryPlan, getQueued, getReducer, getResultSchema, getTaskTag, getWork, ifRetryCmdWhenFail, isLocalMode, isMapRedLocalTask, isRunnable, localizeMRTmpFiles, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, setBackupChildrenTasks, setBackupTask, setChildTasks, setDone, setFeedSubscribers, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setStarted, setTaskTag, setWork, started, subscribeFeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient org.apache.hadoop.mapred.JobConf job
public static MemoryMXBean memoryMXBean
protected HadoopJobExecHelper jobExecHelper
protected static final transient org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public ExecDriver()
public ExecDriver(MapredWork plan,
org.apache.hadoop.mapred.JobConf job,
boolean isSilent)
throws HiveException
HiveException| Method Detail |
|---|
public boolean requireLock()
requireLock in class Task<MapredWork>
public void initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext driverContext)
initialize in class Task<MapredWork>
public boolean checkFatalErrors(org.apache.hadoop.mapred.Counters ctrs,
StringBuilder errMsg)
checkFatalErrors in interface HadoopJobExecHook
protected void createTmpDirs()
throws IOException
IOExceptionpublic int execute(DriverContext driverContext)
execute in class Task<MapredWork>protected void setInputAttributes(org.apache.hadoop.conf.Configuration conf)
public boolean mapStarted()
public boolean reduceStarted()
public boolean mapDone()
public boolean reduceDone()
public static void main(String[] args)
throws IOException,
HiveException
IOException
HiveException
public static String generateCmdLine(HiveConf hconf,
Context ctx)
throws IOException
IOExceptionpublic boolean isMapRedTask()
isMapRedTask in class Task<MapredWork>public Collection<Operator<? extends OperatorDesc>> getTopOperators()
getTopOperators in class Task<MapredWork>public boolean hasReduce()
hasReduce in class Task<MapredWork>
public static void addInputPaths(org.apache.hadoop.mapred.JobConf job,
MapredWork work,
String hiveScratchDir,
Context ctx)
throws Exception
Exceptionpublic StageType getType()
Task
getType in class Task<MapredWork>public String getName()
Node
getName in interface Nodeprotected void localizeMRTmpFilesImpl(Context ctx)
Task
localizeMRTmpFilesImpl in class Task<MapredWork>ctx - context object with which to localize
public void updateCounters(org.apache.hadoop.mapred.Counters ctrs,
org.apache.hadoop.mapred.RunningJob rj)
throws IOException
updateCounters in interface HadoopJobExecHookIOException
public void logPlanProgress(SessionState ss)
throws IOException
logPlanProgress in interface HadoopJobExecHookIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||