public abstract class HExecutionEngine extends java.lang.Object implements ExecutionEngine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALTERNATIVE_FILE_SYSTEM_LOCATION |
static java.lang.String |
CORE_DEFAULT_SITE |
static java.lang.String |
CORE_SITE |
protected DataStorage |
ds |
static java.lang.String |
FILE_SYSTEM_LOCATION |
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() |
void |
init()
This method is responsible for the initialization of the ExecutionEngine.
|
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, wait
instantiatePigStats, instantiateScriptState
public 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 FILE_SYSTEM_LOCATION
public static final java.lang.String ALTERNATIVE_FILE_SYSTEM_LOCATION
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()
ExecutionEngine
getDataStorage
in interface ExecutionEngine
public void init() throws ExecException
ExecutionEngine
init
in interface ExecutionEngine
ExecException
public org.apache.hadoop.mapred.JobConf getLocalConf()
public org.apache.hadoop.mapred.JobConf getExecConf(java.util.Properties properties) throws ExecException
ExecException
public PhysicalPlan compile(LogicalPlan plan, java.util.Properties properties) throws FrontendException
FrontendException
public 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
ExecutionEngine
launchPig
in interface ExecutionEngine
lp
- -- plan to compilegrpName
- -- group name for submissionpc
- -- context for executionExecException
FrontendException
public 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
ExecutionEngine
explain
in interface ExecutionEngine
lp
- -- 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 filePlanException
VisitorException
java.io.IOException
FrontendException
public java.util.Properties getConfiguration()
ExecutionEngine
getConfiguration
in interface ExecutionEngine
public void setConfiguration(java.util.Properties newConfiguration) throws ExecException
ExecutionEngine
setConfiguration
in interface ExecutionEngine
newConfiguration
- -- Properties object holding all configuration valsExecException
public void setProperty(java.lang.String property, java.lang.String value)
ExecutionEngine
setProperty
in interface ExecutionEngine
property
- to updatevalue
- to set for propertypublic ExecutableManager getExecutableManager()
ExecutionEngine
getExecutableManager
in interface ExecutionEngine
public void killJob(java.lang.String jobID) throws BackendException
ExecutionEngine
killJob
in interface ExecutionEngine
BackendException
public void destroy()
ExecutionEngine
destroy
in interface ExecutionEngine
Copyright © 2007-2012 The Apache Software Foundation