关于azure:有没有办法直接将数据加载成json或者csv格式到cosmos db gremlin api?

Is there any way to load data directly into json or csv format to cosmos db gremlin api?

我已经设置了 cosmos db gremlin api,并通过添加节点和属性并一一添加边来手动创建图形。有没有像我们在 cosmos db sql-api 中那样直接以 json 或 csv 格式将数据加载到 cosmos gremlin 中?请帮我解决这个问题


Is there anyway to load the data once into cosmos gremlin directly in
the json or csv format like we do it in cosmos db sql-api?

显然,根据该文档,数据迁移工具目前不支持 Gremlin API 帐户的导入工具。

但是,您可以考虑使用图形 BulkExecutor .NET 库在 Azure Cosmos DB Gremlin API 中执行批量操作。这里有示例应用程序。

您可以在其中使用生成循环或加载您自己的 json 文件。

更新:

尝试找到这样的直接解决方案,但没有运气。据我所知,也许您可??以采用以下解决方案:

第一步,使用 Azure 数据工厂将数据从 azure 数据湖以 json 文件的形式传输到 azure blob 存储中。

第二步,还是需要通过.net bulk SDK加载json文件。

更新2:

@JemimaJeyakumar 我查看了此链接。这就是我在更新答案中提到的方式:Azure 数据工厂。但恐怕 ADF 不支持 cosmos db graph api。

enter