简体   繁体   English

Stream 分析作业到 blob 不要关闭我的 json 数组

[英]Stream Analytics Job to blob don't close my json array

I have a problem with my Stream Analytic job in azure. I've got inputs from my IotHub and I want to output these into a blob container.我在 azure 中的 Stream 分析作业有问题。我从 IotHub 获得了输入,我想将这些输入 output 到 blob 容器中。

This is an input preview from IotHub to Stream Analytic job:这是从 IotHub 到 Stream 分析作业的输入预览:

[{ "deviceName": "Environnement-Pearson-Vue", "devEUI": "70B3D547501000B5", "devType": "LoRaWAN", "container": "presence", "value": "47833", "EventProcessedUtcTime": "2021-08-16T11:46:32.8157342Z", "PartitionId": 0, "EventEnqueuedUtcTime": "2021-08-16T11:38:13.3010000Z" }, { "deviceName": "Environnement-Pearson-Vue", "devEUI": "70B3D547501000B5", "devType": "LoRaWAN", "container": "luminosity", "value": "134", "EventProcessedUtcTime": "2021-08-16T11:46:32.8157342Z", "PartitionId": 0, "EventEnqueuedUtcTime": "2021-08-16T11:38:12.1130000Z" }, { "deviceName": "Environnement-Toilets", "devEUI": "70B3D547501000BD", "devType": "LoRaWAN", "container": "temperature", "value": "21.12", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 0, "EventEnqueuedUtcTime": "2021-08-16T10:48:39.7440000Z" }, { "deviceName": "Environnement-OpenSpace-South_Central", "devEUI": "70B3D54750100260", "devType": "LoRaWAN", "container": "presence", "value": "37965", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 1, "EventEnqueuedUtcTime": "2021-08-16T10:47:31.3160000Z" }, { "deviceName": "Environnement-OpenSpace-South_Central", "devEUI": "70B3D54750100260", "devType": "LoRaWAN", "container": "luminosity", "value": "217", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 1, "EventEnqueuedUtcTime": "2021-08-16T10:47:30.0030000Z" }, { "deviceName": "Environnement-OpenSpace-South_Central", "devEUI": "70B3D54750100260", "devType": "LoRaWAN", "container": "humidity", "value": "43", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 1, "EventEnqueuedUtcTime": "2021-08-16T10:47:28.7060000Z" }, { "deviceName": "Environnement-OpenSpace-South_Central", "devEUI": "70B3D54750100260", "devType": "LoRaWAN", "container": "temperature", "value": "27.09", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 1, "EventEnqueuedUtcTime": "2021-08-16T10:47:27.5030000Z" }, { "deviceName": "Environnement-OpenSpace-South_East", "devEUI": "70B3D54750100263", "devType": "LoRaWAN", "container": "presence", "value": "23793", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 3, "EventEnqueuedUtcTime": "2021-08-16T10:47:20.3800000Z" }, { "deviceName": "Environnement-OpenSpace-South_East", "devEUI": "70B3D54750100263", "devType": "LoRaWAN", "container": "luminosity", "value": "267", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 3, "EventEnqueuedUtcTime": "2021-08-16T10:47:19.5050000Z" }, { "deviceName": "Environnement-OpenSpace-South_East", "devEUI": "70B3D54750100263", "devType": "LoRaWAN", "container": "humidity", "value": "45", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 3, "EventEnqueuedUtcTime": "2021-08-16T10:47:18.1990000Z" }, { "deviceName": "Environnement-OpenSpace-South_East", "devEUI": "70B3D54750100263", "devType": "LoRaWAN", "container": "temperature", "value": "27.34", "EventProcessedUtcTime": "2021-08-16T11:46:31.2930477Z", "PartitionId": 3, "EventEnqueuedUtcTime": "2021-08-16T10:47:17.6050000Z" } ]

This is my output configuration:这是我的 output 配置:

OutputDetails输出细节

In my blob container, I receive the json, but the ] at the end of the array is missing.在我的 blob 容器中,我收到了 json,但数组末尾的 ] 丢失了。

