Scala, Mllib, Machine Learning, Linear Regression, Spark.
org.apache.log4j._ Logger.getLogger("org").setLevel(Level.ERROR) Start a session: //start a spark Session val spark = SparkSession.builder().getOrCreate() After creating a session, let’s read the data that we will work on. //read data file val data = spark.read. option("header","true"). //use