I installed pyspark from anaconda like
$ conda install pyspark
after that in my jupyter notebook it works fine, but in the tutorial https://mortada.net/3-easy-steps-to-set-up-pyspark.html is mentioned that you have to set up the environment variables like
$ export SPARK_HOME=~/spark-2.2.0-bin-hadoop2.7
$ export PYSPARK_PYTHON=~/anaconda/bin/python
When I tried to rerun pyspark in my jupyter notebook the next error appear
FileNotFoundError: [Errno 2] No such file or directory: '/home/jogabell/Documentos/programas/spark-2.4.7-bin-hadoop2.7/./bin/spark-submit': '/home/jogabell/Documentos/programas/spark-2.4.7-bin-hadoop2.7/./bin/spark-submit'
My jupyter notebook look like:
from pyspark import SparkContext
sc = SparkContext(master="local[4]")
print(sc)
Help me to fix it, please.