You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-10
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
# py-mysql-elasticsearch-sync
2
-
Simple and fast MySQL to Elasticsearch sync tool, written in Python3.
2
+
Simple and fast MySQL to Elasticsearch sync tool, written in Python.
3
3
4
4
## Introduction
5
5
This tool helps you to initialize MySQL dump table to Elasticsearch by parsing mysqldump, then incremental sync MySQL table to Elasticsearch by processing MySQL Binlog.
6
6
Also, during the binlog syncing, this tool will save the binlog sync position, so that it is easy to recover after this tool being shutdown for any reason.
7
7
8
8
## Installation
9
9
By following these steps.
10
-
##### 1. Python3
11
-
This tool is written in Python3.4, so you must install Python3.4 or above first, by following [this guide](https://docs.python.org/3.4/using/index.html)
12
-
##### 2. ibxml2 and libxslt
10
+
11
+
##### 1. ibxml2 and libxslt
13
12
Also, this tool depends on python lxml package, so that you should install the lxml's dependecies correctly, the libxml2 and libxslt are required.
See [lxml Installation](http://lxml.de/installation.html) for more infomation.
28
-
##### 3. mysqldump
29
-
And then, mysqldump is required.
27
+
##### 2. mysqldump
28
+
And then, mysqldump is required.(and enable binlog)
30
29
31
30
32
-
##### 4. this tool
31
+
##### 3. this tool
33
32
Then install this tool
34
33
35
34
```
36
-
pip3 install py-mysql-elasticsearch-sync
35
+
pip install py-mysql-elasticsearch-sync
37
36
```
38
37
39
38
## Configuration
@@ -61,8 +60,6 @@ to start sync, when xml sync is over, it will also start binlog sync.
61
60
## Deployment
62
61
We provide an upstart script to help you deploy this tool,since we use virtualenv for requirements isolation, you must edit it for your own condition, besides, you can deploy it in your own way.
0 commit comments