Using SparkContext in Executors : How can I use SparkContext (to create Spark Session or Cassandra Sessions) in executors?
If I pass it as parameter to the foreach or foreachpartition, then it will have a null value.  
Shall I create a new SparkContext in each executor?