Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Necessary Dependencies

  1. Run the following command on the physical machine to download the JSON dependency package to the flink/lib directory.
    wget -P /usr/local/flink/lib/ https://repo.maven.apache.org/maven2/org/json/json/20240303/json-20240303.jar
  2. Run the following command on the physical machine to download the Gson dependency package to the flink/lib directory.
    wget -P /usr/local/flink/lib/ https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar
  3. Install other dependencies.
    1. Obtain the dependency packages Dependency_library.zip and Dependency_library.z01 by following instructions in Table 3, decompress the two packages to the /opt directory, and set permissions for the decompressed dependency directories.
      zip -F Dependency_library.zip --out Dependency_library_complete.zip
      unzip Dependency_library_complete.zip -d /opt
      chmod -R 550 /opt/Dependency_library/*
    2. Replace the Nexmark dependency package: Obtain nexmark-flink-0.3-SNAPSHOT.jar from Dependency_library, copy it to the flink/lib directory, delete the Nexmark dependency package of the existing version, and replace it with the new version.
      1
      2
      3
      cp /opt/Dependency_library/nexmark-flink-0.3-SNAPSHOT.jar /usr/local/flink/lib
      rm -rf /opt/nexmark/lib/nexmark-flink-0.2-SNAPSHOT.jar
      cp /opt/Dependency_library/nexmark-flink-0.3-SNAPSHOT.jar /opt/nexmark/lib/
      

      When Flink is being started, the dependency packages in the flink/lib directory are automatically loaded. After the preceding steps are complete, the dependencies are successfully installed.