You need the following:
- Java 8.0 or 11 You can download the Java SE Development Kit software from http://www.oracle.com/technetwork/java/javase/downloads/ or use the OpenJDK version from https://openjdk.java.net/install/index.html.
- Apache Maven If you need to install Maven, go to http://maven.apache.org/ to download and install it.
Build the project
Clone the example project, modify the application.properties file : adapt it according your own database and your Graal Pulsar space properties; then use Maven to build it. This example project contains dependencies for a PostgreSQL database.
To build your Maven project from the command line, open a terminal or command prompt window, navigate to your project directory, enter or paste the following command, then press Enter or Return.
This creates .jar files (JAR) in the target directory. One JAR contains all the dependencies specified in the pom.xml file. The other is the quarkus-app JAR that will be runned to execute the Debezium server.
To start the Debezium server and capture all events of your database to be stored in Pulsar, navigate to your project directory, enter or paste the following command, then press Enter or Return.
java -jar target/quarkus-app/quarkus-run.jar