Before we can program in Spark or use vector and matrix artifacts, we need to first import the right packages and then set up SparkSession so we can gain access to the cluster handle.
In this short recipe, we highlight a comprehensive number of packages that can cover most of the linear algebra operations in Spark. The individual recipes that follow will include the exact subset required for the specific program.