I cannot make the class serializable, and I don't want to create the instance in the lambda function again and again. So,
1. How to make the NotSerializable object as a static and create it once per machine?
2. If calling rdd.forEachPartition, how ...