{"id":432,"date":"2015-05-28T18:11:24","date_gmt":"2015-05-28T18:11:24","guid":{"rendered":"248e844336797ec98478f85e7626de4a"},"modified":"2015-05-28T18:11:24","modified_gmt":"2015-05-28T18:11:24","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/432","title":{"rendered":"HDFS \u57fa\u672c\u6982\u5ff5"},"content":{"rendered":"<p>HDFS\u662fHadoop Distribute File System \u7684\u7b80\u79f0\uff0c\u4e5f\u5c31\u662fHadoop\u7684\u4e00\u4e2a\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u4e00\u3001HDFS\u7684\u4e3b\u8981\u8bbe\u8ba1\u7406\u5ff5<\/strong><\/p>\n<p>1\u3001\u5b58\u50a8\u8d85\u5927\u6587\u4ef6<\/p>\n<p>&nbsp; \u8fd9\u91cc\u7684\u201c\u8d85\u5927\u6587\u4ef6\u201d\u662f\u6307\u51e0\u767eMB\u3001GB\u751a\u81f3TB\u7ea7\u522b\u7684\u6587\u4ef6\u3002<\/p>\n<p>2\u3001\u6700\u9ad8\u6548\u7684\u8bbf\u95ee\u6a21\u5f0f\u662f \u4e00\u6b21\u5199\u5165\u3001\u591a\u6b21\u8bfb\u53d6(\u6d41\u5f0f\u6570\u636e\u8bbf\u95ee)<\/p>\n<p>&nbsp; HDFS\u5b58\u50a8\u7684\u6570\u636e\u96c6\u4f5c\u4e3ahadoop\u7684\u5206\u6790\u5bf9\u8c61\u3002\u5728\u6570\u636e\u96c6\u751f\u6210\u540e\uff0c\u957f\u65f6\u95f4\u5728\u6b64\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u5404\u79cd\u5206\u6790\u3002\u6bcf\u6b21\u5206\u6790\u90fd\u5c06\u8bbe\u8ba1\u8be5\u6570\u636e\u96c6\u7684\u5927\u90e8\u5206\u6570\u636e\u751a\u81f3\u5168\u90e8\u6570\u636e\uff0c\u56e0\u6b64\u8bfb\u53d6\u6574\u4e2a\u6570\u636e\u96c6\u7684\u65f6\u95f4\u5ef6\u8fdf\u6bd4\u8bfb\u53d6\u7b2c\u4e00\u6761\u8bb0\u5f55\u7684\u65f6\u95f4\u5ef6\u8fdf\u66f4\u91cd\u8981\u3002<\/p>\n<p>3\u3001\u8fd0\u884c\u5728\u666e\u901a\u5ec9\u4ef7\u7684\u670d\u52a1\u5668\u4e0a<\/p>\n<p>HDFS\u8bbe\u8ba1\u7406\u5ff5\u4e4b\u4e00\u5c31\u662f\u8ba9\u5b83\u80fd\u8fd0\u884c\u5728\u666e\u901a\u7684\u786c\u4ef6\u4e4b\u4e0a\uff0c\u5373\u4fbf\u786c\u4ef6\u51fa\u73b0\u6545\u969c\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5bb9\u9519\u7b56\u7565\u6765\u4fdd\u8bc1\u6570\u636e\u7684\u9ad8\u53ef\u7528\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u4e8c\u3001HDFS\u7684\u5fcc\u8bb3<\/strong><\/p>\n<p>1\u3001\u5c06HDFS\u7528\u4e8e\u5bf9\u6570\u636e\u8bbf\u95ee\u8981\u6c42\u4f4e\u5ef6\u8fdf\u7684\u573a\u666f<\/p>\n<p>&nbsp; \u7531\u4e8eHDFS\u662f\u4e3a\u9ad8\u6570\u636e\u541e\u5410\u91cf\u5e94\u7528\u800c\u8bbe\u8ba1\u7684\uff0c\u5fc5\u7136\u4ee5\u9ad8\u5ef6\u8fdf\u4e3a\u4ee3\u4ef7\u3002<\/p>\n<p>2\u3001\u5b58\u50a8\u5927\u91cf\u5c0f\u6587\u4ef6<\/p>\n<p>&nbsp; HDFS\u4e2d\u5143\u6570\u636e\uff08\u6587\u4ef6\u7684\u57fa\u672c\u4fe1\u606f\uff09\u5b58\u50a8\u5728namenode\u7684\u5185\u5b58\u4e2d\uff0c\u800cnamenode\u4e3a\u5355\u70b9\uff0c\u5c0f\u6587\u4ef6\u6570\u91cf\u5927\u5230\u4e00\u5b9a\u7a0b\u5ea6\uff0cnamenode\u5185\u5b58\u5c31\u5403\u4e0d\u6d88\u4e86\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u4e09\u3001HDFS\u57fa\u672c\u6982\u5ff5<\/strong><\/p>\n<p>\u6570\u636e\u5757\uff08block\uff09\uff1a\u5927\u6587\u4ef6\u4f1a\u88ab\u5206\u5272\u6210\u591a\u4e2ablock\u8fdb\u884c\u5b58\u50a8\uff0cblock\u5927\u5c0f\u9ed8\u8ba4\u4e3a64MB\u3002\u6bcf\u4e00\u4e2ablock\u4f1a\u5728\u591a\u4e2adatanode\u4e0a\u5b58\u50a8\u591a\u4efd\u526f\u672c\uff0c\u9ed8\u8ba4\u662f3\u4efd\u3002<\/p>\n<p>namenode\uff1anamenode\u8d1f\u8d23\u7ba1\u7406\u6587\u4ef6\u76ee\u5f55\u3001\u6587\u4ef6\u548cblock\u7684\u5bf9\u5e94\u5173\u7cfb\u4ee5\u53cablock\u548cdatanode\u7684\u5bf9\u5e94\u5173\u7cfb\u3002<\/p>\n<p>datanode\uff1adatanode\u5c31\u8d1f\u8d23\u5b58\u50a8\u4e86\uff0c\u5f53\u7136\u5927\u90e8\u5206\u5bb9\u9519\u673a\u5236\u90fd\u662f\u5728datanode\u4e0a\u5b9e\u73b0\u7684\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u56db\u3001HDFS\u57fa\u672c\u67b6\u6784\u56fe<\/strong>&nbsp;<\/p>\n<p><a id=\"ematt:284\" href=\"\/notes\/content\/uploadfile\/201505\/4a471432807963.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"height:451px;width:647px;\" border=\"0\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" src=\"\/notes\/content\/uploadfile\/201505\/4a471432807963.png\" width=\"838\" height=\"579\" \/><\/a><a style=\"text-decoration:underline;color:#004276;\" href=\"http:\/\/s9.51cto.com\/wyfs01\/M01\/01\/20\/wKioJlC8bhHTQ009AAFY6Rvkpk8264.png\" target=\"_blank\"><\/a><\/p>\n<p>\u56fe\u4e2d\u6709\u51e0\u4e2a\u6982\u5ff5\u9700\u8981\u4ecb\u7ecd\u4e00\u4e0b<\/p>\n<p>Rack \u662f\u6307\u673a\u67dc\u7684\u610f\u601d\uff0c\u4e00\u4e2ablock\u7684\u4e09\u4e2a\u526f\u672c\u901a\u5e38\u4f1a\u4fdd\u5b58\u5230\u4e24\u4e2a\u6216\u8005\u4e24\u4e2a\u4ee5\u4e0a\u7684\u673a\u67dc\u4e2d\uff08\u5f53\u7136\u662f\u673a\u67dc\u4e2d\u7684\u670d\u52a1\u5668\uff09\uff0c\u8fd9\u6837\u505a\u7684\u76ee\u7684\u662f\u505a\u9632\u707e\u5bb9\u9519\uff0c\u56e0\u4e3a\u53d1\u751f\u4e00\u4e2a\u673a\u67dc\u6389\u7535\u6216\u8005\u4e00\u4e2a\u673a\u67dc\u7684\u4ea4\u6362\u673a\u6302\u4e86\u7684\u6982\u7387\u8fd8\u662f\u86ee\u9ad8\u7684\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u4e94\u3001HDFS\u5199\u6587\u4ef6\u6d41\u7a0b<\/strong>&nbsp;<\/p>\n<p><a id=\"ematt:285\" href=\"\/notes\/content\/uploadfile\/201505\/fb5c1432807963.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"height:381px;width:564px;\" border=\"0\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" src=\"\/notes\/content\/uploadfile\/201505\/fb5c1432807963.png\" width=\"858\" height=\"572\" \/><\/a><a style=\"text-decoration:underline;color:#004276;\" href=\"http:\/\/s2.51cto.com\/wyfs01\/M00\/01\/20\/wKioJlC8bh7xLcRsAAFQYcixmaQ367.png\" target=\"_blank\"><\/a><\/p>\n<p>\u601d\u8003\uff1a<\/p>\n<p>\u5728datanode\u6267\u884ccreate file\u540e\uff0cnamenode\u91c7\u7528\u4ec0\u4e48\u7b56\u7565\u7ed9client\u5206\u914ddatanode\uff1f<\/p>\n<p>&nbsp; \u987a\u5e8f\u5199\u5165\u4e09\u4e2adatanode\uff0c\u5199\u5165\u8fc7\u7a0b\u4e2d\u6709\u4e00\u4e2adatanode\u6302\u6389\u4e86\uff0c\u5982\u4f55\u5bb9\u9519\uff1f<\/p>\n<p>&nbsp; client\u5f80datanode\u5199\u5165\u6570\u636e\u65f6\u6302\u6389\u4e86\uff0c\u600e\u4e48\u5bb9\u9519\uff1f<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u516d\u3001HDFS\u8bfb\u6587\u4ef6\u6d41\u7a0b<\/strong>&nbsp;<\/p>\n<p><a id=\"ematt:286\" href=\"\/notes\/content\/uploadfile\/201505\/10fb1432807963.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"height:331px;width:498px;\" border=\"0\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" src=\"\/notes\/content\/uploadfile\/201505\/10fb1432807963.png\" width=\"835\" height=\"577\" \/><\/a><a style=\"text-decoration:underline;color:#004276;\" href=\"http:\/\/s2.51cto.com\/wyfs01\/M01\/01\/20\/wKioOVC8binh0A8EAAElq7YHpO8183.png\" target=\"_blank\"><\/a><\/p>\n<p>\u601d\u8003\uff1anamenode\u6302\u6389\u4e86\u600e\u4e48\u529e\uff0c\u8fd9\u4e2a\u65f6\u5019HDFS\u662f\u5426\u6709\u76f8\u5e94\u7684\u5bb9\u9519\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HDFS\u662fHadoop Distribute File System \u7684\u7b80\u79f0\uff0c\u4e5f\u5c31\u662fHadoop\u7684\u4e00\u4e2a\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p><strong style=\"font-weight:bold;text-align:center;\">\u4e00\u3001HDFS\u7684\u4e3b\u8981\u8bbe\u8ba1\u7406\u5ff5<\/strong><\/p>\n<p>1\u3001\u5b58\u50a8\u8d85\u5927\u6587\u4ef6<\/p>\n<p>&nbsp; \u8fd9\u91cc\u7684\u201c\u8d85\u5927\u6587\u4ef6\u201d\u662f\u6307\u51e0\u767eMB\u3001GB\u751a\u81f3TB\u7ea7\u522b\u7684\u6587\u4ef6\u3002<\/p>\n<p>2\u3001\u6700\u9ad8\u6548\u7684\u8bbf\u95ee\u6a21\u5f0f\u662f \u4e00\u6b21\u5199\u5165\u3001\u591a\u6b21\u8bfb\u53d6(\u6d41\u5f0f\u6570\u636e\u8bbf\u95ee)<\/p>\n<p>&nbsp; HDFS\u5b58\u50a8\u7684\u6570\u636e\u96c6\u4f5c\u4e3ahadoop\u7684\u5206\u6790\u5bf9\u8c61\u3002\u5728\u6570\u636e\u96c6\u751f\u6210\u540e\uff0c\u957f\u65f6\u95f4\u5728\u6b64\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u5404\u79cd\u5206\u6790\u3002\u6bcf\u6b21\u5206\u6790\u90fd\u5c06\u8bbe\u8ba1\u8be5\u6570\u636e\u96c6\u7684\u5927\u90e8\u5206\u6570\u636e\u751a\u81f3\u5168\u90e8\u6570\u636e\uff0c\u56e0\u6b64\u8bfb\u53d6\u6574\u4e2a\u6570\u636e\u96c6\u7684\u65f6\u95f4\u5ef6\u8fdf\u6bd4\u8bfb\u53d6\u7b2c\u4e00\u6761\u8bb0\u5f55\u7684\u65f6\u95f4\u5ef6\u8fdf\u66f4\u91cd\u8981\u3002<\/p>\n<p>3\u3001\u8fd0\u884c\u5728\u666e\u901a\u5ec9\u4ef7\u7684\u670d\u52a1\u5668\u4e0a<\/p>\n<p>HDFS\u8bbe\u8ba1\u7406\u5ff5\u4e4b\u4e00\u5c31\u662f\u8ba9\u5b83\u80fd\u8fd0\u884c\u5728\u666e\u901a\u7684\u786c\u4ef6\u4e4b\u4e0a\uff0c\u5373\u4fbf\u786c\u4ef6\u51fa...<\/p>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/432\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[292],"tags":[],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-storage"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}