azure-data-explorer - Azure 数据资源管理器摄取,DeleteSourceOnSuccess 不起作用
问题描述
我正在将一个 zip 文件从 blob 存储提取到 ADX 并设置选项 DeleteSourceOnSuccess = true。摄取工作正常,但不幸的是,操作后源文件没有被删除。我该如何调试呢?
var kustoIngestionProperties = new KustoIngestionProperties(databaseName: adxDatabase, tableName: table);
kustoIngestionProperties.AdditionalProperties = new Dictionary<string, string>()
{
{"zipPattern", "stats*.txt"},
{"format", "json"},
{"ingestionMappingReference", "WiFiJsonMapping"}
};
var sourceOptions = new StorageSourceOptions() { DeleteSourceOnSuccess = true };
IRetryPolicy retryPolicy = new NoRetry();
((IKustoQueuedIngestClient)client).QueueRetryPolicy = retryPolicy;
try
{
var sourceBlobSAS = CreateBlobUriWithSas(source_blob);
await client.IngestFromStorageAsync(uri: sourceBlobSAS, ingestionProperties: kustoIngestionProperties, sourceOptions);
log.LogInformation($"File: {source_blob.Name} ingested to {tenant}_{site}_raw_logs");
}
catch (System.Exception ex)
{
log.LogError(ex.ToString());
throw;
}
finally
{
client.Dispose();
}
解决方案
推荐阅读
- python - Django - 删除按钮未重定向到正确的路径
- mvvm - 在 c# 中更改项目源时,UWP DataGrid 不会更新 UI
- javascript - 按观看次数和日期排序的趋势
- oauth-2.0 - Auth0 社交登录角色分配
- entity-framework - 将 linq 用于 Npgsql EntityFramework6 模型时引发 SocketException
- tensorflow - 张量流如何计算`.linalg.eigh`的梯度?
- python - 我应该如何用“np.around”方法解决我的问题?
- asp.net - 有没有办法阻止 ASP.NET Core 应用程序发送任何电子邮件?
- .htaccess - 如何使用 .htaccess 忽略 URL 的路径
- java - 如果微调器值与第一个微调器项目不同,如何切换到 else 语句?