-1

I am following Microsoft's official Azure documentation: Analyze real-time Twitter sentiment with HBase in HDInsight tutorial to create a simple real-time tweets streaming service which will write tweets into a HBase table hosted on Azure HDInsight HBase cluster.

I have set my Twitter app credentials correctly. I am using the latest Microsoft HBase .NET Library and the latest TweetinviAPI .NET C# library (0.9.10.1).

var credential = Auth.SetUserCredentials(TWITTERAPPAPIKEY, TWITTERAPPAPISECRET, TWITTERAPPACCESSTOKEN, TWITTERAPPACCESSTOKENSECRET);
var stream = Stream.CreateFilteredStream(credential);

I couldn't understand the reason behind why there is no real-time tweets write into my HBase table from my streaming service program.

Appreciate any help!

Thanks in advance.

juvchan
  • 6,113
  • 2
  • 22
  • 35

2 Answers2

1

Please update to version 0.9.10.2 that has been released today. There was a bug affecting the Streams.

Thanks

Linvi
  • 2,077
  • 1
  • 14
  • 28
  • Thanks! I try with the latest nuget version as mentioned above but it's still not working – juvchan Jan 26 '16 at 00:48
  • Hi, could you let me know if the stream is running or not. You can check when a stream start and when it stop with the following events ([stream error handling](https://github.com/linvi/tweetinvi/wiki/Streams#stop-and-error-handling) : stream.StreamStopped += (sender, args) => { var exceptionThatCausedTheStreamToStop = args.Exception; var twitterDisconnectMessage = args.DisconnectMessage; }; – Linvi Jan 28 '16 at 09:29
0

Met the same issue with the latest Tweetinvi.

The old version (0.9.3.3) works for me.

onpduo
  • 21
  • 4
  • When you say latest you do mean 1.0? Could you let me know how you set your credentials? – Linvi Aug 02 '16 at 01:59
  • I actually tried the "latest" several weeks ago, where I installed from nuget. I noticed the way to set credential was different. Currently I am using the old one, which is TwitterCredentials.SetCredentials(a,b,c,d);. I will try the 1.0 and give you update. – onpduo Aug 02 '16 at 22:54
  • Before 1.0 we have effectively changed the order to make it consistent across Tweetinvi and with Twitter. – Linvi Aug 03 '16 at 08:22
  • I have updated to 1.0, streaming not working. Could you help take a look? Thanks a lot! https://gist.github.com/duoxu/0623a5c8d7c0ebcd49b31dea05f087c6 – onpduo Aug 03 '16 at 23:29
  • Can you please try to invert the Coordinates information. Version 0.9.13.0 and above is now following the ISO 6709 (https://en.wikipedia.org/wiki/ISO_6709) and uses LAT/LON instead of LON/LAT. – Linvi Aug 04 '16 at 09:29
  • I changed and still did not get any tweets. I even removed the filters (language and location), still no luck. When I changed to use SampleStream instead of FilteredStream, I saw some tweets coming. Do you have any ideas? Thanks! – onpduo Aug 04 '16 at 17:11