spark map操作使用类中定义的方法、变量出现NullpointException或Task not serializable问题解决

NoSuchKey