• Register
0 votes
148 views

Problem :

I am getting bellow error while trying to run pyspark.

java gateway process exited before sending the driver its port number

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

One possible reason behind getting this error is JAVA_HOME is not set or another reason may be the java is not installed.

I solved the issue by following bellow by running

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Further Readings:

https://github.com/jupyter/notebook/issues/743

9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
Problem: How to do it? Java gateway process exited before sending the driver its port number
asked Mar 25 Ifra 24.4k points
0 votes
2 answers 1K views
1K views
Problem : I am getting bellow error while trying to run pyspark on my macbook air exception: java gateway process exited before sending the driver its port number
asked Oct 19, 2019 peterlaw 6.9k points
1 vote
1 answer 610 views
610 views
Problem: I got this Spark connection issue, and SparkContext didn't work for sc. The command to initialize ipython notebook: ipython notebook --profile=pyspark Environment: Mac OS Python 2.7.10 Spark 1.4.1 java version "1.8.0_65" Can anyone help?
asked Mar 27, 2020 LizzyM 6.1k points
2 votes
1 answer 119 views
119 views
Problem: I got this Spark connection issue, and SparkContext didn't work for sc. The command to initialize ipython notebook: ipython notebook --profile=pyspark Environment: Mac OS Python 2.7.10 Spark 1.4.1 java version "1.8.0_65" Can anyone explain or help?
asked Mar 24, 2020 LizzyM 6.1k points
0 votes
1 answer 148 views
0 votes
1 answer 2 views
2 views
Problem: I need your help; exception: java gateway process exited before sending its port number
asked Mar 19 Wafa Abu Yousef 6.1k points
0 votes
1 answer 9 views
9 views
Solution: I need help in this: exception: java gateway process exited before sending its port number
asked Mar 17 Wafa Abu Yousef 6.1k points
0 votes
1 answer 440 views
440 views
Problem: I have recently started learning pyspark. I am very new to pyspark. I have written below code but it sowing me the error. from pyspark import SparkContext, SparkConf from pyspark.sql import SQLContext conf = SparkConf().setAppName("myApp").setMaster("local") sc ... 'ind', "state"]) Attributeerror: 'pipelinedrdd' object has no attribute 'todf' Can somebody help me in fixing my above code?
asked Aug 10, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 97 views
97 views
Problem: I am beginner to python and pyspark. I am trying to start the very simple app with the help of spark. I have already downloaded the spark with the help of following command: pip install spark. But now if I try to run the code below error occurs: Failed to ... ']= "C:\\winutils" lines = sc.textFile("ob.txt") pythonLines = lines .filter(lambda line: "python" in line) print(pythonLines)
asked Jul 28, 2020 Raphael Pacheco 4.9k points