Reputation: 3
I'm trying to pull data from an existing SQL database into MarkLogic. There are several functions for importing documents and several ways of doing so, but the goal is to pull each row of data from each table into a MarkLogic forest as it's own document. (https://developer.marklogic.com/learn/sql-marklogic-mapping/)
I have setup SQLdata and SQLschema as explained in the guide here: https://docs.marklogic.com/guide/sql/setup. I also setup an ODBC server on MarkLogic, but none of the documentation I have come across covers how to parse through a SQL database to pull the information to MarkLogic.
Upvotes: 0
Views: 388
Reputation: 20414
Using Apache NiFi is the preferred approach, but you may find the MarkLogic Migration Starter kit useful as well:
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.
The migration kit might allows deeper integrating into existing tooling.
For further detail, see: https://developer.marklogic.com/code/ml-migration-starter/
HTH!
Upvotes: 2
Reputation: 3609
The most "out of the box" way to do this is in my opinion is to integrate MarkLogic and Apache NiFi. There's a good, short video of pulling in relational data into MarkLogic via NiFi on YouTube you can watch to give you an idea of how it works. I've done this several times recently and found it relatively quick and straightforward to setup.
Upvotes: 4