I wants to unsubscribe
Sent from Mail for Windows
I have installed pyspark using pip.
I m getting the error while running the following code.
from pyspark import SparkContext
sc=SparkContext()
a=sc.parallelize([1,2,3,4])
print(f"a_take:{a.take(2)}")
py4j.protocol.Py4JJavaError: An error occurred while calling
z:org.apache.spark.api.python.Pytho
I am getting the py4j.protocol.Py4JJavaError while running SparkContext. Can
you please help me to resolve this issue.
from pyspark import SparkContext
sc=SparkContext()
a=sc.parallelize([1,2,3,4])
print(f"a_take:{a.take(2)}")
py4j.protocol.Py4JJavaError: An error occurred while calling
z:org.a
I am getting the py4j.protocol.Py4JJavaError while running SparkContext. Can
you please help me to resolve this issue.
Sent from Mail for Windows