public class MapReduceLauncher extends Launcher
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUCCEEDED_FILE_NAME |
static java.lang.String |
SUCCESSFUL_JOB_OUTPUT_DIR_MARKER |
| Constructor and Description |
|---|
MapReduceLauncher() |
| Modifier and Type | Method and Description |
|---|---|
MROperPlan |
compile(PhysicalPlan php,
PigContext pc) |
void |
explain(PhysicalPlan php,
PigContext pc,
java.io.PrintStream ps,
java.lang.String format,
boolean verbose)
Explain how a pig job will be executed on the underlying
infrastructure.
|
java.lang.Exception |
getError(FileSpec spec)
Get the exception that caused a failure on the backend for a
store location (if any).
|
PigStats |
launchPig(PhysicalPlan php,
java.lang.String grpName,
PigContext pc)
Method to launch pig for hadoop either for a cluster's
job tracker or for a local job runner.
|
void |
reset()
Resets the state after a launch
|
calculateProgress, computeTimeSpent, getErrorMessages, getStackTraceElement, getStats, getTotalHadoopTimeSpent, isComplete, progressOfRunningJobpublic static final java.lang.String SUCCEEDED_FILE_NAME
public static final java.lang.String SUCCESSFUL_JOB_OUTPUT_DIR_MARKER
public java.lang.Exception getError(FileSpec spec)
public void reset()
Launcherpublic PigStats launchPig(PhysicalPlan php, java.lang.String grpName, PigContext pc) throws PlanException, VisitorException, java.io.IOException, ExecException, JobCreationException, java.lang.Exception
LauncherlaunchPig in class LauncherPlanExceptionVisitorExceptionjava.io.IOExceptionExecExceptionJobCreationExceptionjava.lang.Exceptionpublic void explain(PhysicalPlan php, PigContext pc, java.io.PrintStream ps, java.lang.String format, boolean verbose) throws PlanException, VisitorException, java.io.IOException
Launcherexplain in class Launcherphp - PhysicalPlan to explainpc - PigContext to use for configurationps - PrintStream to write output on.format - Format to write inverbose - Amount of information to printVisitorExceptionjava.io.IOExceptionPlanExceptionpublic MROperPlan compile(PhysicalPlan php, PigContext pc) throws PlanException, java.io.IOException, VisitorException
PlanExceptionjava.io.IOExceptionVisitorExceptionCopyright © 2007-2012 The Apache Software Foundation