public class MapReduceLauncher extends Launcher
| Modifier and Type | Field and Description |
|---|---|
static String |
SUCCEEDED_FILE_NAME |
static 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,
PrintStream ps,
String format,
boolean verbose)
Explain how a pig job will be executed on the underlying
infrastructure.
|
Exception |
getError(FileSpec spec)
Get the exception that caused a failure on the backend for a
store location (if any).
|
PigStats |
launchPig(PhysicalPlan php,
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 String SUCCEEDED_FILE_NAME
public static final String SUCCESSFUL_JOB_OUTPUT_DIR_MARKER
public Exception getError(FileSpec spec)
public void reset()
Launcherpublic PigStats launchPig(PhysicalPlan php, String grpName, PigContext pc) throws PlanException, VisitorException, IOException, ExecException, JobCreationException, Exception
LauncherlaunchPig in class LauncherPlanExceptionVisitorExceptionIOExceptionExecExceptionJobCreationExceptionExceptionpublic void explain(PhysicalPlan php, PigContext pc, PrintStream ps, String format, boolean verbose) throws PlanException, VisitorException, 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 printVisitorExceptionIOExceptionPlanExceptionpublic MROperPlan compile(PhysicalPlan php, PigContext pc) throws PlanException, IOException, VisitorException
PlanExceptionIOExceptionVisitorExceptionCopyright © 2007-2012 The Apache Software Foundation