Installing Necessary Dependencies
Install other software packages on which the feature depends.
- Install the JSON dependency package on the physical machine.
wget -P /usr/local/flink/lib/ https://repo.maven.apache.org/maven2/org/json/json/20240303/json-20240303.jar
- Install the Gson dependency package on the physical machine.
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
- Install other dependency packages.
- Obtain the dependency packages Dependency_library.zip and Dependency_library.z01 obtained from Table 3 and extract them to the /opt directory.
zip -F Dependency_library.zip --out Dependency_library_complete.zip unzip Dependency_library_complete.zip -d /opt chmod -R 550 /opt/Dependency_library/*
- Obtain nexmark-flink-0.3-SNAPSHOT.jar from Dependency_library, copy it to the flink/lib directory, and use it to replace nexmark-flink-0.2-SNAPSHOT.jar in nexmark/lib.
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/
After the preceding operations are complete, the flink/lib directory is scanned and the dependency package is loaded automatically during Flink startup. No additional installation commands are required.
- Obtain the dependency packages Dependency_library.zip and Dependency_library.z01 obtained from Table 3 and extract them to the /opt directory.
Parent topic: Installing the Basic Environment