案例:Flink1.12.4
发现问题
启动Flink
//启动之后会显示如下日志信息
Starting HA cluster with 2 masters.
Starting standalonesession daemon on host hadoop001.
Starting standalonesession daemon on host hadoop002.
Starting taskexecutor daemon on host hadoop001.
Starting taskexecutor daemon on host hadoop002.
Starting taskexecutor daemon on host hadoop003.
查看进程发现,hadoop001 和 hadoop002 的 JobManager 进程StandaloneSessionClusterEntrypoint,hadoop001、hadoop002 和 hadoop003 上的 TaskManager 进程TaskManagerRunner都没有启动。
如果启动成功
Master应该有StandaloneSessionClusterEntrypoint
Slave应该有TaskManagerRunner
通过查看 log
目录下的日志来定位错误,发现错误如下:
2022-03-17 17:18:35,877 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint
- Shutting StandaloneSessionClusterEntrypoint down with application status FAILED. Dia