Demo: Running Spark on Windows

Demo: Running Spark on Windows

Lesson objectives

In this lesson, we will explain the following topics:

  • Demonstrate the process of installing and running Spark on Windows.
  • Understand the configuration steps required for Spark installation on Windows.
  • Explore the execution of Spark applications on a Windows environment.

Install Apache Spark on Windows

  1. Install Java Development Kit (JDK):

    • Download OpenJDK from the Adoptium website.
    • Install JDK and set the JAVA_HOME environment variable.
  2. Download Spark:

    • Go to the Apache Spark website.
    • Choose a Spark release (e.g., 3.4.3) and a package type (e.g., pre-built for Apache Hadoop 3.3).
    • Download and extract the package to a directory (e.g., C:\spark).
  3. Set Environment Variables:

    • Add Spark’s bin directory to the system PATH. For example, add C:\spark\bin to the PATH variable.
    • Set HADOOP_HOME if required (e.g., C:\hadoop).
  4. Install WinUtils:

  5. Verify Installation:

    • Open a command prompt.
    • Type spark-shell and press Enter.
    • The Spark shell should start, confirming the installation.

By following these steps, you will have Apache Spark installed on your Windows system.

Watch on Youtube

Watch on our Servers

You can download the videog the link and chose save link as: Download Video