我试图按照本教程https://github.com/spring-projects/spring-xd-samples/tree/master/analytics-dashboard
进行操作我在modules.yml上进行了配置
twitter:
consumerKey: {your-consumer-key}
consumerSecret: {your-consumer-secret}
accessToken: {your-access-token}
accessTokenSecret: {your-access-token-secret}
用我自己的钥匙然后当我跑
stream create tweets --definition "twitterstream | log" --deploy
出现此错误
2016-05-24T12:48:07-0500 1.3.1.RELEASE ERROR twitterSource-1-1 twitter.TwitterStreamChannelAdapter - Twitter authentication failed: 401 Authorization Required
答案 0 :(得分:0)
401错误表示“身份验证凭据丢失或不正确”。确保凭据正确无误。见https://dev.twitter.com/overview/api/response-codes