我正在尝试在我的本地计算机上运行pyspark
。我收到以下错误:
Traceback (most recent call last):
File "", line 30, in sparkTest with SparkContext("local", "PySparkWordCount") as sc:
File "C:\Program Files\Anaconda3\lib\site-packages\pyspark-2.2.0-py3.5.egg\pyspark\context.py", line 115, in __init__
SparkContext._ensure_initialized(self, gateway=gateway, conf=conf)
File "C:\Program Files\Anaconda3\lib\site-packages\pyspark-2.2.0-py3.5.egg\pyspark\context.py", line 283, in _ensure_initialized
SparkContext._gateway = gateway or launch_gateway(conf)
File "C:\Program Files\Anaconda3\lib\site-packages\pyspark-2.2.0-py3.5.egg\pyspark\java_gateway.py", line 80, in launch_gateway
proc = Popen(command, stdin=PIPE, env=env)
File "C:\Program Files\Anaconda3\lib\subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "C:\Program Files\Anaconda3\lib\subprocess.py", line 1224, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Process finished with exit code