当前位置:网站首页>解决flink启动后无法正常关闭
解决flink启动后无法正常关闭
2022-07-27 14:42:00 【吃胡萝卜的鳄鱼】
使用命令stop-cluster.sh关闭flink集群的时候出现以下错误,
No taskexecutor daemon to stop on host tanghc-X550JX.
No standalonesession daemon to stop on host tanghc-X550JX.
jps查看进程发现,flink是启动着的,8081端口查看也是正常的,
为什么会无法正常关闭,还提示没有taskexecutor和standalonesession进程呢?
我想起以前spark集群也出现过类似的问题,原因是spark启动是会把启动的进程的ID存到一个文件中,由于配置不修改的话文件默认是保存到系统的/tmp目录下,由于是临时目录,会被系统清理,所以存放的ID就找不到了,也就没法关闭集群了。
去到/tmp目录下查看文件,果然发现了flink的PID文件
这样一来就好办了,只要把这个配置项一改不就齐活了。
根据spark的经验首先我进入到FLINK_HOME的conf目录下
打开flink-conf.yaml,发现,找不到PID的配置选项,我没认输,我又一行一行看了一遍,确实没有,难道flink不能修改??我用大腿思考了一下,回到了我提出的问题,不可能!一定可以修改,这时候突然想起,要不看看启动脚本?
嘿嘿嘿~没有!不过英语超级厉(la)害(ji)的我发现了这个
在FLINK_HOME/bin/目录下我看到了config.sh文件
vim打开

我看到了熟悉的配置项:××××××_PID_DIR
果然指定的是/tmp,将此配置项目修改到合适的位置(博主直接在FLINK_HOME下建立了一个tmp目录)
不过之前没法关闭的进程只能是强行Kill掉了。
重新启动后成功关闭
边栏推荐
- go语言慢速入门——基本内置类型
- juc包下常用工具类
- Go language slow start - package
- DRF学习笔记(四):DRF视图
- 文字批量替换功能
- drf使用:get请求获取数据(小例子)
- To meet risc-v challenges? ARM CPU introduces custom instruction function!
- 一款功能强大的Web漏洞扫描和验证工具(Vulmap)
- [regular expression] matching grouping
- [sword finger offer] interview question 56-i: the number of numbers in the array I
猜你喜欢
![[sword finger offer] interview question 45: arrange the array into the smallest number](/img/d1/e2e21c95ecf5b8e3854f134cc47228.png)
[sword finger offer] interview question 45: arrange the array into the smallest number
![[tensorboard] oserror: [errno 22] invalid argument processing](/img/bf/c995f487607e3b307a268779ec1e94.png)
[tensorboard] oserror: [errno 22] invalid argument processing

On juicefs

C language: custom type

Division of entity classes (VO, do, dto)

网络原理(1)——基础原理概述

Using Lombok results in the absence of parent class attributes in the printed toString

Solve mt7620 continuous cycle uboot (LZMA error 1 - must reset board to recover)

Is low code the future of development? On low code platform

Clickhouse 20.x distributed table testing and chproxy deployment (II)
随机推荐
Division of entity classes (VO, do, dto)
Clickhouse 20.x distributed table testing and chproxy deployment (II)
台积电6纳米制程将于明年一季度进入试产
Live broadcast software development, customized pop-up effect of tools
Network principle (2) -- network development
Go language slow start - package
Voice live broadcast system -- a necessary means to improve the security of cloud storage
Talk about the index of interview questions
vant-ui toast和dialog使用
微信小程序个人号开通流量主
Ncnn reasoning framework installation; Onnx to ncnn
The risk of multithreading -- thread safety
数据表的约束以及设计、联合查询——8千字攻略+题目练习解答
网络层的IP协议
Interview focus - TCP protocol of transport layer
Go language slow start - Basic built-in types
Modify spark to support remote access to OSS files
Six capabilities of test and development
少见的按位操作符
synchronized和ReentrantLock的区别