Why do I get a error while converting my json tweet to an rdd?

I got the text of a tweet in json and I want to convert it to an RDD. But I get the following error. Traceback (most recent call last): File “/home/afzal/”, line 48, in <module> get_twitter_data() File “/home/afzal/”, line 41, in get_twitter_data words =, multiLine=True).flatMap(lambda line: line.split(” “)) File “/usr/hdp/current/spark2-client/python/lib/”, line 249, in json […]