This is a simplest example to run Spark. In my case, I didn’t install Spark following the instructions in the post. Instead, I use “sdkman“ which is much simpler. After your Spark is ready, I run the commands below.
// Execute "spark-shell" to start the REPL.