There are many MySQL applier packages available on GitHub. We can use any of them which provides framework for replication and an example of real-time replication:
- Flipkart/MySQL-replication-listener
- SponsorPay/MySQL-replication-listener
- bullsoft/MySQL-replication-listener
For our configuration, let's use Flipkart/MySQL-replication-listener. You can clone the Git library using the following command:
$ git clone https://github.com/Flipkart/MySQL-replication-listener.git
Here are some environment variables required by the package. Make sure that all are set properly.
- HADOOP_HOME: The Hadoop root directory path
- CMAKE_MODULE_PATH: The path of the root directory where FindHDFS.cmake and FindJNI.cmake files are located in HDFS
- HDFS_LIB_PATHS: The path of the libhdfs.so file available in HADOOP
- JAVA_HOME: You need to set the Java home...