0

I have tried creating a SparkSession on VS Code with Jupyter notebook using code:

spark = SparkSession.builder.master("local[5]").appName("Data analysis").getOrCreate()

but I kept on getting error:

FileNotFoundError: [WinError 2] The system cannot find the file specified

I was expecting it to open a SparkSession so I could code. I have tried adding:

spark = SparkSession.builder\
     .master("local")\
    .appName("Word Count")\
    .getOrCreate()

but it showed the same error.

Chan Guan Yu
  • 119
  • 1
  • 8
Bez
  • 1
  • Maybe try [these](https://stackoverflow.com/questions/35448746/spark-python-error-filenotfounderror-winerror-2-the-system-cannot-find-the-f) steps? – vilalabinot Dec 05 '22 at 00:06

0 Answers0