SparkPythonTwitterStreamingExample input and output are genereated by the tweet.py You need to install tweepy and use python3.