[英]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 配置:
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.