Package org.apache.beam.runners.spark
Class SparkRunnerDebugger
java.lang.Object
org.apache.beam.sdk.PipelineRunner<SparkPipelineResult>
org.apache.beam.runners.spark.SparkRunnerDebugger
public final class SparkRunnerDebugger
extends org.apache.beam.sdk.PipelineRunner<SparkPipelineResult>
Pipeline runner which translates a Beam pipeline into equivalent Spark operations, without
running them. Used for debugging purposes.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPipelineResult of running aPipelineusingSparkRunnerDebuggerUseSparkRunnerDebugger.DebugSparkPipelineResult.getDebugString()to get aStringrepresentation of thePipelinetranslated into Spark native operations. -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkRunnerDebuggerfromOptions(org.apache.beam.sdk.options.PipelineOptions options) run(org.apache.beam.sdk.Pipeline pipeline) Methods inherited from class org.apache.beam.sdk.PipelineRunner
create, run, run
-
Method Details
-
fromOptions
-
run
- Specified by:
runin classorg.apache.beam.sdk.PipelineRunner<SparkPipelineResult>
-