storm twitter访问密钥不正确或丢失

lskq00tm  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(486)

当我试图运行StormTwitter代码从网上获取数据时,我得到了这个错误。

[Wed May 10 18:25:45 PDT 2017]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 systemclock is in sync.
        <html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; 
        charset=utf-8"/>\n<title>Error 401 Unauthorized</title>
           </head>
           <body>
           <h2>HTTP ERROR: 401</h2>
         <p>Problem accessing '/1.1/statuses/filter.json'. Reason:
           <pre>    Unauthorized</pre>
          </body>
               </html>

任何人都可以告诉我该怎么解决这个问题。
提前谢谢

htrmnn0y

htrmnn0y1#

检查您的用户密钥、用户密钥、访问令牌和访问令牌密钥是否编写正确。
如果系统时钟调整不正确,也可能发生此错误。
去http://dev.twitter.com and 检查是否为应用程序设置了读写权限。如果未设置,请设置它并再次重新生成访问密钥。

相关问题