occlum/demos/flink/README.md
Qi Zheng efafd12d7c [demos] Update flink demo to version 1.15.2
Also make both flink job manager and task manager run in Occlum
2024-05-30 13:28:35 +08:00

960 B

Run Flink on Occlum

Preinstall dependencies

Related dependencies: openjdk-11

./preinstall_deps.sh
./download_flink.sh

Build Occlum instance

./build_occlum_instance.sh
./run_flink_on_occlum.sh jm

Wait a while for job manager started successfully. You can check the log occlum_instance_jobmanager/flink--standalonesession-0.log for detail status.

Once the job manager is up, you can run the task manager.

./run_flink_on_occlum.sh tm

Wait a while for task manager started successfully. You can check the log occlum_instance_taskmanager/flink--taskmanager-0.log for detail status.

You can submit an example flink job by using the following command:

./run_flink_on_occlum.sh task

Note:
If running the jobmanager in docker, please export the port 8081 and 6123.