2016-03-28 50 views
1

我试图箱应遵循@BBCBreaking流(什么应该5402612 Twitter的ID),但我不断收到以下HTTP错误:SpringXD - > twitterstream --follow:HTTP错误结束

2016-03-28T02:13:12+0200 1.3.1.RELEASE INFO DeploymentSupervisor-0 zk.ZKStreamDeploymentHandler - Deployment status for stream 'mystream': DeploymentStatus{state=deployed} 
2016-03-28T02:13:13+0200 1.3.1.RELEASE WARN twitterSource-1-1 twitter.TwitterStreamChannelAdapter - Http error, waiting for 5 seconds before restarting 
2016-03-28T02:13:19+0200 1.3.1.RELEASE WARN twitterSource-1-1 twitter.TwitterStreamChannelAdapter - Http error, waiting for 10 seconds before restarting 
2016-03-28T02:13:30+0200 1.3.1.RELEASE WARN twitterSource-1-1 twitter.TwitterStreamChannelAdapter - Http error, waiting for 20 seconds before restarting 

我流的命令是:

stream create --name mystream --definition "twitterstream --follow='5402612' | log" --deploy 

上运行SpringXD:1.3.1.RELEASE 请,任何想法,为什么错误?

+0

尝试启用DEBUG日志记录 - 日志配置位于'.groovy'文件的'xd/config'文件夹中。 –

+0

对不起,我是SpringXD的新手,我该怎么做?我可以看到xd-singlenode-logback.groovy文件,...我是否需要编辑它或以某种方式在我的流中运行它? – miro

+0

是的,将'org.springframework.integration'和'org.springframework.xd',org.springframework.xd.dirt.server'的记录器设置为DEBUG并为'org.springframework.social.twitter'添加一个记录器也在DEBUG。或者你可以设置所有'org.springframework'并注释掉更具体的。 –

回答

0

您可以通过启用DEBUG日志记录来调试此类情况 - 日志配置位于xd/config文件夹中的.groovy文件中;例如xd-singlenode-logback.groovy

设置记录仪为org.springframework.integrationorg.springframework.xdorg.springframework.xd.dirt.serverDEBUGDEBUG增加对org.springframework.social.twitter也是一个记录器。

或者您可以设置org.springframework的所有内容,并注释更具体的内容。