hadoop闆嗙兢鍩烘湰杩涚▼
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop闆嗙兢鍩烘湰杩涚▼相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e9%80%9a%e4%bf%a1' title='閫氫俊'>閫氫俊 cat oop cti over 瀹堟姢杩涚▼ 杩愯 瑙掕壊 str
namenode
銆€銆€namenode 鐩稿綋浜庝竴涓瀵艰€咃紝璐熻矗璋冨害 姣斿浣犻渶瑕佸瓨涓€涓?40m鐨勬枃浠?濡傛灉鎸夌収64m鍒嗗潡 閭d箞namenode灏变細鎶婅繖10涓潡锛堣繖閲屼笉鑰冭檻鍓湰锛夊垎閰嶅埌闆嗙兢涓殑datanode涓?骞惰褰曞浜庡叧绯?銆傚綋浣犺涓嬭浇杩欎釜鏂囦欢鐨勬椂鍊檔amenode灏辩煡閬撳湪閭d簺鑺傜偣涓婄粰浣犲彇杩欎簺鏁版嵁浜嗐€?/p>
QuorumPeerMain
銆€銆€QuorumPeerMain Zookeeper闆嗙兢鍚姩鐨勫叆鍙g被鏄疩uorumPeerMain鏉ュ姞杞介厤缃惎鍔≦uorumPeer绾跨▼銆傞鍏堟垜浠潵鐪嬩笅QuorumPeer锛?璋锋瓕缈昏瘧quorum鏄硶瀹氫汉鏁帮紝瀹氶鐨勬剰鎬濓紝 peer鏄绛夌殑鎰忔€濓紝閭d箞QuorumPeer涓璹uorum浠h〃鐨勬剰鎬濆氨鏄瘡涓獄ookeeper闆嗙兢鍚姩鐨勬椂鍊欓泦缇や腑zookeeper鏈嶅姟鏁伴噺灏卞凡缁忕‘瀹氫簡锛屽湪姣忎釜zookeeper鐨勯厤缃枃浠朵腑閰嶇疆闆嗙兢涓殑鎵€鏈夋満鍣ㄤ簨瀹炰笂杩欎篃纭畾zookeeper鍦ㄨ繍琛屼腑鏄笉鑳藉姩鎬佹墿瀹圭殑锛屽繀椤诲仠涓嬫湇鍔′慨鏀归厤缃墠鍙互锛決uorumPeer涓璸eer浠h〃灏辨槸闆嗕腑姣忎釜zookeeper瑙掕壊鏄绛夌殑娌℃湁涓讳粠涔嬪垎锛屾瘡涓獄ookeeper鏈嶅姟閮藉彲浠ユ垚涓簂eader锛?follower锛宱bserver銆?/p>
journalnode
journalnode 涓や釜NameNode涓轰簡鏁版嵁鍚屾锛屼細閫氳繃涓€缁勭О浣淛ournalNodes鐨勭嫭绔嬭繘绋嬭繘琛岀浉浜掗€氫俊銆傚綋active鐘舵€佺殑NameNode鐨勫懡鍚嶇┖闂存湁浠讳綍淇敼鏃讹紝浼氬憡鐭ュぇ閮ㄥ垎鐨凧ournalNodes杩涚▼銆俿tandby鐘舵€佺殑NameNode鏈夎兘鍔涜鍙朖Ns涓殑鍙樻洿淇℃伅锛屽苟涓斾竴鐩寸洃鎺dit log鐨勫彉鍖栵紝鎶婂彉鍖栧簲鐢ㄤ簬鑷繁鐨勫懡鍚嶇┖闂淬€俿tandby鍙互纭繚鍦ㄩ泦缇ゅ嚭閿欐椂锛屽懡鍚嶇┖闂寸姸鎬佸凡缁忓畬鍏ㄥ悓姝ヤ簡
ZKFailoverController
銆€銆€ZKFailoverController 鏄痟adoop-2.7.0涓璈DFS NameNode HA瀹炵幇鐨勪腑蹇冪粍浠讹紝瀹冭礋璐f暣浣撶殑鏁呴殰杞Щ鎺у埗绛夈€傚畠鏄竴涓畧鎶よ繘绋嬶紝閫氳繃main()鏂规硶鍚姩锛岀户鎵胯嚜ZKFailoverController銆?/p>
resourcemanager
銆€銆€resourcemanager 鍦╕ARN涓紝ResourceManager璐熻矗闆嗙兢涓墍鏈夎祫婧愮殑缁熶竴绠$悊鍜屽垎閰嶏紝瀹冩帴鏀舵潵鑷悇涓妭鐐癸紙NodeManager锛夌殑璧勬簮姹囨姤淇℃伅锛屽苟鎶婅繖浜涗俊鎭寜鐓т竴瀹氱殑绛栫暐鍒嗛厤缁欏悇涓簲鐢ㄧ▼搴忥紙瀹為檯涓婃槸ApplicationManager锛夈€?/p>
DataNode
銆€銆€DataNode 瑙i噴Datanode鏄枃浠剁郴缁熺殑宸ヤ綔鑺傜偣锛屼粬浠牴鎹鎴风鎴栬€呮槸namenode鐨勮皟搴﹀瓨鍌ㄥ拰妫€绱㈡暟鎹紝骞朵笖瀹氭湡鍚憂amenode鍙戦€佷粬浠墍瀛樺偍鐨勫潡(block)鐨勫垪琛ㄣ€?/p>
nodemanager
銆€銆€nodemanager 鏄痀ARN涓瘡涓妭鐐逛笂鐨勪唬鐞嗭紝瀹冪鐞唄adoop闆嗙兢涓崟涓绠楄妭鐐癸紝鍖呮嫭涓嶳esourceManger淇濇寔閫氫俊锛岀洃鐫ontainer鐨勭敓鍛藉懆鏈熺鐞嗭紝鐩戞帶姣忎釜Container鐨勮祫婧愪娇鐢紙鍐呭瓨銆丆PU绛夛級鎯呭喌锛岃拷韪妭鐐瑰仴搴风姸鍐碉紝绠$悊鏃ュ織鍜屼笉鍚屽簲鐢ㄧ▼搴忕敤鍒扮殑闄勫睘鏈嶅姟銆?/p>
以上是关于hadoop闆嗙兢鍩烘湰杩涚▼的主要内容,如果未能解决你的问题,请参考以下文章