def init_spark_context():
# load spark context
conf = SparkConf().setAppName("movie_recommendation-server")
# IMPORTANT: pass aditional Python modules to each worker
sc = SparkContext(conf=conf, pyFiles=['engine.py', 'app.py', 'util.py'])
return sc
server.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录