Installing the UDF Translation Tool
Installing the Translation Tool
- Obtain the RPM package of the UDF translation tool from Table 3 and install it in the flink_jm_8c32g container. By default, the RPM package is installed in the /opt directory.
rpm -ivh UNT-1.0-7.oe2403sp2.noarch.rpm
- Copy the basic library directory installed in Installing OmniStream to the /opt/udf-trans-opt directory.
docker cp /usr/local/OmniStream/libbasictypes flink_jm_8c32g:/opt/udf-trans-opt
Installing UDF Dependencies
- Download and decompress the KACC_JSON installation package.Go to the /opt directory on the physical machine, upload the BoostKit-kaccjson_1.0.0.zip installation package obtained from Table 3 to the /opt directory, and decompress the package.
1 2
cd /opt/ unzip BoostKit-kaccjson_1.0.0.zip
- Copy the kacc_json header files and static libraries to the /opt/udf-trans-opt/libbasictypes directory of the UDF translation tool in the flink_jm_8c32g container.
1 2 3
docker cp include/kacc_json flink_jm_8c32g:/opt/udf-trans-opt/libbasictypes/include/ docker cp include/kacc_gson_shell flink_jm_8c32g:/opt/udf-trans-opt/libbasictypes/include/ docker cp libkaccgson.a flink_jm_8c32g:/opt/udf-trans-opt/libbasictypes/lib/
- Download and decompress the KSL installation package.
- Go to the /opt directory on the physical machine, upload the BoostKit-ksl_2.5.1.zip installation package obtained from Table 3 to the /opt directory. Then decompress the package and upload it to the flink_jm_8c32g container.
1 2 3
cd /opt unzip BoostKit-ksl_2.5.1.zip docker cp boostkit-ksl-2.5.1-1.aarch64.rpm flink_jm_8c32g:/opt/udf-trans-opt/
- Enter the flink_jm_8c32g container and install the KSL RPM package.
1 2 3
docker exec -it flink_jm_8c32g bash cd /opt/udf-trans-opt/ rpm -ivh boostkit-ksl-2.5.1-1.aarch64.rpm
- Go to the /opt directory on the physical machine, upload the BoostKit-ksl_2.5.1.zip installation package obtained from Table 3 to the /opt directory. Then decompress the package and upload it to the flink_jm_8c32g container.
- Install the header files related to nlohmann-json.
Compile and install nlohmann-json on the physical machine.
1 2 3 4 5 6 7 8
cd /opt/udf-trans-opt git clone https://github.com/nlohmann/json.git -b v3.11.3 cd json mkdir build cd build cmake .. make -j16 make install
Upload the compiled header file to the /opt/udf-trans-opt/libbasictypes/include/ directory of the flink_jm_8c32g container.
1docker cp /usr/local/include/nlohmann flink_jm_8c32g:/opt/udf-trans-opt/libbasictypes/include
- Install the /opt/udf-trans-opt/libbasictypes header file related to huawei-securec.
- Go to the flink_jm_8c32g container, create the /opt/udf-trans-opt/libbasictypes/include/huawei_secure_c directory, and exit the container.
1 2 3
docker exec -it flink_jm_8c32g bash mkdir -p /opt/udf-trans-opt/libbasictypes/include/huawei_secure_c/ exit
- Copy the include directory generated in Installing OmniStream to the /opt/udf-trans-opt/libbasictypes/include/huawei_secure_c directory of the flink_jm_8c32g container.
1docker cp /usr/local/OmniStream/include flink_jm_8c32g:/opt/udf-trans-opt/libbasictypes/include/huawei_secure_c
- Go to the flink_jm_8c32g container, create the /opt/udf-trans-opt/libbasictypes/include/huawei_secure_c directory, and exit the container.
Parent topic: Installing the Feature