日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

十二:NodeManager

發(fā)布時間:2025/3/15 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 十二:NodeManager 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
NM負(fù)責(zé)啟動和管理節(jié)點(diǎn)上的containers。AM通過containers來運(yùn)行任務(wù)。

Health Checker Service 創(chuàng)建檢查服務(wù)

NM運(yùn)行一個檢查服務(wù)來檢查節(jié)點(diǎn)的狀態(tài),該服務(wù)可以使用用戶自定義的檢查腳本。如果節(jié)點(diǎn)檢查不通過,NM通過heart beat通知RM,RM將不再使用該節(jié)點(diǎn)上新增的container。
Disk Checker 磁盤檢查
disk checker會檢查NM使用到的磁盤,如local-dirs and log-dirs(本地文件、日志文件)、 configured using yarn.nodemanager.local-dirs and yarn.nodemanager.log-dirs respectively等。檢查包括權(quán)限、空閑空間、磁盤是否只讀等。如果磁盤檢查失敗,NM不會使用那些有問題的磁盤,但仍將將節(jié)點(diǎn)標(biāo)記為healthy,但是如果相當(dāng)數(shù)量(可以設(shè)置值)的磁盤檢查失敗后,則會將節(jié)點(diǎn)標(biāo)記為unheathy。
磁盤檢查的參數(shù):
Configuration NameAllowed ValuesDescription
yarn.nodemanager.disk-health-checker.enabletrue, falseEnable or disable the disk health checker service
yarn.nodemanager.disk-health-checker.interval-msPositive integerThe interval, in milliseconds, at which the disk checker should run; the default value is 2 minutes
yarn.nodemanager.disk-health-checker.min-healthy-disksFloat between 0-1The minimum fraction of disks that must pass the check for the NodeManager to mark the node as healthy; the default is 0.25
yarn.nodemanager.disk-health-checker.max-disk-utilization-per-disk-percentageFloat between 0-100The maximum percentage of disk space that may be utilized before a disk is marked as unhealthy by the disk checker service. This check is run for every disk used by the NodeManager. The default value is 90 i.e. 90% of the disk can be used.
yarn.nodemanager.disk-health-checker.min-free-space-per-disk-mbIntegerThe minimum amount of free space that must be available on the disk for the disk checker service to mark the disk as healthy. This check is run for every disk used by the NodeManager. The default value is 0 i.e. the entire disk can be used.
來源:?http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/NodeManager.html

External Health Script 附件健康檢查腳本
用戶可以添加額外的健康檢查腳本。如果該腳本以非0的狀態(tài)退出、超時、拋出異常等,則該節(jié)點(diǎn)標(biāo)記為unhealty。注意:如果因?yàn)闄?quán)限問題,該腳本無法被執(zhí)行,節(jié)點(diǎn)也會被標(biāo)記為unhealthy.附加創(chuàng)建檢查腳本不是必須的,如果沒胡附加健康檢查腳本,則只運(yùn)行disk checker。參數(shù):Configuration NameAllowed ValuesDescription
yarn.nodemanager.health-checker.interval-msPostive integerThe interval, in milliseconds, at which health checker service runs; the default value is 10 minutes.
yarn.nodemanager.health-checker.script.timeout-msPostive integerThe timeout for the health script that’s executed; the default value is 20 minutes.
yarn.nodemanager.health-checker.script.pathStringAbsolute path to the health check script to be run.
yarn.nodemanager.health-checker.script.optsStringArguments to be passed to the script when the script is executed.

NodeManager Restart NM重啟

NM restart保證了在NM重啟的過程中,節(jié)點(diǎn)上的container能正常運(yùn)行。NM會把必要的信息存儲在節(jié)點(diǎn)上的statu-store中,當(dāng)NM重啟后會加載這些信息,然后恢復(fù)NM的正常運(yùn)行。
步驟如下:

Step 1. To enable NM Restart functionality, set the following property in?conf/yarn-site.xml?to?true. ?啟用NM restart

PropertyValue
yarn.nodemanager.recovery.enabledtrue, (default value is set to false)

Step 2. Configure a path to the local file-system directory where the NodeManager can save its run state. ?配置state-store

PropertyDescription
yarn.nodemanager.recovery.dirThe local filesystem directory in which the node manager will store state when recovery is enabled. The default value is set to$hadoop.tmp.dir/yarn-nm-recovery.

Step 3. Configure a valid RPC address for the NodeManager. ?重啟后NM可能會使用不同的端口導(dǎo)致client連接失效,因此要把隨機(jī)端口改成固定端口

