public final class SparkContextFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_REUSE_SPARK_CONTEXT
If the property
beam.spark.test.reuseSparkContext is set to
true then the Spark context will be reused for beam pipelines. |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.spark.api.java.JavaSparkContext |
getSparkContext(SparkPipelineOptions options) |
static void |
stopSparkContext(org.apache.spark.api.java.JavaSparkContext context) |
public static final String TEST_REUSE_SPARK_CONTEXT
beam.spark.test.reuseSparkContext is set to
true then the Spark context will be reused for beam pipelines.
This property should only be enabled for tests.public static org.apache.spark.api.java.JavaSparkContext getSparkContext(SparkPipelineOptions options)
public static void stopSparkContext(org.apache.spark.api.java.JavaSparkContext context)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.