I am new to Spark and Python. I installed python 3.5.1 and Spark-1.6.0-bin-hadoop2.4 on windows.
I get below errors when sc = SparkContext ("local", "Simple App") is executed from the python shell.
Can you help?
from import pyspark SparkConf, SparkContext
sc = SparkContext ("local", "Simple App")
Traceback (last last call):
File "", line 1, in
sc = SparkContext("local", "Simple App")
File "C: \ spark-1.6.0-bin-hadoop2.4 \ python \ pyspark \ context.py", line 112, in init
SparkContext._ensure_initialized(self, gateway=gateway)
File "C: \ spark-1.6.0-bin-hadoop2.4 \ python \ pyspark \ context.py", line 245, in _ensure_initialized
SparkContext._gateway = gateway or launch_gateway()
"C:\spark-1.6.0-bin-hadoop2.4\python\pyspark\java_gateway.py", 79, launch_gateway
proc = Popen(command, stdin=PIPE, env=env)
"C:\Python35-32\lib\subprocess.py", 950, init restore_signals, start_new_session)
"C:\Python35-32\lib\subprocess.py", 1220, _execute_child STARTUPINFO)
FileNotFoundError: [WinError 2]