Process finished with exit code 0 in Intellij when running program




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 = => line.split(","))

/*finding unique NY state counties*/ => 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?