环境
手工在k8s以session模式部署flink 1.14.4
现象
提交job后,进度一直卡在deploying
查看taskmanager 负载日志
2022-05-31 14:06:50,598 INFO org.apache.flink.runtime.taskmanager.Task [] - Loading JAR files for task Source: MySQL Source -> Sink: Print to Std. Out (1/1)#4 (348484d3defc2a3d333dd5ba4e2f8fdc) [DEPLOYING]. 2022-05-31 14:06:50,599 INFO org.apache.flink.runtime.blob.BlobClient [] - Downloading 568f6cbcdf36654d721a94522467dbea/p-ba8154f39ed540a2cacbc9b4e2028795c00555d1-f712c5096a3498f2023ff010833ac343 from flink-session-cluster-jobmanager.test.svc.cluster.local/172.24.185.10:6124 2022-05-31 14:08:57,782 ERROR org.apache.flink.runtime.blob.BlobClient [] - Failed to fetch BLOB 568f6cbcdf36654d721a94522467dbea/p-ba8154f39ed540a2cacbc9b4e2028795c00555d1-f712c5096a3498f2023ff010833ac343 from flink-session-cluster-jobmanager.test.svc.cluster.local/172.24.185.10:6124 and store it under /tmp/blobStore-aeba08a8-11ec-4372-9ad1-edaa1148604c/incoming/temp-00000001 Retrying…
原因
由日志可见,从jobmanager加载作业jar包时下载失败,加载jar的端点是link-session-cluster-jobmanager.test.svc.cluster.local/172.24.185.10:6124
jobmanager负载没有映射6124端口
解决
添加6124端口映射,问题解决