- JDK
- Maven
- Kafka
-
cdinto this repository directory. -
Change the
sqlConnectionUrlandmonitorDBURLvariable incom/datayes/heterDataTransfer/sync/ServerConfig.javaandcom/datayes/heterDataTransfer/server/ServerConfig.javaaccording to the address, port, database name, user, and password of the source database. -
Change the
tableNamevariable incom/datayes/heterDataTransfer/server/ServerConfig.javato the name of the table to be synchronized. -
Change the
sqlConnectionUrlandmonitorDBURLvariable incom/datayes/heterDataTransfer/sync/ClientConfig.javaandcom/datayes/heterDataTransfer/client/ClientConfig.javaaccording to the address, port, database name, user, and password of the client's database. -
Change the
tableToSynchronizevariable incom/datayes/heterDataTransfer/sync/ClientConfig.javato the names of the table to be synchronized. -
In a terminal, run:
maven package -
Copy
heterogeneous-data-transfer-client.jarandheterogeneous-data-transfer-fullClient.jarto the client side machine. -
Copy
heterogeneous-data-transfer-server.jarandheterogeneous-data-transfer-fullServerto 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