Follow the below steps to install Spark on Windows:
Download Spark from the official website: http://spark.apache.org/downloads.html
After Downloading, extract the compressed file, you will have a folder extracted.
Copy this extracted file to C drive.
Next step is to set Environment Variables for Spark. Search for Environment Variables in the search bar of windows and click on it. Then follow the below screenshots:
Next, download winutils from this link: https://github.com/steveloughran/winutils
Download the same version as that of Spark.
Move this file to Spark folder\bin:
That’s it. Spark is installed. To run spark, open command prompt and run
and to run Spark2, run: