Apache spark Spark Twitter集成

Apache spark Spark Twitter集成,apache-spark,twitter,Apache Spark,Twitter,我使用下面的代码来发送tweet,它一直工作到很久以前,现在它没有发送任何tweet,目录中只显示了“_success”文件,这里可能发生了什么 我没有在这里保留一些捕获Oauth细节的代码 val ssc = new StreamingContext(sc, Seconds(1)) // Create a DStream from Twitter using our streaming context val tweets = TwitterUtils.createStrea

我使用下面的代码来发送tweet,它一直工作到很久以前,现在它没有发送任何tweet,目录中只显示了“_success”文件,这里可能发生了什么

我没有在这里保留一些捕获Oauth细节的代码

     val ssc = new StreamingContext(sc, Seconds(1))
// Create a DStream from Twitter using our streaming context
    val tweets = TwitterUtils.createStream(ssc, None)
//you can verify that there are directories with names as tweets-* .Please stop after a while in order to prevent storage getting exhausted
tweets.saveAsTextFiles("tweets")

你是实时推特吗?你是从一个特定的用户或标签上获取推文?因为您需要检查是否有tweet要在一段时间后获取。