public abstract class HExecutionEngine extends java.lang.Object implements ExecutionEngine
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORE_DEFAULT_SITE |
static java.lang.String |
CORE_SITE |
protected DataStorage |
ds |
static java.lang.String |
HADOOP_SITE |
protected Launcher |
launcher |
static java.lang.String |
LOCAL |
protected java.util.Map<OperatorKey,OperatorKey> |
logicalToPhysicalKeys |
static java.lang.String |
MAPRED_DEFAULT_SITE |
protected java.util.Map<Operator,PhysicalOperator> |
newLogToPhyMap |
protected PigContext |
pigContext |
static java.lang.String |
YARN_DEFAULT_SITE |
static java.lang.String |
YARN_SITE |
| Constructor and Description |
|---|
HExecutionEngine(PigContext pigContext) |
| Modifier and Type | Method and Description |
|---|---|
PhysicalPlan |
compile(LogicalPlan plan,
java.util.Properties properties) |
void |
destroy()
Perform any cleanup operation
|
void |
explain(LogicalPlan lp,
PigContext pc,
java.io.PrintStream ps,
java.lang.String format,
boolean verbose,
java.io.File file,
java.lang.String suffix)
This method handles the backend processing of the Explain command.
|
java.util.Properties |
getConfiguration()
Returns the Properties representation of the ExecutionEngine
configuration.
|
DataStorage |
getDataStorage()
Returns the DataStorage the ExecutionEngine is using.
|
org.apache.hadoop.mapred.JobConf |
getExecConf(java.util.Properties properties) |
ExecutableManager |
getExecutableManager()
Returns the ExecutableManager to be used in Pig Streaming.
|
java.util.Map<LOForEach,java.util.Map<LogicalRelationalOperator,PhysicalOperator>> |
getForEachInnerLogToPhyMap(LogicalPlan plan) |
org.apache.hadoop.mapred.JobConf |
getJobConf()
Deprecated.
|
org.apache.hadoop.mapred.JobConf |
getLocalConf() |
java.util.Map<Operator,PhysicalOperator> |
getLogToPhyMap() |
org.apache.hadoop.mapred.JobConf |
getS3Conf() |
void |
init()
This method is responsible for the initialization of the ExecutionEngine.
|
void |
kill()
This method is called when user requests to kill all jobs
associated with the execution engine
|
void |
killJob(java.lang.String jobID)
This method is called when a user requests to kill a job associated with
the given job id.
|
PigStats |
launchPig(LogicalPlan lp,
java.lang.String grpName,
PigContext pc)
This method is responsible for the actual execution of a LogicalPlan.
|
void |
setConfiguration(java.util.Properties newConfiguration)
Responsible for updating the properties for the ExecutionEngine.
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Responsible for setting a specific property and value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiatePigStats, instantiateScriptStatepublic static final java.lang.String HADOOP_SITE
public static final java.lang.String CORE_SITE
public static final java.lang.String YARN_SITE
public static final java.lang.String CORE_DEFAULT_SITE
public static final java.lang.String MAPRED_DEFAULT_SITE
public static final java.lang.String YARN_DEFAULT_SITE
public static final java.lang.String LOCAL
protected PigContext pigContext
protected DataStorage ds
protected Launcher launcher
protected java.util.Map<OperatorKey,OperatorKey> logicalToPhysicalKeys
protected java.util.Map<Operator,PhysicalOperator> newLogToPhyMap
public HExecutionEngine(PigContext pigContext)
@Deprecated public org.apache.hadoop.mapred.JobConf getJobConf()
public DataStorage getDataStorage()
ExecutionEnginegetDataStorage in interface ExecutionEnginepublic void init()
throws ExecException
ExecutionEngineinit in interface ExecutionEngineExecExceptionpublic org.apache.hadoop.mapred.JobConf getS3Conf()
throws ExecException
ExecExceptionpublic org.apache.hadoop.mapred.JobConf getLocalConf()
public org.apache.hadoop.mapred.JobConf getExecConf(java.util.Properties properties)
throws ExecException
ExecExceptionpublic PhysicalPlan compile(LogicalPlan plan, java.util.Properties properties) throws FrontendException
FrontendExceptionpublic java.util.Map<Operator,PhysicalOperator> getLogToPhyMap()
public java.util.Map<LOForEach,java.util.Map<LogicalRelationalOperator,PhysicalOperator>> getForEachInnerLogToPhyMap(LogicalPlan plan)
public PigStats launchPig(LogicalPlan lp, java.lang.String grpName, PigContext pc) throws FrontendException, ExecException
ExecutionEnginelaunchPig in interface ExecutionEnginelp - -- plan to compilegrpName - -- group name for submissionpc - -- context for executionExecExceptionFrontendExceptionpublic void explain(LogicalPlan lp, PigContext pc, java.io.PrintStream ps, java.lang.String format, boolean verbose, java.io.File file, java.lang.String suffix) throws PlanException, VisitorException, java.io.IOException, FrontendException
ExecutionEngineexplain in interface ExecutionEnginelp - -- plan to explainpc - -- context for explain processingps - -- print stream to write all output to (if dir param is null)format - -- format to print explainfile - -- directory to write output to. if not null, write to filessuffix - -- if writing to files, suffix to be used for each filePlanExceptionVisitorExceptionjava.io.IOExceptionFrontendExceptionpublic java.util.Properties getConfiguration()
ExecutionEnginegetConfiguration in interface ExecutionEnginepublic void setConfiguration(java.util.Properties newConfiguration)
throws ExecException
ExecutionEnginesetConfiguration in interface ExecutionEnginenewConfiguration - -- Properties object holding all configuration valsExecExceptionpublic void setProperty(java.lang.String property,
java.lang.String value)
ExecutionEnginesetProperty in interface ExecutionEngineproperty - to updatevalue - to set for propertypublic ExecutableManager getExecutableManager()
ExecutionEnginegetExecutableManager in interface ExecutionEnginepublic void kill()
throws BackendException
ExecutionEnginekill in interface ExecutionEngineBackendExceptionpublic void killJob(java.lang.String jobID)
throws BackendException
ExecutionEnginekillJob in interface ExecutionEngineBackendExceptionpublic void destroy()
ExecutionEnginedestroy in interface ExecutionEngineCopyright © 2007-2025 The Apache Software Foundation