Import Sql data (with any JDBC driver) to NoSQL databases.
Import your Sql data (any JDBC driver such as MySQL, Oracle, PostgreSQL supported) to a NoSQL database .
Currently supported : Mongodb, CouchDB, and Elasticsearch
Data can be imported as bulk to reduce processing time and can be forwarded to multiple elasticsearch nodes.
This project was initialy a fork of Sathis Kumar project.
This version fixes serious memory leaks and add new field types support such as binaries, timestamp stored as integer or long, and more.
1 - Download or clone project
2 - Modify import.properties file to match your needs.
\#common properties
sql-data-config-file=db-data-config.xml
autoCommitSize=500
dataStoreType=couch #can be one of mongo, es or couch
\#couch-db related settings
couch.host=localhost # Server host
couch.db=xms-2124 # Database name
couch.port=5984` # Database port
3 - Modify dataimport configuration file to match your needs.
This file defines the structure of your imported documents.
The file structure follows Solr’s dataimport configuration file
Possible field types are
4 - Run main java class : SQLToNoSQLImporter.java
5 - Enjoy!