-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
A My Solution :IndexError Traceback (most recent call last)
in ()
1
2 import findspark
----> 3 findspark.init('/path/to/spark/home')
/usr/local/lib/python3.6/dist-packages/findspark.py in init(spark_home, python_path, edit_rc, edit_profile)
133 # add pyspark to sys.path
134 spark_python = os.path.join(spark_home, 'python')
--> 135 py4j = glob(os.path.join(spark_python, 'lib', 'py4j-*.zip'))[0]
136 sys.path[:0] = [spark_python, py4j]
137
The Solution is:
IndexError: list index out of range
os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"
os.environ["SPARK_HOME"] = "/content/spark-2.4.4-bin-hadoop2.7"
Metadata
Metadata
Assignees
Labels
No labels