def _default_sparkconf_builder():
"""
Build a SparkConf object that can be used for the worker's SparkContext.
"""
from pyspark import SparkConf
return SparkConf().setAppName('SparkCeleryTask') \
.set('spark.dynamicAllocation.minExecutors', 1) \
.set('spark.dynamicAllocation.executorIdleTimeout', 60) \
.set('spark.dynamicAllocation.cachedExecutorIdleTimeout', 3600)
评论列表
文章目录