I have the following error IndexError: list index out of range
in my jupyter notebook when I try to import
import findspark
findspark.init()
I know the answer already exist in this link, (so it is NOT a duplicate) however, when I ran which spark-shell
the output is: /opt/anaconda3/bin/spark-shell
which gives me the directory and so I ran:
import findspark
findspark.init('/opt/anaconda3/bin/spark-shell')
And I get the same error. How can I fix it? Thank you.