azure-eventhub

All instances are not running in Azure App Service

一笑奈何 提交于 2020-04-12 04:04:08
问题 I am using Azure App Service which hosts application that reads data from Event hub using EventProcessorHost . I have allocated 6 instances(Manual Scaling) to run. I checked the Metrics( CPU Time ) in App Service and found only 5 instances are running. I am getting different instances count for different metrics. Data In metrics shows 6 instances while CPU Time metrics shows 5 instances. I am confused. Please suggest. Regards, Amit Agrawal 回答1: the AlwaysOn feature is used to keep your app

How in azure function bind event hub output parameter via attributes

杀马特。学长 韩版系。学妹 提交于 2020-02-24 14:30:38
问题 I want to bind input and output parameters from and to event hub using attributes. In a documentation there is only information how to bind to output using return statement https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs#output---c-example [FunctionName("EventHubOutput")] [return: EventHub("outputEventHubMessage", Connection = "EventHubConnectionAppSetting")] public static string Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, TraceWriter log) { log

How to disable other partitions to stop receiving messages when one partition is active in Azure event hubs

烂漫一生 提交于 2020-02-08 02:30:10
问题 I have an application which is installed in 3 different servers.This application subscribes to a single Event hub.This event hub as 8 partitions. So when I start my application in all the 3 machines, all partitions are initialized randomly on all the 3 machines.Say it is like this : VM1 : Partition 0,1,2 VM2 : Partition 3,4 VM3 : Partition 5,6,7 All these partitions are receiving messages continuously. These messages needs to be processed one after the other. Now my requirement is , with in a

Azure Event Processor Host java library - ReceiverRuntimeInformation doesn't have actual stats on a partition

情到浓时终转凉″ 提交于 2020-02-05 04:36:05
问题 I am trying to get the last enqueued sequence number to track the lag between consumer and producer at the consumer end by leveraging ReceiverRuntimeInformation object provided by PartitionContext when a event is received. However, ReceiverRuntimeInformation object doesn't have the updated values related to that particular partition of an Event Hub, it returns 0. Sample code and log output below: public class EventProcessor extends IEventProcessorImpl{ @Override public void onEvents

How to send Properties details in EventHub message using python?

半腔热情 提交于 2020-01-25 10:02:49
问题 I am referring to this article "https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-python-get-started-send" related to sending messages to EventHub using Python. A Message has the following components: offset, body, systemProperties, properties. offset is auto-generated but we can provide the other. For my project - apart from message body I also need to send "Properties" which is not part of Body, How to do that? I checked the class EventData(object) : and looks like application

In Azure Eventhub reciever giving “Encountered error while fetching the list of EventHub PartitionIds” error

*爱你&永不变心* 提交于 2020-01-23 17:50:47
问题 I am trying to implement the receiver part as per the tutorial https://azure.microsoft.com/en-us/documentation/articles/event-hubs-java-ephjava-getstarted/ Failure while registering: com.microsoft.azure.eventprocessorhost.EPHConfigurationException: Encountered error while fetching the list of EventHub PartitionIds I have 16 partitions in my eventhub. But when I send the data I don't specify any partition. How do I know in which partition my data is sent to? Am I getting the above error

Asset Tracking with Azure Stream Analytics

五迷三道 提交于 2020-01-17 05:32:07
问题 I have an event Hub and a stream analytics job sending data to Power BI. I was wondering what would be the best way to configure the event hub / for asset tracking? e.g I have multiple clients sending to the event hub -> stream analytic job and I want to be able to determine if a client with a particular ID goes offline? Cheers! 回答1: If the list of IDs is relatively static, then you can use reference data join to output all IDs that are missing in each time window. If you want to infer the

Azure EventHub: offline event buffering/queueing possible?

萝らか妹 提交于 2020-01-17 05:01:07
问题 I can't find any definitive answer here. My IoT service needs to tollerate flaky connections. Currently, I manage a local cache myself and retry a cloud-blob transfer as often as required. Could I replace this with an Azure EventHub service? i.e. will the EventHub client (on IoT-Core) buffer events until the connection is available? If so, where is the info on this? 回答1: It doesn't seem so according to: https://azure.microsoft.com/en-us/documentation/articles/event-hubs-programming-guide/ You

How to get Bearer token for Event Hub Azure

霸气de小男生 提交于 2020-01-16 11:56:07
问题 I have created an Event Hub in Microsoft Azure, I am trying to perform a GET operation to get details of my Event Hub following the docs : - https://docs.microsoft.com/en-us/rest/api/eventhub/eventhubs/get, but I need "Bearer Token" to get the result in POSTMAN, how to get the token? Detail explanation would be appreciated 回答1: Please follow the doc to create Azure Active Directory application to get the clientId , secret and tenantId . Then grant permission of event hub resource to your AD

Combining two partitioned streams into one stream

爱⌒轻易说出口 提交于 2020-01-16 08:36:22
问题 I am new to Azure event hub. With the event hub, we receive data from IoT device and the data are partitioned into two streams by assigning partition number "0" and " 1". The reason why we need two streams is that one is needed for training the "deep learning model" and another one is needed for testing the model we trained with new data coming in from the other side. This is called "online learning". However, in the case where we do not have a training model yet, we are not able to test it