Not receiving data from Azure Event Hub at my consumer
See original GitHub issueDescription
I want to consume messages from Azure Event Hub and then do processing on it but I am not receiving any data from event hub. Also I am not able to find the reason as I am not receiving any kind of error or exception on my debug console. I am able to send data successfully to Azure IOT Hub and data is flowing there but I am not receiving at my consumer end. This is my configuration for connection with Azure EventHub :
` public async Task ConsumerAsync() {
// Stream configuration
var config = new StreamConfig();
config.ApplicationId = "testing-acc4";
config.BootstrapServers = "xxxx";
config.SecurityProtocol = SecurityProtocol.SaslSsl;
config.SocketTimeoutMs = 60000;
config.SessionTimeoutMs = 30000;
config.SaslMechanism = SaslMechanism.Plain;
config.SaslUsername = "$ConnectionString";
config.SaslPassword = "xxxx";
config.AutoOffsetReset = AutoOffsetReset.Earliest;
config.BrokerVersionFallback = "1.0.0";
config.DefaultKeySerDes = new StringSerDes();
config.DefaultValueSerDes = new DataDto();
StreamBuilder builder = new StreamBuilder();
IKStream<string, DataDto> str = builder.Stream<string, DataDto>("xxxxx");
str.Filter((k, v) => CheckFilterCriteria(v)).Print(Printed<string, DataDto>.ToOut());
Topology t = builder.Build();
// Create a stream instance with topology and configuration
KafkaStream stream = new KafkaStream(t, config);
//Subscribe CTRL +C to quit stream application
Console.CancelKeyPress += (o, e) =>
{
stream.Dispose();
};
await stream.StartAsync();
}`
This is the response I am getting on debug console:
This is the response I am getting when I stopped sending data to azure IOT hub:
Above screenshot tells that connection was established with azure Event Hub but still I was not getting any data or error messagesCan you please guide me on what is the issue and why I am not receiving any data from Event Hub. But when I am doing same stuff with kafka server locally, everything is happening perfectly fine. Kindly give me heads up.
How to reproduce
Checklist
Please provide the following information:
- A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
- A code snippet with your topology builder (ex: builder.Stream<string, string>(“topic”).to(“an-another-topic”)😉
- Streamiz.Kafka.Net nuget version.
- Apache Kafka version.
- Client configuration.
- Operating system.
- Provide logs (with in debug mode (log4net and StreamConfig.Debug) as necessary in configuration).
- Critical issue.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:18 (10 by maintainers)
Top GitHub Comments
Yes exactly, feel free to add your upvote into the azure event issue. It opened since 2019 … ☹️
So for now, Streamiz is not compatible with Azure Event Hubs, like some kafka connectors I suppose.
I close this issue. If you have any other question, feel free to reopen this one.
Best regards,
@Shikha4599,
I will try to reproduce asap.