我正在尝试从Twitter提取数据,以便使用Storm进行实时情绪分析。由于我是Storm的新手,因此,作为了解风暴的第一步,我尝试遵循this tutorial从Twitter提取数据并将其存储在.csv
文件中。拓扑已正确初始化,似乎一切正常,但该程序无法连接到Twitter。我得到的“错误”如下:
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - Waiting for 250 milliseconds
[Twitter Stream consumer-1[Waiting for 250 milliseconds]] INFO twitter4j.TwitterStreamImpl - Establishing connection.
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - https://userstream.twitter.com/1.1/user.json
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - Waiting for 500 milliseconds
[Twitter Stream consumer-1[Waiting for 500 milliseconds]] INFO twitter4j.TwitterStreamImpl - Establishing connection.
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - https://userstream.twitter.com/1.1/user.json
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - Waiting for 1000 milliseconds
[Twitter Stream consumer-1[Waiting for 1000 milliseconds]] INFO twitter4j.TwitterStreamImpl - Establishing connection.
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - https://userstream.twitter.com/1.1/user.json
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - Waiting for 2000 milliseconds
[Twitter Stream consumer-1[Waiting for 2000 milliseconds]] INFO twitter4j.TwitterStreamImpl - Establishing connection.
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - https://userstream.twitter.com/1.1/user.json
[Twitter Stream consumer-1[Establishing connection]] INFO twitter4j.TwitterStreamImpl - Waiting for 4000 milliseconds
继续进行下去,直到达到16000毫秒的时间加倍,然后每次尝试等待16000毫秒。 什么会导致此问题?我该如何解决?