|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.backend.hadoop.executionengine.HExecutionEngine
public abstract class HExecutionEngine
Field Summary | |
---|---|
static String |
ALTERNATIVE_FILE_SYSTEM_LOCATION
|
static String |
CORE_DEFAULT_SITE
|
static String |
CORE_SITE
|
protected DataStorage |
ds
|
static String |
FILE_SYSTEM_LOCATION
|
static String |
HADOOP_SITE
|
static String |
JOB_TRACKER_LOCATION
|
protected Launcher |
launcher
|
static String |
LOCAL
|
protected Map<OperatorKey,OperatorKey> |
logicalToPhysicalKeys
|
static String |
MAPRED_DEFAULT_SITE
|
static String |
MAPREDUCE_FRAMEWORK_NAME
|
protected Map<Operator,PhysicalOperator> |
newLogToPhyMap
|
protected PigContext |
pigContext
|
static String |
YARN_DEFAULT_SITE
|
static String |
YARN_SITE
|
Constructor Summary | |
---|---|
HExecutionEngine(PigContext pigContext)
|
Method Summary | |
---|---|
PhysicalPlan |
compile(LogicalPlan plan,
Properties properties)
|
void |
explain(LogicalPlan lp,
PigContext pc,
PrintStream ps,
String format,
boolean verbose,
File file,
String suffix)
This method handles the backend processing of the Explain command. |
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(Properties properties)
|
ExecutableManager |
getExecutableManager()
Returns the ExecutableManager to be used in Pig Streaming. |
Map<LOForEach,Map<LogicalRelationalOperator,PhysicalOperator>> |
getForEachInnerLogToPhyMap(LogicalPlan plan)
|
org.apache.hadoop.mapred.JobConf |
getJobConf()
Deprecated. |
org.apache.hadoop.mapred.JobConf |
getLocalConf(Properties properties)
|
Map<Operator,PhysicalOperator> |
getLogToPhyMap()
|
void |
init()
This method is responsible for the initialization of the ExecutionEngine. |
void |
killJob(String jobID)
This method is called when a user requests to kill a job associated with the given job id. |
PigStats |
launchPig(LogicalPlan lp,
String grpName,
PigContext pc)
This method is responsible for the actual execution of a LogicalPlan. |
void |
setConfiguration(Properties newConfiguration)
Responsible for updating the properties for the ExecutionEngine. |
void |
setProperty(String property,
String value)
Responsible for setting a specific property and value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.pig.backend.executionengine.ExecutionEngine |
---|
instantiatePigStats, instantiateScriptState |
Field Detail |
---|
public static final String HADOOP_SITE
public static final String CORE_SITE
public static final String YARN_SITE
public static final String CORE_DEFAULT_SITE
public static final String MAPRED_DEFAULT_SITE
public static final String YARN_DEFAULT_SITE
public static final String JOB_TRACKER_LOCATION
public static final String FILE_SYSTEM_LOCATION
public static final String ALTERNATIVE_FILE_SYSTEM_LOCATION
public static final String MAPREDUCE_FRAMEWORK_NAME
public static final String LOCAL
protected PigContext pigContext
protected DataStorage ds
protected Launcher launcher
protected Map<OperatorKey,OperatorKey> logicalToPhysicalKeys
protected Map<Operator,PhysicalOperator> newLogToPhyMap
Constructor Detail |
---|
public HExecutionEngine(PigContext pigContext)
Method Detail |
---|
@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(Properties properties)
public org.apache.hadoop.mapred.JobConf getExecConf(Properties properties) throws ExecException
ExecException
public PhysicalPlan compile(LogicalPlan plan, Properties properties) throws FrontendException
FrontendException
public Map<Operator,PhysicalOperator> getLogToPhyMap()
public Map<LOForEach,Map<LogicalRelationalOperator,PhysicalOperator>> getForEachInnerLogToPhyMap(LogicalPlan plan)
public PigStats launchPig(LogicalPlan lp, String grpName, PigContext pc) throws FrontendException, ExecException
ExecutionEngine
launchPig
in interface ExecutionEngine
lp
- -- plan to compilegrpName
- -- group name for submissionpc
- -- context for execution
ExecException
FrontendException
public void explain(LogicalPlan lp, PigContext pc, PrintStream ps, String format, boolean verbose, File file, String suffix) throws PlanException, VisitorException, 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 file
PlanException
VisitorException
IOException
FrontendException
public Properties getConfiguration()
ExecutionEngine
getConfiguration
in interface ExecutionEngine
public void setConfiguration(Properties newConfiguration) throws ExecException
ExecutionEngine
setConfiguration
in interface ExecutionEngine
newConfiguration
- -- Properties object holding all configuration vals
ExecException
public void setProperty(String property, String value)
ExecutionEngine
setProperty
in interface ExecutionEngine
property
- to updatevalue
- to set for propertypublic ExecutableManager getExecutableManager()
ExecutionEngine
getExecutableManager
in interface ExecutionEngine
public void killJob(String jobID) throws BackendException
ExecutionEngine
killJob
in interface ExecutionEngine
BackendException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |