_pickle.PicklingError: Could not serialize object: Exception: It appears that you are attempting to reference SparkContext from a broadcast variable, action,or transformation.
SparkContext can only be used on the driver,notin code that it run on workers. For more information, see SPARK-<