代码如下:
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的新手,请看一看,非常感谢。