I think you didn’t define the sparkContext object.
Similar problem was faced by me,when I initiated the sparkContext outside the main function.
Then I realized that I have to initiate it inside the main function.
You should have created the SparkContext in the main functions of GroupEvolutionES. Just do that and your code will work fine.
If you want to know more about Spark, then do check out this awesome video tutorial: