Kusto 流式摄取:ErrorReason=未找到

Kusto Streaming Ingest: ErrorReason=Not Found

我正在尝试使用 client.IngestFromStreamAsyncclient.IngestFromStream 从我的 C# 应用程序中获取数据,但始终出现以下错误:

MonitoredActivityContext=(ActivityType=KustoManagedStreamingIngestClient.IngestFromStream, Timestamp=2021-02-08T17:57:52.0547851Z, ParentActivityId=570e5455-1c3d-4cb4-82ff-a06761e66a30, TimeSinceStarted=1921,1077 [ms]) IngestionSourceId=f182ab29-812a-4b44-9d06-1951c7aa972f IngestionSource=流 错误=未找到 (404-NotFound):.这通常表示永久性错误,重试不太可能有帮助。 错误详情: 数据源='https://table.southcentralus.kusto.windows.net/v1/rest/ingest/bla/table?streamFormat=json&mappingName=JsonMapping', 数据库名=, ClientRequestId='KI.KustoManagedStreamingIngestClient.IngestFromStream.ad8c8892-7495-483d-90bc-8585483445fa;73864817-246c-479c-a2da-138aca01b9a2;f182ab29-812a-4b44-9d06-1951c7aa972f', ActivityId='00000000-0000-0000-0000-000000000000, 时间戳='2021-02-08T17:57:53.9596167Z'.

这就是我定义摄取映射的方式

var kustoIngestionProperties = new KustoIngestionProperties(databaseName: databaseName, tableName: rtable)
{         
   Format = DataSourceFormat.json,                
   IngestionMapping = new IngestionMapping()
   {
      IngestionMappingReference = "JsonMapping",
      IngestionMappingKind = Kusto.Data.Ingestion.IngestionMappingKind.Json                   
   }                    
};

在引用映射之前,我是这样创建的:

.create table ingest_table ingestion json mapping 'JsonMapping' '[{"column":"Timestamp","Properties":{"path":"$.Timestamp"}},{"column":"AskRatioVar","Properties":{"path":"$.AskRatioVar"}},{"column":"score_BidRatioVar","Properties":{"path":"$.score_BidkRatioVar"}},]'

任何可能导致错误的想法? 所有流媒体示例在这里似乎都已过时:https://github.com/Azure/azure-kusto-samples-dotnet/tree/master/client/StreamingIngestionSample

谢谢

您应该验证您传递的数据库名称、table 和摄取映射确实存在于您的集群中。

具体来说 - 在您引用的 activity 中,您引用了一个名为 JsonAnomalyMapping1 的摄取映射,而 table 只有一个名为 JsonAnomalyMapping[=12= 的映射]