concept installation in category spark

This is an excerpt from Manning's book Spark in Action, Second Edition.
The scenario you will follow involves distributed loading of a CSV file, performing a small operation, and saving the result in a PostgreSQL database (and Apache Derby). Knowing or installing PostgreSQL is not required to understand the example. If you are familiar with using other RDBMSs and Java, you will easily adapt to this example. Appendix F provides additional help with relational databases (tips, installation, links, and more).
In most of the book, you will never need to install Spark because all the examples are designed to work in Spark’s local mode (see chapter 5). When you run a Spark application in local mode using Maven, Maven will download the required files the first time, and then your application will take control. Therefore, installing Apache Spark is something you want to consider only when you get closer to production or if you want to use Python or Scala in the Spark shell (see chapter 5). Nevertheless, installation of Spark is a pretty straightforward process.
$ brew install apache-spark ==> Downloading https://www.apache.org/dyn/closer.lua?path=spark/ ? spark-2.3.1/spark-2.3.1-bin-hadoop2.7.tgz ==> Best Mirror http://apache.mirrors.tds.net/spark/spark-2.3.1/spark-2.3.1-bin-hadoop2.7.tgz #################################################################### 100.0% ?? /usr/local/Cellar/apache-spark/2.3.1: 1,018 files, 243.8MB, ? built in 1 minute 49 seconds For v2.3.1, Apache Spark's home directory will be in /usr/local/Cellar/apache-spark/ 2.3.1/libexec. To check that the installation went well, you can try to run the Spark shell: $ cd /usr/local/Cellar/apache-spark/2.3.1/libexec $ cd bin $ ./spark-shell Press Ctrl-C to exit (or refer to the examples in chapter 5).