在namenode处于安全模式并恢复正常后,twitter流api将不工作

cnjp1d6j  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(311)

我们的twitter流api一直运行良好,直到namenode模式在删除一些日志后变为安全模式(因为var目录中的可用空间有限)。

  1. 16/07/22 14:58:29 INFO twitter4j.TwitterStreamImpl: Waiting for 240000 milliseconds
  2. 16/07/22 15:02:29 INFO twitter4j.TwitterStreamImpl: Establishing connection.
  3. 16/07/22 15:02:30 INFO twitter4j.TwitterStreamImpl: 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.
  4. <html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<title>Error 401 Unauthorized</title>
  5. </head>
  6. <body>
  7. <h2>HTTP ERROR: 401</h2>
  8. <p>Problem accessing '/1.1/statuses/filter.json'. Reason:
  9. <pre> Unauthorized</pre>
  10. </body>
  11. </html>

我控制系统时钟,它是正确的,而且我们的代币也在工作。我怎么能解决这个问题?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题