In this tutorial you will learn how to setup and use an Apache Spark cluster on a Windows computer.
Visit the official Apache Spark download page and download the latest version of Apache Spark for Windows.
Once the download is complete, extract the contents of the downloaded archive to a directory of your choice
(e.g.,
C:\spark
).
Add the following environment variables:
setx SPARK_HOME C:\spark
setx HADOOP_HOME C:\spark
setx PATH "%PATH%;%SPARK_HOME%\bin"
Open a new command prompt and run the following command to verify the installation:
spark-shell
Congratulations! You have successfully set up Apache Spark on your Windows computer. You can now start exploring and running Spark applications.