I could solve the issue but the solution is very weird. 

I run this command cat old_script.py > new_script.py then I submitted the
job using the new script.

This is the second time I face such issue with python script and I have no
explanation to what happened. 

I hope this trick help someone else who face similar situation.




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Can-not-import-KafkaProducer-in-spark-streaming-job-tp26857p26859.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to