Azure Stream Analytics - 从Events Hub读取JSON消息的问题 [英] Azure Stream Analytics - problem with reading JSON messages from Events Hub

查看:39
本文介绍了Azure Stream Analytics - 从Events Hub读取JSON消息的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Events Hub和Stream Analytics之间建立连接我遇到了一些问题 - 我的流分析工作无法访问已发送到Events Hub的JSON文件。我总是收到错误:

Trying to establish a connection between Events Hub and Stream Analytics I faced some problems - My stream analytics job can't reach the JSON files that have been sent to Events Hub. I always get an error :

找不到'MYEVENTSHUBNAME'的活动。

开始时间:5月4日星期四2,11:59:06 AM

结束时间:5月2日星期四,12:09:06 PM

上次抵达时间:5月2日星期四,  2:07:05 PM

诊断:采样数据时,没有从'X'分区收到数据。

作为制作人,我使用了文档提供的python脚本(https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-python)

As a producer I used python script which is provided by documentation (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-python)

发送到Events Hub的消息示例如下所示:

{" humidity":93," timestamp":" 2019 -05-02 12:09:02.510547"," uv":0.3910666324538803," id":" 3bdc77f1-3a22-40dc-8058-3bde4077a6a5"," temperature":71}

example of a message that is send to Events Hub looks like below:
{"humidity": 93, "timestamp": "2019-05-02 12:09:02.510547", "uv": 0.3910666324538803, "id": "3bdc77f1-3a22-40dc-8058-3bde4077a6a5", "temperature": 71}

您知道可能的原因吗? 

提前感谢您的帮助! 

Do you know what is possible reason? 
Thanks in advance for any help! 

推荐答案

嗨Kuczi,

Hi Kuczi,

您可以参考下面列出的建议,解决类似的问题。

You may refer the suggestions outlined below treads, which addresses similar issue.

https://social.msdn.microsoft.com/Forums/ azure / en-US / 00352305-cfbb-4e5c-ad04-def3d78cdf46 / no-events-found-stream-analytics?forum = AzureStreamAnalytics

https://stackoverflow.com/questions/43212321/no-events-found-azure-event-hub

https://social.msdn.microsoft.com/Forums/en-US/81ba0093-cf25-48cb-8765-c91c67edb407/while- samples-data-no-data-was-received-from-2-partitions?forum = AzureStreamAnalytics

希望这会有所帮助。


这篇关于Azure Stream Analytics - 从Events Hub读取JSON消息的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