public class SparkLauncher extends Launcher
Modifier and Type | Class and Description |
---|---|
static class |
SparkLauncher.ResourceType |
Launcher.HangingJobKiller, Launcher.JobControlThreadExceptionHandler
failureMap, jc, jobControlException, jobControlExceptionStackTrace, totalHadoopTimeSpent
Constructor and Description |
---|
SparkLauncher() |
Modifier and Type | Method and Description |
---|---|
SparkOperPlan |
compile(PhysicalPlan physicalPlan,
PigContext pigContext) |
void |
explain(PhysicalPlan pp,
PigContext pc,
PrintStream ps,
String format,
boolean verbose)
Explain how a pig job will be executed on the underlying infrastructure.
|
void |
kill() |
void |
killJob(String jobID,
org.apache.hadoop.conf.Configuration conf) |
PigStats |
launchPig(PhysicalPlan physicalPlan,
String grpName,
PigContext pigContext)
Method to launch pig for hadoop either for a cluster's job tracker or for
a local job runner.
|
calculateProgress, computeTimeSpent, destroy, getErrorMessages, getExceptionFromString, getStackTraceElement, getTotalHadoopTimeSpent, isComplete, reset, setJobException
public PigStats launchPig(PhysicalPlan physicalPlan, String grpName, PigContext pigContext) throws Exception
Launcher
public SparkOperPlan compile(PhysicalPlan physicalPlan, PigContext pigContext) throws PlanException, IOException, VisitorException
PlanException
IOException
VisitorException
public void explain(PhysicalPlan pp, PigContext pc, PrintStream ps, String format, boolean verbose) throws IOException
Launcher
explain
in class Launcher
pp
- PhysicalPlan to explainpc
- PigContext to use for configurationps
- PrintStream to write output on.format
- Format to write inverbose
- Amount of information to printVisitorException
IOException
public void kill() throws BackendException
kill
in class Launcher
BackendException
public void killJob(String jobID, org.apache.hadoop.conf.Configuration conf) throws BackendException
killJob
in class Launcher
BackendException
Copyright © 2007-2017 The Apache Software Foundation