Updated on 2024-04-02 GMT+08:00

Running a Spring Boot Sample Project and Viewing Results

This section applies to MRS 3.3.0 or later.

Running the Spring Boot Sample in CLI

  1. Use Maven to run install on the IDEA.

    If "BUILD SUCCESS" is displayed, the compilation is successful. A JAR file containing the flink-dws-sink-example-1.0.0-SNAPSHOT field is generated in the target directory of the sample project.

  2. On Linux, go to the client installation directory, for example, /opt/client/Flink/flink/conf, and save the JAR packages whose names contain flink-dws-sink-example-1.0.0-SNAPSHOT in the target directory generated in to this directory.
  3. Run the following command to create a Yarn session:

    yarn-session.sh -t ssl/ -nm "session-spring11" -d

  4. Run the following command to start the SpringBoot service:

    • Run the GaussDB(DWS) sample

      flink run flink-dws-sink-example.jar