3

Hy,

I have been run Spark multiple times (Spyder IDE). Today I got this error (the code it's the same)

from py4j.java_gateway import JavaGateway gateway = JavaGateway() os.environ['SPARK_HOME']="C:/Apache/spark-1.6.0" os.environ['JAVA_HOME']="C:/Program Files/Java/jre1.8.0_71" sys.path.append("C:/Apache/spark-1.6.0/python/") os.environ['HADOOP_HOME']="C:/Apache/spark-1.6.0/winutils/" from pyspark import SparkContext from pyspark import SparkConf conf = SparkConf() The system cannot find the path specified. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Apache\spark-1.6.0\python\pyspark\conf.py", line 104, in __init__ SparkContext._ensure_initialized() File "C:\Apache\spark-1.6.0\python\pyspark\context.py", line 245, in _ensure_initialized SparkContext._gateway = gateway or launch_gateway() File "C:\Apache\spark-1.6.0\python\pyspark\java_gateway.py", line 94, in launch_gateway raise Exception("Java gateway process exited before sending the driver its port number") Exception: Java gateway process exited before sending the driver its port number 

What's go wrong? thanks for your time.

2
  • I think you should follow the answer mentioned at this link stackoverflow.com/questions/30763951/… Commented Apr 22, 2016 at 8:54
  • Ok... Someone install a new java version in VirtualMachine. I'm only change this os.environ['JAVA_HOME']="C:/Program Files/Java/jre1.8.0_91" and works again. Commented Apr 22, 2016 at 10:04

1 Answer 1

6

Ok... Someone install a new java version in VirtualMachine. I'm only change this

os.environ['JAVA_HOME']="C:/Program Files/Java/jre1.8.0_91" 

and works again. thks for your time.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.