PropertyDescription
yarn.nodemanager.addressEphemeral ports (port 0, which is default) cannot be used for the NodeManager’s RPC server specified via yarn.nodemanager.address as it can make NM use different ports before and after a restart. This will break any previously running clients that were communicating with the NM before restart. Explicitly setting yarn.nodemanager.address to an address with specific port number (for e.g 0.0.0.0:45454) is a precondition for enabling NM restart.

Step 4. Auxiliary services. ? 輔助服務(wù) ?應(yīng)用程序應(yīng)該支持重啟

  • NodeManagers in a YARN cluster can be configured to run auxiliary services. For a completely functional NM restart, YARN relies on any auxiliary service configured to also support recovery. This usually includes (1) avoiding usage of ephemeral ports so that previously running clients (in this case, usually containers) are not disrupted after restart and (2) having the auxiliary service itself support recoverability by reloading any previous state when NodeManager restarts and reinitializes the auxiliary service.

  • A simple example for the above is the auxiliary service ‘ShuffleHandler’ for MapReduce (MR). ShuffleHandler respects the above two requirements already, so users/admins don’t have do anything for it to support NM restart: (1) The configuration property?mapreduce.shuffle.port?controls which port the ShuffleHandler on a NodeManager host binds to, and it defaults to a non-ephemeral port. (2) The ShuffleHandler service also already supports recovery of previous state after NM restarts. ?ShuffleHandler支持NM的重啟













來自為知筆記(Wiz)

轉(zhuǎn)載于:https://www.cnblogs.com/skyrim/p/7455990.html

總結(jié)

以上是生活随笔為你收集整理的十二:NodeManager的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 国产 日韩 欧美 综合 | 欧美性jizz18性欧美 | 污视频网站在线播放 | 亚洲乱码精品久久久久.. | 99性趣网 | 日本大胆裸体做爰视频 | 亚洲色图制服诱惑 | 久久国产视频播放 | 久久精品a | 国产精品视频专区 | 色悠悠视频 | 国产精品视频一区二区在线观看 | 少妇特黄一区二区三区 | 五月99久久婷婷国产综合亚洲 | 欧美人与性动交α欧美片 | 超碰在线综合 | 国产精品中文字幕在线 | www.九色.com | 免费看久久 | 午夜毛片视频 | 国产精品无码免费在线观看 | 91天天射| 操少妇视频 | 男女黄网站 | 欧美激情在线观看视频 | 我想看一级黄色片 | 日本免费三区 | аⅴ资源天堂资源库在线 | 天天爽一爽 | 国产成人无码精品久久久电影 | 91国偷自产一区二区三区女王 | 国产精品一线二线 | 伊人春色影院 | 无码人妻av一区二区三区波多野 | 国产区一区二区 | 天天看天天做 | 91精品国产综合久久香蕉 | 天天搞夜夜 | 亚洲视频综合网 | 高清中文字幕mv的电影 | 91av影视 | 中文在线字幕观看 | 成人看片泡妞 | 天天射夜夜骑 | 热热色原网址 | 欧美天堂视频 | 人人妻人人玩人人澡人人爽 | 手机看片亚洲 | 中文字幕三级视频 | 黄网站在线播放 | 一本—道久久a久久精品蜜桃 | 日韩电影三级 | 91免费国产视频 | 成人国产精品久久久 | 久久久久国产一区二区三区 | 校园春色欧美 | 色多多黄色 | 丰满少妇熟乱xxxxx视频 | 蜜桃成人免费视频 | 欧美八区 | 日韩不卡高清 | 成人一级大片 | 精品少妇久久久久久888优播 | 日韩视频精品一区 | 丰满人妻一区二区三区在线 | www.猫咪av.com| 亚洲欧洲一区二区三区 | 中文字幕在线观看的网站 | 丁香花电影免费播放电影 | 成人午夜精品福利免费 | 人妻视频一区二区 | 亚洲A∨无码国产精品 | 一级裸体视频 | 免费网站在线高清观看 | 少妇系列在线观看 | 亚洲美女屁股眼交 | 亚洲图片一区二区 | 国产无遮挡又黄又爽又色视频 | 欧美激情18p | 亚洲免费观看视频 | 乱短篇艳辣500篇h文最新章节 | 美女被艹视频网站 | 欧美日韩毛片 | 在线视频你懂得 | 青娱乐免费在线视频 | 伊人手机视频 | 枫可怜av | 国产猛男猛女超爽免费视频 | 无码人妻丰满熟妇区毛片蜜桃精品 | 黄瓜视频在线播放 | 91精品免费在线观看 | 亚洲精品免费视频 | 日日干影院 | 高清无码视频直接看 | 国产精品男人的天堂 | 美女三级黄色 | 超碰v| 国产亚洲欧美在线精品 | 三上悠亚中文字幕在线播放 |