-
Notifications
You must be signed in to change notification settings - Fork 11
QuickStart
myksl edited this page Apr 27, 2022
·
9 revisions
-
64bit JDK 1.8+
-
Maven 3.2.x
Ptubes synchronization data requires mysql to support Binlog ROW mode in advance, users need to modify the binlog mode in advance
[mysqld]
log-bin=mysql-bin # Open binlog
binlog-format=ROW # Change to ROW mode
-
Download the compressed package
ptubes-reader-server.tar.gz -
Unzip to any directory
mkdir /user/ptubes
tar zxvf ptubes-reader-server.tar.gz -C /tmp/ptubes
After decompression, you can see the directory structure
drwxr-xr-x 4 yangmouren staff 128 2 17 16:47 bin
drwxr-xr-x 5 yangmouren staff 160 2 17 16:54 conf
drwxr-xr-x 63 yangmouren staff 2016 2 17 17:00 lib
- Modify related configuration information In the conf directory, modify a reader.conf and fill in the configuration
ptubes.server.tasks=demoR1,demoR2 //Task name, each task needs to have the configuration information of the corresponding file, separated by commas
The program will continue to read the ReaderTask related configuration according to the parameters of ptubes.server.tasks. Take the above picture as an example, the program will automatically search for demoR1.properties and demoR2.properties from the current directory, and we will create corresponding files respectively (as shown in the following figure)
ptubes.reader.mysql.host= //mysql host address
ptubes.reader.mysql.port= //mysql port
ptubes.reader.mysql.user= //mysql username
ptubes.reader.mysql.passwd= //mysql password
Then run the program to start the ptubes exploration journey.
- Start the service
sh bin/start.sh
- View service logs
tail -f logs/reader.log
- Shut down the service
sh bin/stop.sh