https://github.com/geolffreym/mysql_elasticsearch_migration
This is a simple example of migration from mysql to elasticsearch using JDBC in python
https://github.com/geolffreym/mysql_elasticsearch_migration
Last synced: 2 months ago
JSON representation
This is a simple example of migration from mysql to elasticsearch using JDBC in python
- Host: GitHub
- URL: https://github.com/geolffreym/mysql_elasticsearch_migration
- Owner: geolffreym
- Created: 2015-02-07T18:29:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-30T17:15:44.000Z (over 9 years ago)
- Last Synced: 2025-02-02T09:27:56.423Z (4 months ago)
- Language: Python
- Size: 1.5 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ELASTICSEARCH SIMPLE MIGRATION
===============================
This is a simple example of migration from mysql to elasticsearch using JDBC in pythonTo start just run
```
python run/migrate_all.py
```DEPENDENCIES
------------###elasticsearch-python (>= 1.4.0)
[Go to Elastic Python Home](http://www.elasticsearch.org/guide/en/elasticsearch/client/python-api/current/)
###elasticsearch ( >= 1.4.2 - <= 1.4.4)
[Go to Install ElasticSearch](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_installing_elasticsearch.html)
###jdbc-river
Just copy the "jdbc" directory, into the directory "elasticsearch plugins". ex: (/usr/share/elasticsearch/plugin)
Restart ElasticSearch.. Ready..
[JDBC Official](https://github.com/jprante/elasticsearch-jdbc)
CONTRIBUTE
---------
Create your own search methods in query.py
[Go to Elastic Python DOC](http://elasticsearch-py.readthedocs.org/en/latest/api.html)PLAYING TRICKS
--------------
http://www.elasticsearch.org/blog/playing-http-tricks-nginx/ABOUT
======######config.py
Contains the basic configuration of the module, you can set your constant and configure your connections######meta.py
Contains all sql queries associated with each entity type to search######search.py
Contains the configuration fields and indexes to associate to search######query.py
It is the most important files because it contains the methods used to search######migration.py
Contains the methods to use for migration from mysql to elastic