使用停止
[root@master bin]# ./stop-cluster.sh
No taskexecutor daemon to stop on host slave1.
No taskexecutor daemon to stop on host slave2.
No taskexecutor daemon to stop on host slave3.
No taskexecutor daemon to stop on host slave4.
No standalonesession daemon to stop on host master.
Stopping standalonesession daemon (pid: 30082) on host slave1.
原因为PID文件被tmp清理掉了
查看/usr/lib/flink-1.11.3/bin/config.sh
查看其中
DEFAULT_ENV_PID_DIR="/tmp" # Directory to store *.pid files to
进程的pid文件会在/tmp目录下临时生成
这种情况会被系统自动清理掉
修改此配置
DEFAULT_ENV_PID_DIR="/usr/lib/flink-1.11.3/tmp" # Directory to store *.pid files to
注意创建/tmp目录
然后将所有slave节点的flink进程都手动kill掉之后
再去启动HA