public final class SparkRunnerDebugger extends PipelineRunner<SparkPipelineResult>
Example:
SparkPipelineOptions options = PipelineOptionsFactory.as(SparkPipelineOptions.class);
options.setRunner(SparkRunnerDebugger.class);
Pipeline pipeline = Pipeline.create(options);
SparkRunnerDebugger.DebugSparkPipelineResult result =
(SparkRunnerDebugger.DebugSparkPipelineResult) pipeline.run();
String sparkPipeline = result.getDebugString();
Modifier and Type | Class and Description |
---|---|
static class |
SparkRunnerDebugger.DebugSparkPipelineResult
PipelineResult of running a
Pipeline using SparkRunnerDebugger
Use SparkRunnerDebugger.DebugSparkPipelineResult.getDebugString() to get a String representation of the Pipeline
translated into Spark native operations. |
Modifier and Type | Method and Description |
---|---|
static SparkRunnerDebugger |
fromOptions(PipelineOptions options) |
SparkPipelineResult |
run(Pipeline pipeline)
Processes the given
Pipeline , potentially asynchronously, returning a runner-specific
type of result. |
create, run, run
public static SparkRunnerDebugger fromOptions(PipelineOptions options)
public SparkPipelineResult run(Pipeline pipeline)
PipelineRunner
Pipeline
, potentially asynchronously, returning a runner-specific
type of result.run
in class PipelineRunner<SparkPipelineResult>