Not serialazable exception while running Linear regression scala 2.12
问题 While running the following spark mllib on local mode with scala 2.12.3 , encountered the following error lambda not serialazable Any inputs would be much appreciated ? (Moving onto scala 2.11 is not an option for me) Can you please let me know what can i do to avoid this issue? Thankyou import java.io.FileWriter import org.apache.spark.SparkConf import org.apache.spark.ml.Pipeline import org.apache.spark.ml.evaluation.RegressionEvaluator import org.apache.spark.ml.feature.StringIndexer