是否可以将数据从 SQL 导入到 MarkLogic
Is it possible to import data from SQL to MarkLogic
我正在尝试将现有 SQL 数据库中的数据提取到 MarkLogic 中。有几种导入文档的功能和几种方法,但目标是将每个 table 中的每一行数据作为自己的文档提取到 MarkLogic 森林中。 (https://developer.marklogic.com/learn/sql-marklogic-mapping/)
我已设置 SQL 数据和 SQL 模式,如此处指南所述:https://docs.marklogic.com/guide/sql/setup。我还在 MarkLogic 上设置了一个 ODBC 服务器,但是我遇到的 none 文档涵盖了如何解析 SQL 数据库以将信息提取到 MarkLogic。
在我看来,最 "out of the box" 的方法是集成 MarkLogic 和 Apache NiFi。有一个很好的简短视频,介绍了通过 NiFi on YouTube 将关系数据拉入 MarkLogic,您可以观看以了解其工作原理。我最近多次这样做,发现它的设置相对快速和直接。
使用 Apache NiFi 是首选方法,但您可能会发现 MarkLogic 迁移入门工具包也很有用:
a starter kit for creating an application that uses Spring Batch and marklogic-spring-batch for migrating data from any RDBMS into MarkLogic. The intent is to simplify the process of creating a migration application using Spring Batch by leveraging the reusable components in marklogic-spring-batch, and by organizing a Gradle-based project for you that you can clone/fork/etc to quickly extend and customize for your specific needs.
迁移工具包可能允许更深入地集成到现有工具中。
有关详细信息,请参阅:https://developer.marklogic.com/code/ml-migration-starter/
HTH!
我正在尝试将现有 SQL 数据库中的数据提取到 MarkLogic 中。有几种导入文档的功能和几种方法,但目标是将每个 table 中的每一行数据作为自己的文档提取到 MarkLogic 森林中。 (https://developer.marklogic.com/learn/sql-marklogic-mapping/)
我已设置 SQL 数据和 SQL 模式,如此处指南所述:https://docs.marklogic.com/guide/sql/setup。我还在 MarkLogic 上设置了一个 ODBC 服务器,但是我遇到的 none 文档涵盖了如何解析 SQL 数据库以将信息提取到 MarkLogic。
在我看来,最 "out of the box" 的方法是集成 MarkLogic 和 Apache NiFi。有一个很好的简短视频,介绍了通过 NiFi on YouTube 将关系数据拉入 MarkLogic,您可以观看以了解其工作原理。我最近多次这样做,发现它的设置相对快速和直接。
使用 Apache NiFi 是首选方法,但您可能会发现 MarkLogic 迁移入门工具包也很有用:
a starter kit for creating an application that uses Spring Batch and marklogic-spring-batch for migrating data from any RDBMS into MarkLogic. The intent is to simplify the process of creating a migration application using Spring Batch by leveraging the reusable components in marklogic-spring-batch, and by organizing a Gradle-based project for you that you can clone/fork/etc to quickly extend and customize for your specific needs.
迁移工具包可能允许更深入地集成到现有工具中。
有关详细信息,请参阅:https://developer.marklogic.com/code/ml-migration-starter/
HTH!