Process finished with exit code 0 in Intellij when running program

apache-spark
scala

#1

Hi,

I am running below code to find Unique NY counties

package scala_examples
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext

object babyNames {
def main(args: Array[String]): Unit = {

val conf = new SparkConf().setMaster("local[*]").setAppName("Baby Names Analysis")
val sc = new SparkContext(conf)
val babyNames = sc.textFile("src//main//resources//babyNames.csv")
val rows = babyNames.map(line => line.split(","))

/*finding unique NY state counties*/
rows.map(row => row(2)).distinct.count

}
}

However, Intellij completes saying “Process finished with exit code 0”

Where is it going wrong? Any settings i need to do?