Created 10-13-2017 04:28 PM
Hello, I have install HDP2.6 on virtualbox, I configured GetTwitter processor in Nifi and I started the streaming but I got connection error. I went through this link but could not resolve the problem, Here is a screenshot of my error. I am using Hortonwork for my final year project and I am new in the community.
Created 10-13-2017 08:06 PM
Are you running the processor in a cluster? How many concurrent tasks and what is the run schedule of the processor?
Created 10-13-2017 09:44 PM
I followed this tutorial, I just started with Hortonwork
Created on 10-14-2017 12:11 AM - edited 08-17-2019 08:46 PM
Change the Run Schedule to a value greater than 0 sec in the GetTwitter processor. I recommend trying 15 secs.
The Scheduling tab is where the property is located
Created 10-16-2017 01:12 PM
That is a completely different issue. That looks like a port isn't opened. Look on the system where your ambari metrics process is running and make sure that port is open on that system.
Created 10-17-2017 12:19 PM
Concerning the first issues I have change the schedulint time but it still do not stream data. I don't kn ow what the possible solution.
Created 10-17-2017 01:06 PM
Make sure and set the Run Duration to 0ms also.
Created 10-17-2017 01:18 PM
@Wynner It gives the same error. I wish to precise that, I am using a VPN application in order to access Twitter
Created 10-18-2017 12:57 PM
Please is there something else I could do?
Created 10-18-2017 03:22 PM
Do you see any bulletins on the GetTwitter processor?
Created on 10-19-2017 12:57 AM - edited 08-17-2019 08:45 PM
@Wynner Yes, Here is the screenshot of what it shows
Created 10-19-2017 03:27 PM
Are you able to ping this address, stream.twitter.com, from the system running NiFi?
Created 10-19-2017 05:24 PM
That sounds like the issue then. You need to be able to ping that address before you'll be able get twitter data. Check the config of your VPN and/or firewall.
Created 10-20-2017 12:39 PM
Try turning off the windows firewall completely, and then see if the GetTwitter processor can pull data.
Created 10-20-2017 05:48 PM
What does the configuration of the GetTwitter processor look like?
Created 10-24-2017 05:04 PM
You are running NiFi on a Windows 10 system correct?
Also, just install NiFi directly, not via the sandbox.
Created 10-14-2017 02:02 PM
Created 10-19-2017 05:14 PM
@Wynner, I can't ping it successfully
Created on 10-20-2017 04:16 AM - edited 08-17-2019 08:45 PM
@Wynner, I first used the wrong url http://stream.twitter.com on command line
. After which I ping using stream.twitter.com
, after I used https://stream.twitter.com on the browser. It required some credentials
, so I entered my twitter credentials. After I entered it, it returned on the browser unknown URL and a link to follow http://dev.twitter.com/pages/streaming_api. But the link does not exist. The screenshots are attached below. Also a scrennshot of vpn and firewall config
Created on 10-23-2017 09:36 PM - edited 08-17-2019 08:45 PM
@Elvine Egoko can you please ssh into your virtual machine
ssh root@localhost -p 12222 password: hadoop
Then grep the Nifi logs
cat /var/log/nifi/nifi-app.log | grep "ERROR"
See if you can find a more detailed explanation of that error.
Also, I noticed you were using a default template from the Nifi wiki: https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates
I tried to replicate the error on my end with the same template and processor to no avail. I am using the latest HDF sandbox with virtual box.
I did have to manually enter my own twitter API keys and access tokens with my application account . You can make one here: https://apps.twitter.com/
Do you have an account? Did you try entering in a new set of keys?
What do your processor properties look like?
Created on 10-24-2017 06:01 AM - edited 08-17-2019 08:45 PM