- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NIFI Gettwitter HTTP_ERROR: HTTP/1.1 401 authorization Requiered. will attempt to reconnect. ?
- Labels:
-
Apache NiFi
Created ‎02-05-2016 05:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I correctly configured the processor in NIFI with the consumer secrte, token ..... etc. from tiwtter apps that i've created.. and i'm connected to internet, Firewalls are down but i always have the error HTTP_ERROR: HTTP/1.1 401 authorization Requiered. will attempt to reconnect.
and i cant strem any data from twitter. Please help me to solve this issue.
Thanks
Created on ‎02-05-2016 05:49 PM - edited ‎08-19-2019 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you create a Twitter application as the guidelines of Twitter api request? You also need Access Token and Access Secret. link @Malek Ben Salem
Created ‎02-05-2016 05:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using the sandbox on virtualbox, you'll need to add the Nifi port for port forwarding. 2016-02-05-11-52-14.png
Created ‎02-08-2016 10:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nifi Port is already forwarded
Created ‎02-06-2016 03:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Malek Ben Salem was this resolved? If so, please either accept an answer or post the solution. Thanks!
Created ‎04-07-2016 01:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Scott Shaw, while this appears it may have been resolved for some in this discussion, I have regenerated my keys, tokens, secrets multiple times and cannot get past this error. I'm working in an HDP 2.3 Sandbox, trying to complete the Single View Demo lab. Any other ideas would be greatly appreciated. You can observe my attempts in this short video.
I'm happy to provide logs, or perform any other small tests as directed.
Thanks.
- brian
Created ‎02-06-2016 04:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may want to check the settings based on this https://community.hortonworks.com/articles/8000/apache-nifi-part-2-twitter-flow.html
Created ‎02-08-2016 10:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi neeaj
Thank you for the link, it's the material that i use.
Created ‎02-18-2016 06:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
com.twitter.hbc.httpclient.ClientBase GetTwitter[id=ba6e756b-3f65-4fce-b551-8b2e7cef9864] Error connecting w/ status code - 401, reason - Authorization Required 2016-02-19 17:55:35,983 ERROR [Timer-Driven Process Thread-2] o.a.nifi.processors.twitter.GetTwitter GetTwitter[id=ba6e756b-3f65-4fce-b551-8b2e7cef9864] Received error HTTP_ERROR: HTTP/1.1 401 Authorization Required. Will attempt to reconnect
Follow the above article
Created ‎02-08-2016 10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much
It worked, i think the problem was my twitter app, i regenerate the keys and token and reconfigured the Processor "GetTwitter" and now it's working.
Thank you all
Created ‎02-18-2016 12:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created on ‎02-18-2016 07:15 PM - edited ‎08-19-2019 02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Neeraj Sabharwal, I did follow the article above, and still got the same error.
Only change is I am using JAVA_HOME as export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64/jre as to in the article it was export JAVA_HOME=/usr/jdk64/jdk1.8.0_60/jre/
anything else I am missing, please let me know.
