- JDK
- Maven
- Kafka
-
cd
into this repository directory. -
Change the
sqlConnectionUrl
andmonitorDBURL
variable incom/datayes/heterDataTransfer/sync/ServerConfig.java
andcom/datayes/heterDataTransfer/server/ServerConfig.java
according to the address, port, database name, user, and password of the source database. -
Change the
tableName
variable incom/datayes/heterDataTransfer/server/ServerConfig.java
to the name of the table to be synchronized. -
Change the
sqlConnectionUrl
andmonitorDBURL
variable incom/datayes/heterDataTransfer/sync/ClientConfig.java
andcom/datayes/heterDataTransfer/client/ClientConfig.java
according to the address, port, database name, user, and password of the client's database. -
Change the
tableToSynchronize
variable incom/datayes/heterDataTransfer/sync/ClientConfig.java
to the names of the table to be synchronized. -
In a terminal, run:
maven package
-
Copy
heterogeneous-data-transfer-client.jar
andheterogeneous-data-transfer-fullClient.jar
to the client side machine. -
Copy
heterogeneous-data-transfer-server.jar
andheterogeneous-data-transfer-fullServer
to the server. -
Startup Kafka.
-
To startup the server-side incremental capturing program:
java -jar heterogeneous-data-transfer-server.jar
-
To startup the client side incremental capturing program:
java -jar heterogeneous-data-transfer-client.jar
-
To run the server-side full synchronization program:
java -jar heterogeneous-data-transfer-fullServer.jar
-
To run the client-side full synchronization program:
java -jar heterogeneous-data-transfer-fullClient.jar