连接 Azure-Data-Explorer 与 Azure-Data-Lake-Gen2
Connecting Azure-Data-Explorer with Azure-Data-Lake-Gen2
我尝试使用 Azure-Data-Explorer 创建存储在 Azure-Data-Lake-Gen2 中的物联网数据的时间序列。 Azure-Data-Lake 中的文件夹结构是 "archive/yyyy/MM/dd/HH/*.json".
想法是:
- 创建外部 table 和 json 映射 (https://docs.microsoft.com/en-us/azure/data-explorer/data-lake-query-data)
- 制作时间序列 (https://docs.microsoft.com/en-us/azure/data-explorer/time-series-analysis)
- 使用分析获得很酷的见解 ;-)
我已经尝试了第一步(在 Azure-Data-Explorer 查询中):
.create external table ExternalAdlGen2 (timestamp:datetime, timestamp2:datetime, deviceId:string, telemetry:dynamic)
kind=adl
partition format_datetime="'year='yyyy/'month='MM/'day='dd/'hour='HH" by bin(timestamp, 1h)
dataformat=json
(
@h'abfss://filesystem@<storage acount name>.dfs.core.windows.net/archive/path;sharedkey=<access key>'
)
还有:
.create external table ExternalAdlGen2 (timestamp:datetime, timestamp2:datetime, deviceId:string, telemetry:dynamic)
kind=adl
partition format_datetime="'year='yyyy/'month='MM/'day='dd/'hour='HH" by bin(timestamp, 1h)
dataformat=json
(
@h'abfss://filesystem@<storage acount name>.dfs.core.windows.net/archive/path;sharedkey=<access key>'
)
with
(
docstring = "Docs",
folder = "ExternalTables",
namePrefix="Prefix"
)
结果是以下错误信息:
"Error I could not parse that, sorry. clientRequestId: KustoWebV2; some_guid"
您对如何正确执行此操作有任何建议吗?
提前致谢。
文档中存在错误,很快就会修复。
在 URL 规范中 - 请将 @h'abfss://...
替换为 h@'abfss://...
我尝试使用 Azure-Data-Explorer 创建存储在 Azure-Data-Lake-Gen2 中的物联网数据的时间序列。 Azure-Data-Lake 中的文件夹结构是 "archive/yyyy/MM/dd/HH/*.json".
想法是:
- 创建外部 table 和 json 映射 (https://docs.microsoft.com/en-us/azure/data-explorer/data-lake-query-data)
- 制作时间序列 (https://docs.microsoft.com/en-us/azure/data-explorer/time-series-analysis)
- 使用分析获得很酷的见解 ;-)
我已经尝试了第一步(在 Azure-Data-Explorer 查询中):
.create external table ExternalAdlGen2 (timestamp:datetime, timestamp2:datetime, deviceId:string, telemetry:dynamic)
kind=adl
partition format_datetime="'year='yyyy/'month='MM/'day='dd/'hour='HH" by bin(timestamp, 1h)
dataformat=json
(
@h'abfss://filesystem@<storage acount name>.dfs.core.windows.net/archive/path;sharedkey=<access key>'
)
还有:
.create external table ExternalAdlGen2 (timestamp:datetime, timestamp2:datetime, deviceId:string, telemetry:dynamic)
kind=adl
partition format_datetime="'year='yyyy/'month='MM/'day='dd/'hour='HH" by bin(timestamp, 1h)
dataformat=json
(
@h'abfss://filesystem@<storage acount name>.dfs.core.windows.net/archive/path;sharedkey=<access key>'
)
with
(
docstring = "Docs",
folder = "ExternalTables",
namePrefix="Prefix"
)
结果是以下错误信息: "Error I could not parse that, sorry. clientRequestId: KustoWebV2; some_guid"
您对如何正确执行此操作有任何建议吗?
提前致谢。
文档中存在错误,很快就会修复。
在 URL 规范中 - 请将 @h'abfss://...
替换为 h@'abfss://...