-
Fields Field Description org.apache.beam.runners.spark.translation.SparkContextFactory.TEST_REUSE_SPARK_CONTEXT This will leak your SparkContext, any attempt to create a new SparkContext later will fail. Please useSparkContextFactory.setProvidedSparkContext(JavaSparkContext)/SparkContextFactory.clearProvidedSparkContext()instead to properly control the lifecycle of your context. Alternatively you may also provide a SparkContext usingSparkPipelineOptions.setUsesProvidedSparkContext(boolean)together withSparkContextOptions.setProvidedSparkContext(JavaSparkContext)and close that one appropriately. Tests of this module should useSparkContextRule.