小编hit*_*_hk的帖子

无法创建火花会话

当我创建一个 spark 会话时,它抛出了一个错误

  • 无法创建 Spark 会话

  • 使用pyspark,代码片段:

ValueError                                Traceback (most recent call last)
<ipython-input-13-2262882856df> in <module>()
     37 if __name__ == "__main__":
     38     conf = SparkConf()
---> 39     sc = SparkContext(conf=conf)
     40 #     print(sc.version)
     41 #     sc = SparkContext(conf=conf)

~/anaconda3/lib/python3.5/site-packages/pyspark/context.py in __init__(self, master, appName, sparkHome, pyFiles, environment, batchSize, serializer, conf, gateway, jsc, profiler_cls)
    131                     " note this option will be removed in Spark 3.0")
    132 
--> 133         SparkContext._ensure_initialized(self, gateway=gateway, conf=conf)
    134         try:
    135             self._do_init(master, appName, sparkHome, pyFiles, environment, batchSize, …
Run Code Online (Sandbox Code Playgroud)

python networking machine-learning pyspark jupyter-notebook

2
推荐指数
1
解决办法
6899
查看次数