
# Source the modified file to make it effective: # Configure Spark to use Hadoop classpathĮxport SPARK_DIST_CLASSPATH=$(hadoop classpath) bashrc file: vi ~/.bashrcĪdd the following lines to the end of the file: export SPARK_HOME=~/hadoop/spark-3.0.1 We also need to configure Spark environment variable SPARK_DIST_CLASSPATH to use Hadoop Java class path. Setup SPARK_HOME environment variables and also add the bin subfolder into PATH variable. The Spark binaries are unzipped to folder ~/hadoop/spark-3.0.1. Unpack the package using the following command: mkdir ~/hadoop/spark-3.0.1 Visit Downloads page on Spark website to find the download URL.ĭownload the binary package using the following command (remember to replace the URL with your closest download site): wget Now let’s start to configure Apache Spark 3.0.1 in a UNIX-alike system.

OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) Run the following command to verify Java environment: $ java -version
Install apache spark on centos install#
In the Hadoop installation articles, it includes the steps to install OpenJDK. Java JDK 1.8 needs to be available in your system.
Install apache spark on centos windows 10#
Install Hadoop 3.3.0 on Windows 10 using WSL (follow this page if you are planning to install it on WSL).If you choose to download Spark package with pre-built Hadoop, Hadoop 3.3.0 configuration is not required.įollow one of the following articles to install Hadoop 3.3.0 on your UNIX-alike system:

Thus we need to ensure a Hadoop environment is setup first. This article will use Spark package without pre-built Hadoop. If you are planning to configure Spark 3.0.1 on WSL, follow this guide to setup WSL in your Windows 10 machine: Install Windows Subsystem for Linux on a Non-System Drive Hadoop 3.3.0 Prerequisites Windows Subsystem for Linux (WSL) These instructions can be applied to Ubuntu, Debian, Red Hat, OpenSUSE, etc. This article provides step by step guide to install the latest version of Apache Spark 3.0.1 on a UNIX alike system (Linux) or Windows Subsystem for Linux (WSL).
