当前位置:网站首页>Solve the problem that Flink cannot be closed normally after startup
Solve the problem that Flink cannot be closed normally after startup
2022-07-27 16:16:00 【Carrot eating crocodile】
Use command stop-cluster.sh close flink The following error occurs when clustering ,
No taskexecutor daemon to stop on host tanghc-X550JX.
No standalonesession daemon to stop on host tanghc-X550JX.
jps Look at the process and find ,flink It's on ,8081 Port viewing is also normal ,
Why can't it shut down normally , Not yet prompted taskexecutor and standalonesession What about the process ?
I think of the past spark Similar problems have occurred in clusters , as a result of spark Starting will start the process ID Save to a file , If the configuration is not modified, the file is saved to the system by default /tmp Under the table of contents , Because it is a temporary directory , Will be cleaned up by the system , So the storage ID I can't find , There is no way to shut down the cluster .
Go to the /tmp View files in directory , I found it flink Of PID file 
So it's easy to do , As long as this configuration item is changed, it will be all alive .
according to spark First of all, I enter FLINK_HOME Of conf Under the table of contents 
open flink-conf.yaml, Find out , Can't find PID Configuration options , I didn't admit defeat , I read it line by line again , Not really. , Don't flink Do not modify ?? I thought with my thigh , Back to my question , impossible ! It must be modifiable , It suddenly occurred to me , Or look at the startup script ?
Hey, hey, hey ~ No, ! But English is super strong (la) harm (ji) I found this 
stay FLINK_HOME/bin/ I saw it under the directory config.sh file 
vim open

I saw the familiar configuration items :××××××_PID_DIR
Sure enough, the designated is /tmp, Modify this configuration item to the appropriate location ( Bloggers directly in FLINK_HOME We built a tmp Catalog )
However, the process that cannot be closed before can only be forced Kill It fell off .
Successfully shut down after restart 
边栏推荐
- Taking advantage of 5g Dongfeng, does MediaTek want to fight the high-end market again?
- Common problems of mobile terminal H5
- [sword finger offer] interview question 50: the first character that appears only once - hash table lookup
- 渗透测试-干货 | 80篇+网络安全面试经验帖(面试篇)
- Six capabilities of test and development
- Openwrt new platform compilation
- Short video mall system, system prompt box, confirmation box, click blank to close the pop-up box
- MySQL index
- Nacos
- DRF学习笔记(三):模型类序列化器ModelSerializer
猜你喜欢
随机推荐
接连取消安富利/文晔/世平代理权,TI到底打的什么算盘?
mysql设置密码时报错 Your password does not satisfy the current policy requirements(修改·mysql密码策略设置简单密码)
台积电6纳米制程将于明年一季度进入试产
编码技巧——全局日志开关
Openwrt adds RTC (mcp7940 I2C bus) drive details
To meet risc-v challenges? ARM CPU introduces custom instruction function!
web测试学习笔记01
flink打包程序提交任务示例
Introduction to JWT
使用transform:translate()出现内容模糊问题
Text capture picture (Wallpaper of Nezha's demon child coming to the world)
firefox旧版本
TSMC's counterattack: it accused lattice core of infringing 25 patents and asked for prohibition!
Wechat applet personal number opens traffic master
Baidu picture copy picture address
: 0xc0000005: an access conflict occurs when writing position 0x01458000 - to be solved
profileapi.h header
[sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
IO流简介
Coding skills - Global exception capture & unified return body & Business exception








