Skip to content

A real time synchronizer from a SQL Server database to multiple MySQL client databases.

Notifications You must be signed in to change notification settings

yifjiang/heterogeneous-data-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heterogeneous-data-transfer

Prerequisite

  1. JDK
  2. Maven
  3. Kafka

Setup

  1. cd into this repository directory.

  2. Change the sqlConnectionUrl and monitorDBURL variable in com/datayes/heterDataTransfer/sync/ServerConfig.java and com/datayes/heterDataTransfer/server/ServerConfig.java according to the address, port, database name, user, and password of the source database.

  3. Change the tableName variable in com/datayes/heterDataTransfer/server/ServerConfig.java to the name of the table to be synchronized.

  4. Change the sqlConnectionUrl and monitorDBURL variable in com/datayes/heterDataTransfer/sync/ClientConfig.java and com/datayes/heterDataTransfer/client/ClientConfig.java according to the address, port, database name, user, and password of the client's database.

  5. Change the tableToSynchronize variable in com/datayes/heterDataTransfer/sync/ClientConfig.java to the names of the table to be synchronized.

  6. In a terminal, run: maven package

  7. Copy heterogeneous-data-transfer-client.jar and heterogeneous-data-transfer-fullClient.jar to the client side machine.

  8. Copy heterogeneous-data-transfer-server.jar and heterogeneous-data-transfer-fullServer to the server.

  9. Startup Kafka.

  10. To startup the server-side incremental capturing program:

     java -jar heterogeneous-data-transfer-server.jar
    
  11. To startup the client side incremental capturing program:

     java -jar heterogeneous-data-transfer-client.jar
    
  12. To run the server-side full synchronization program:

     java -jar heterogeneous-data-transfer-fullServer.jar
    
  13. To run the client-side full synchronization program:

     java -jar heterogeneous-data-transfer-fullClient.jar
    

About

A real time synchronizer from a SQL Server database to multiple MySQL client databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages