: , , - , , , . Java , . StackOverflow : , , : java.io.NotSerializableException , , SparkContext -, SparkContext , Spark. spark NotSerializableException , , .
Or it may be serializable now, but apparently changes not related to it (for example, adding a field that is not used by the lambda) may violate your code, making it non-serializable or significantly reducing your performance.
source
share