Testing Azure Stream Analytics Job not working (Error on send)

734 views Asked by At

I'm trying to complete the tutorial of Azure Stream Analytics that using an app provided by Microsoft docs to send data to Azure Event Hub, to be simple, I'm just following this tutorial.

Now I got stuck at the step: "Start the event generator application"

What I have done is:

  • Create the Azure Event Hub & Azure Event Hub Namespace

  • Create the policy at "Shared access policies" (as below)

enter image description here

  • Update the element in the config file (telcodatagen.exe.config, as below)

The below file can be download here.

enter image description here

Here are the values I filled in at the shelter in the previous image:

<add key="EventHubName" value="***My Event Hubs Namespace***"/>
<add key="Microsoft.ServiceBus.ConnectionString" value="***My Connection string–primary key without the EntityPath value***"/>

But when I run the below command at CMD:

telcodatagen.exe 1000 0.2 2

I got an error as the figure below (error on send: one or more error occurred):

enter image description here

I'm completely brand new to Azure Event Hub and Azure Stream Analytics and I can guarantee to follow the steps of the tutorial, but I am not sure what the error is, why this error occurs and how to debug.

Any solution? Thanks!

3

There are 3 answers

0
Steve Johnson On

Your ConnectionString is wrong.

You should get it from namespace,not Instance. enter image description here

And EventHubName is your Event Hubs Instance's name.

By the way,you can download c# code from Github.

Hope this can help you:).

0
Serkant Karaca On

Two things to fix:

  1. This needs to be set to the entity name not "Event Hubs Namespace".

<add key="EventHubName" value="***My Event Hubs Namespace***"/>

  1. Remove trailing ; at the end if there is one.

<add key="Microsoft.ServiceBus.ConnectionString" value="***My Connection string–primary key without the EntityPath value***"/>

0
SinisterPenguin On

I had similar issues & downloaded the source as per Steve's comment.

I couldn't build as it targeted .Net 4.5.1

Gave up, used this blog post to build my own Event Sender

Another alternative might be try downloading .Net 4.5.1 Developer Pack & debug?