# Download pre-built for Hadoop 3
wget https://archive.apache.org/dist/spark/spark-4.1.1/spark-4.1.1-bin-hadoop3.tgz
tar -xzf spark-4.1.1-bin-hadoop3.tgz
# Set environment (add to ~/.bashrc for permanence)
export SPARK_HOME=/path/to/spark-4.1.1-bin-hadoop3
export PATH=$SPARK_HOME/bin:$PATH
Verify
pyspark --version
# Should show Spark 4.1.1
Why this step matters:
-Establishes a local development environment for hands-on practice
-Enables running Spark apps without cloud costs during learning