Scala, Mllib, Machine Learning, Linear Regression, Spark.
Let’s start by importing the necessary packages. // to start a spark session import org.apache.spark.sql.SparkSession // to use lineer regression model import org.apache.spark.ml.regression.LinearRegression Let’s add a small tweak to simplify log reporting. //set logging to level of ERROR import