[{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"temperature","value":"27.34","EventProcessedUtcTime":"2021-08-16T10:27:16.9891741Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:27:16.8240000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"humidity","value":"45.5","EventProcessedUtcTime":"2021-08-16T10:27:17.7548394Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:27:17.6080000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"luminosity","value":"267","EventProcessedUtcTime":"2021-08-16T10:27:19.3798447Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:27:19.2170000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"presence","value":"23793","EventProcessedUtcTime":"2021-08-16T10:27:20.6940573Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:27:20.4980000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"temperature","value":"27.34","EventProcessedUtcTime":"2021-08-16T10:47:17.7504276Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:47:17.6050000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"humidity","value":"45","EventProcessedUtcTime":"2021-08-16T10:47:18.2972219Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:47:18.1990000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"luminosity","value":"267","EventProcessedUtcTime":"2021-08-16T10:47:19.6069523Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:47:19.5050000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"presence","value":"23793","EventProcessedUtcTime":"2021-08-16T10:47:20.5947042Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T10:47:20.3800000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"temperature","value":"27.34","EventProcessedUtcTime":"2021-08-16T11:07:17.0348875Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:16.8800000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"humidity","value":"44","EventProcessedUtcTime":"2021-08-16T11:07:18.0192599Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:17.8810000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"luminosity","value":"300","EventProcessedUtcTime":"2021-08-16T11:07:19.4400515Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:19.2090000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"presence","value":"23793","EventProcessedUtcTime":"2021-08-16T11:07:20.4257254Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:20.3810000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"battery","value":"100","EventProcessedUtcTime":"2021-08-16T11:07:26.6757684Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:26.5220000Z"},{"battery":"100","EventProcessedUtcTime":"2021-08-16T11:07:27.2221725Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:07:26.9760000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"temperature","value":"27.34","EventProcessedUtcTime":"2021-08-16T11:27:17.5267324Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:27:17.3980000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"humidity","value":"42.5","EventProcessedUtcTime":"2021-08-16T11:27:18.1846773Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:27:17.9610000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"luminosity","value":"200","EventProcessedUtcTime":"2021-08-16T11:27:19.3851440Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:27:19.2580000Z"},{"deviceName":"Environnement-OpenSpace-South_East","devEUI":"70B3D54750100263","devType":"LoRaWAN","container":"presence","value":"23794","EventProcessedUtcTime":"2021-08-16T11:27:21.0287823Z","PartitionId":3,"EventEnqueuedUtcTime":"2021-08-16T11:27:20.8690000Z"}

Any issues to fix this?有什么问题可以解决这个问题吗? Thx谢谢

After search, I find that the closing bracket is added when you move the next hour.经过搜索,我发现下一个小时移动时会添加右括号。 The file from the previous hour is closed and a file for the current hour is created.关闭前一小时的文件并创建当前小时的文件。 If your aggregation is not hourly but daily, the behavior will be seen at the day's end.如果您的聚合不是每小时而是每天,则将在当天结束时看到行为。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将正在上传到容器中单独文件夹的 blob 读取到 Stream 分析作业中 - How to read blob that are being uploaded to separate folders in the container into Stream Analytics job Azure Stream 分析 - JSON 数组、窗口和先前值 - Azure Stream Analytics - JSON Array, windowing and previous value Azure Stream 分析:如果作业查询是一天明智的 TUMBLINGWINDOW,stream 分析作业何时实际处理数据? - Azure Stream Analytics: When does a stream analytics job actually process data if the job query is a day wise TUMBLINGWINDOW? 如何在 Stream 分析作业查询中模拟 System.Timestamp()? - How to mock System.Timestamp() in Stream Analytics Job query? Stream 分析作业未从 ADLS2 读取数据 - Stream analytics job not reading data from ADLS2 Azure Stream 分析作业 - 转换查询 - ARM 模板中的正确格式 - Azure Stream Analytics Job - Transformation Query - correct formatting in ARM template Stream 分析:选择自动暂停一天的最佳参数 TUMBLINGWINDOW stream 作业和为该作业设置的最佳触发时间 function - Stream Analytics: Best parameters to choose for the autopause of a day wise TUMBLINGWINDOW stream job and best trigger time to set for that function Stream 分析:使用TUMBLING时 WINDOW window的开始时间是根据stream中最早的时间还是job的开始时间? - Stream Analytics:When using a TUMBLING WINDOW is the start time of the window start based on the earliest time in the stream or start time of the job? Gitlab:如果作业失败,工件不会传递到子管道 - Gitlab: artifacts don't pass to child pipeline if job fails Firebase 分析未检测到 Android 和 IOS Expo - Firebase Analytics don't detect Android and IOS Expo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM