docker run -i -d -t --name flink-jm -h flink-jm -p 18088:8088 -p 18081:8081 --network=flink-network flink:1.14.0-scala_2.12-java8 jobmanager docker run -itd --name flink-tm -h flink-tm -e JOB_MANAGER_RPC_ADDRESS=flink-jm --network flink-network flink:1.14.0-scala_2.12-java8 taskmanager动态增加端口映射
Mac下 Docker 动态添加端口 - 简书
针对 jobmanger 实际发现
/docker-entrypoint.sh 调用入口(1)
/opt/flink/bin/jobmanager.sh
因此修改/opt/flink/bin/jobmanger.sh
export Flink_ENV_JAVA_OPTS="${Flink_ENV_JAVA_OPTS} ${Flink_ENV_JAVA_OPTS_JM} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9091"
达到远程debug的需求,结合动态增加docker容器的端口映射
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)