日韩性视频-久久久蜜桃-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)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 免费在线看黄色片 | 中国 免费 av| 天狂传说之巴啦啦小魔仙 | 国产一区二区三区在线 | 久久偷拍免费视频 | 香蕉久久综合 | 毛片在线免费观看视频 | 中出亚洲 | 特级精品毛片免费观看 | 亚洲欧洲在线看 | 久久久精品人妻一区二区三区 | 久久久久久久久久久久久女过产乱 | 久精品国产 | 色月婷婷| 成人乱人乱一区二区三区一级视频 | 一级美女黄色片 | 欧美激情一区二区三区四区 | 青草av在线 | 日本一区二区精品视频 | 国产日产欧洲无码视频 | 日日射天天射 | 国产婷婷久久 | 在线看免费 | 九九热九九爱 | 黄色片aa| 日韩avxxx | 在线播放黄色网址 | 欧美成人精品二区三区99精品 | 超碰最新上传 | 国产精品无码专区 | 久久久久国产一区二区三区 | 男男h黄动漫啪啪无遮挡软件 | 一区二区视频网站 | 久久久久久久福利 | 爱啪啪导航 | 国产极品美女高潮无套嗷嗷叫酒店 | 欧美日韩三级在线 | 美丽的姑娘在线观看免费 | 蜜桃臀av| 欧美男女交配 | 精品久久国产视频 | 一区二区三区成人 | 黄色日韩在线 | 久久日韩 | 在线免费看mv的网站入口 | 免费一级特黄特色毛片久久看 | 亚洲av片在线观看 | 精品无码国产污污污在线观看 | 欧美激情二区三区 | 精品成人网 | 最新毛片基地 | 伊人77 | 久久综合久久久久 | 国产亚洲精品精品国产亚洲综合 | av永久免费网站 | 久久人人人 | 成人理论视频 | 激情伊人网 | 日本泡妞xxxx免费视频软件 | 女18毛片 | 阿拉伯性视频xxxx | 国产精品野外户外 | 诱惑の诱惑筱田优在线播放 | 亚洲综合色自拍一区 | 日日操天天射 | 亚洲AV成人无码久久精品巨臀 | 中文字幕在线观看网站 | 樱花电影最新免费观看国语版 | 欧美资源 | 91好色先生| 有声小说 成人专区 | 久久免费公开视频 | 国产精品一线二线 | 亚洲成av人片在线观看无 | 色婷婷午夜 | 久久久亚洲国产精品 | 亚洲综合五区 | www.av天天| 亚洲成人精品在线播放 | 日韩精品在线免费 | 三级视频在线看 | 丰满人妻熟女aⅴ一区 | 亚洲av无码一区二区三区人妖 | 美女黄污网站 | 一区二区国产电影 | 日本妇乱大交xxxxx | 一本大道久久a久久综合婷婷 | 免费成人深夜夜国外 | 欧美伦理一区二区 | 天堂成人在线观看 | 成年人爱爱视频 | 日本亚洲一区二区 | 免费成人蒂法网站 | 人妻无码一区二区三区 | 亚洲欧美视频在线播放 | 亚洲在线观看一区二区 | 欧美精品国产精品 | 一区二区中文在线 | 96精品在线 |