pyspark java网关问题同时获取sparkcontext

时间:2018-06-20 03:04:38

标签: pyspark anaconda

代码如下:

from pyspark import SparkContext
sc = SparkContext.getOrCreate();

当获取sparkcontext时,出现此错误:

  File "C:\Users\jv219\AppData\Local\Continuum\Anaconda2\lib\site-packages\pyspark\java_gateway.py", line 93, in launch_gateway
    raise Exception("Java gateway process exited before sending its port number")

Exception: Java gateway process exited before sending its port number

我;是pyspark的新手,请看一看,非常感谢。

0 个答案:

没有答案