September 2018
Intermediate to advanced
398 pages
9h 43m
English
We are going to install Spark to run it in local mode. This mode only uses the CPU cores of the localhost to run jobs. For this, download Spark 2.3.1 from this page: https://spark.apache.org/downloads.html.
Then extract it to some folder for instance, ~/ for your home folder on Linux or macOS:
tar xfvz spark-2.3.1-bin-hadoop2.7.tgz ~/
You can try running spark shell to verify that the installation is correct:
cd ~/spark-2.3.1-bin-hadoop2.7/bin./spark-shell
After a couple of seconds, you should see a welcome message followed by the same scala> prompt that we had in the Scala console:
(...)Spark context Web UI available at http://192.168.0.11:4040Spark context available as 'sc' (master = local[*], app id = local-1536218093431). ...
Read now
Unlock full access