{"id":89,"date":"2011-02-19T02:35:18","date_gmt":"2011-02-18T18:35:18","guid":{"rendered":"http:\/\/sinofool.net\/blog\/?p=89"},"modified":"2011-12-12T15:07:28","modified_gmt":"2011-12-12T07:07:28","slug":"hadoop%e5%ad%98%e5%9c%a8%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/sinofool.net\/blog\/archives\/89","title":{"rendered":"Hadoop\u5b58\u5728\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u7761\u89c9\u524d\u5076\u7136\u770b\u770bGoogle Analytics\u7684\u7edf\u8ba1\uff0c\u6709\u51e0\u4e2a\u4eba\u662f\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u641c\u7d22\u201cHadoop\u5b58\u5728\u7684\u95ee\u9898\u201d\u6765\u8bbf\u95ee\u4e86\u8fd9\u91cc\u3002<br \/>\n\u6211\u4e5f\u8bd5\u7740\u641c\u4e86\u4e00\u4e0b\uff0c\u6211\u7684\u4e0a\u4e00\u7bc7\u5199Hadoop\u7684\u5185\u5bb9\u5728Google\u51fa\u73b0\u7b2c10\u9875\uff0cbaidu\u7b2c4\u9875\u3002<\/p>\n<p>\u65e2\u7136\u8fd9\u4e2a\u95ee\u9898\u90fd\u8ba9\u4eba\u7ffb\u4e86\u8fd9\u4e48\u591a\u9875\u6765\u5bfb\u627e\u7b54\u6848\uff0c\u6211\u5c31\u5f00\u59cb\u53cd\u95ee\u81ea\u5df1\u4e86\u3002<\/p>\n<p>Hadoop\u5b58\u5728\u4ec0\u4e48\u95ee\u9898\uff1f<\/p>\n<p>\u601d\u8003\u4e86\u6700\u8fd1\u4e24\u5e74\u7684\u8fc7\u7a0b\uff0c\u6211\u8ba4\u4e3aHadoop\u5b58\u5728\u7684\u95ee\u9898\u90fd\u4e0d\u662f\u6280\u672f\u95ee\u9898\uff1a<\/p>\n<p>1. API\u4e0d\u7a33\u5b9a<\/p>\n<p>Hadoop\u4ece0.17\u5f00\u59cb\uff0c\u5230\u76ee\u524d\u6211\u7528\u52300.21\uff0c\u6bcf\u6b21\u5347\u7ea7\u90fd\u8ba9\u6211\u82e6\u4e0d\u582a\u8a00\u3002<br \/>\nHDFS\u548cMapReduce\u7684\u5411\u524d\u517c\u5bb9\u505a\u7684\u4e0d\u9519\uff0c\u4f46\u662f\u8fc7\u591a\u7684\u5916\u56f4\u7a0b\u5e8f\u8ddf\u8fdb\u4e86\u8fd9\u4e2a\u6f29\u6da1\uff0c\u4f8b\u5982Hive,HBase\u3002<br \/>\n\u7531\u4e8e\u8fd9\u4e9b\u5916\u56f4\u7a0b\u5e8f\u7684\u4e0d\u8ddf\u8fdb\uff0c\u6bcf\u6b21\u5347\u7ea7\u90fd\u4f1a\u635f\u5931\u4e00\u4e9b\u8ffd\u968f\u8005\u3002<\/p>\n<p>\u5f53\u71360.xx\u7248\u672c\uff0c\u672c\u6765\u5c31\u6ca1\u6709\u627f\u8bfaAPI\u662f\u7a33\u5b9a\u7684\u3002\u53ea\u662f\u81f3\u4eca\u4e5f\u90fd\u6ca1\u67091.0\u7684\u89c4\u5212\uff0c\u5f88\u53ef\u80fd\u5c06\u6765\u8981\u51fa\u52300.99\u3002<br \/>\n\u6ca1\u6709\u76fc\u5934\u7684\u4e00\u76f4\u8ddf\u968f\u66f4\u65b0\uff0c\u5b9e\u5728\u662f\u5f88\u8f9b\u82e6\u3002<\/p>\n<p>2. \u5ba3\u4f20\u548c\u666e\u53ca\u7684\u4e0d\u591f<\/p>\n<p>\u5728\u521a\u63a5\u89e6\u4e86Hadoop\u51e0\u4e2a\u6708\u7684\u65f6\u5019\uff0c\u6709\u5e78\u4e0ezshao@apache\u5ea7\u8c08\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u3002<br \/>\n\u6211\u60f3\u8fd9\u53ef\u80fd\u662f\u6211\u80fd\u4e00\u76f4\u575a\u6301\u7740\u8ddf\u8fdbHadoop\u5f00\u53d1\u7684\u4e00\u4e2a\u52a8\u529b\u3002<\/p>\n<p>\u5ba3\u4f20\u7684\u5c11\u4f1a\u8ba9\u8c28\u614e\u7684\u4eba\u4e0d\u6562\u7528\uff0c\u666e\u53ca\u7684\u591a\u4f1a\u8ba9\u6fc0\u8fdb\u7684\u4eba\u6ee5\u7528\u3002<br \/>\n\u6211\u81ea\u8ba4\u4e3a\u5728\u6280\u672f\u9009\u578b\u4e0a\u662f\u4e2a\u4fdd\u5b88\u6d3e\uff0c\u6240\u4ee5\u5173\u4e8e\u5e94\u7528HBase\u7684\u5404\u79cd\u8ba8\u8bba\uff0c\u6211\u90fd\u6295\u7684\u53cd\u5bf9\u7968\u3002<\/p>\n<p>\u6211\u8ba4\u4e3aHadoop\u53ca\u5176\u884d\u751f\u54c1\uff0c\u6839\u6e90\u4e0a\u662f\u6279\u5904\u7406\u7cfb\u7edf\uff0c\u9ad8\u5bb9\u9519\uff0c\u9ad8\u5ef6\u65f6\u3002<br \/>\n\u8fd9\u79cd\u7cfb\u7edf\u6211\u4f1a\u7528\u6765\u505a\u5f02\u6b65\u7684\u8ba1\u7b97\uff0c\u4f46\u662f\u4e00\u5b9a\u4e0d\u80fd\u67d3\u6307\u7528\u6237\u64cd\u4f5c\u884c\u4e3a\u3002<\/p>\n<p>\u5e94\u8be5\u52a0\u5f3a\u5ba3\u4f20\uff0c\u8ba9\u5927\u5bb6\u77e5\u9053Hadoop\u4e0d\u662f\u4e07\u80fd\u7684\uff0c\u5b83\u6700\u64c5\u957f\u7684\u662f\u5e76\u884c\u5904\u7406\u3002<\/p>\n<p>3. \u5c0f\u4f17<\/p>\n<p>\u6574\u4e2aMapReduce\u8fd9\u4e2a\u6982\u5ff5\u662f\u57fa\u4e8eGoogle\u7684\u4e00\u7bc7\u8bba\u6587\uff0c\u672c\u662f\u89e3\u51b3PB\u7ea7\u522b\u641c\u7d22\u7d22\u5f15\u95ee\u9898\u5f00\u53d1\u7684\u67b6\u6784\u3002<\/p>\n<p>\u968f\u7740\u53d1\u5c55\uff0c\u867d\u7136\u529f\u80fd\u5df2\u7ecf\u62bd\u8c61\u7684\u4e0d\u4ec5\u9650\u4e8e\u7d22\u5f15\uff0c\u4f46\u662f\u91cf\u7ea7\u7684\u4f18\u52bf\u8fd8\u662f\u4e00\u76f4\u5b58\u5728\u3002<br \/>\n\u5982\u679c\u6570\u636e\u91cf\u5728100TB\u4ee5\u4e0b\uff0c\u5b9e\u5728\u662f\u6ca1\u6709\u5fc5\u8981\u7528Hadoop\u3002<\/p>\n<p>\u53ef\u662f\u6709100TB\u6570\u636e\u7684\u7ec4\u7ec7\uff0c\u771f\u7684\u4e0d\u591a\u3002\u5927\u90e8\u5206\u7684\u8bd5\u7528\u8005\uff0c\u6ca1\u6709\u529e\u6cd5\u4ece\u5e94\u7528Hadoop\u7684\u8fc7\u7a0b\u91cc\u83b7\u5f97\u8fb9\u9645\u6536\u76ca\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7761\u89c9\u524d\u5076\u7136\u770b\u770bGoogle Analytics\u7684\u7edf\u8ba1\uff0c\u6709\u51e0\u4e2a\u4eba\u662f\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u641c\u7d22\u201cHadoop\u5b58\u5728\u7684\u95ee\u9898\u201d\u6765\u8bbf\u95ee\u4e86\u8fd9\u91cc\u3002 \u6211\u4e5f\u8bd5\u7740\u641c\u4e86\u4e00\u4e0b\uff0c\u6211\u7684\u4e0a\u4e00\u7bc7\u5199Hadoop\u7684\u5185\u5bb9\u5728Google\u51fa\u73b0\u7b2c10\u9875\uff0cbaidu\u7b2c4\u9875\u3002 \u65e2\u7136\u8fd9\u4e2a\u95ee\u9898\u90fd\u8ba9\u4eba\u7ffb\u4e86\u8fd9\u4e48\u591a\u9875\u6765\u5bfb\u627e\u7b54\u6848\uff0c\u6211\u5c31\u5f00\u59cb\u53cd\u95ee\u81ea\u5df1\u4e86\u3002 Hadoop\u5b58\u5728\u4ec0\u4e48\u95ee\u9898\uff1f \u601d\u8003\u4e86\u6700\u8fd1\u4e24\u5e74\u7684\u8fc7\u7a0b\uff0c\u6211\u8ba4\u4e3aHadoop\u5b58\u5728\u7684\u95ee\u9898\u90fd\u4e0d\u662f\u6280\u672f\u95ee\u9898\uff1a 1. API\u4e0d\u7a33\u5b9a Hadoop\u4ece0.17\u5f00\u59cb\uff0c\u5230\u76ee\u524d\u6211\u7528\u52300.21\uff0c\u6bcf\u6b21\u5347\u7ea7\u90fd\u8ba9\u6211\u82e6\u4e0d\u582a\u8a00\u3002 HDFS\u548cMapReduce\u7684\u5411\u524d\u517c\u5bb9\u505a\u7684\u4e0d\u9519\uff0c\u4f46\u662f\u8fc7\u591a\u7684\u5916\u56f4\u7a0b\u5e8f\u8ddf\u8fdb\u4e86\u8fd9\u4e2a\u6f29\u6da1\uff0c\u4f8b\u5982Hive,HBase\u3002 \u7531\u4e8e\u8fd9\u4e9b\u5916\u56f4\u7a0b\u5e8f\u7684\u4e0d\u8ddf\u8fdb\uff0c\u6bcf\u6b21\u5347\u7ea7\u90fd\u4f1a\u635f\u5931\u4e00\u4e9b\u8ffd\u968f\u8005\u3002 \u5f53\u71360.xx\u7248\u672c\uff0c\u672c\u6765\u5c31\u6ca1\u6709\u627f\u8bfaAPI\u662f\u7a33\u5b9a\u7684\u3002\u53ea\u662f\u81f3\u4eca\u4e5f\u90fd\u6ca1\u67091.0\u7684\u89c4\u5212\uff0c\u5f88\u53ef\u80fd\u5c06\u6765\u8981\u51fa\u52300.99\u3002 \u6ca1\u6709\u76fc\u5934\u7684\u4e00\u76f4\u8ddf\u968f\u66f4\u65b0\uff0c\u5b9e\u5728\u662f\u5f88\u8f9b\u82e6\u3002 2. \u5ba3\u4f20\u548c\u666e\u53ca\u7684\u4e0d\u591f \u5728\u521a\u63a5\u89e6\u4e86Hadoop\u51e0\u4e2a\u6708\u7684\u65f6\u5019\uff0c\u6709\u5e78\u4e0ezshao@apache\u5ea7\u8c08\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u3002 \u6211\u60f3\u8fd9\u53ef\u80fd\u662f\u6211\u80fd\u4e00\u76f4\u575a\u6301\u7740\u8ddf\u8fdbHadoop\u5f00\u53d1\u7684\u4e00\u4e2a\u52a8\u529b\u3002 \u5ba3\u4f20\u7684\u5c11\u4f1a\u8ba9\u8c28\u614e\u7684\u4eba\u4e0d\u6562\u7528\uff0c\u666e\u53ca\u7684\u591a\u4f1a\u8ba9\u6fc0\u8fdb\u7684\u4eba\u6ee5\u7528\u3002 \u6211\u81ea\u8ba4\u4e3a\u5728\u6280\u672f\u9009\u578b\u4e0a\u662f\u4e2a\u4fdd\u5b88\u6d3e\uff0c\u6240\u4ee5\u5173\u4e8e\u5e94\u7528HBase\u7684\u5404\u79cd\u8ba8\u8bba\uff0c\u6211\u90fd\u6295\u7684\u53cd\u5bf9\u7968\u3002 \u6211\u8ba4\u4e3aHadoop\u53ca\u5176\u884d\u751f\u54c1\uff0c\u6839\u6e90\u4e0a\u662f\u6279\u5904\u7406\u7cfb\u7edf\uff0c\u9ad8\u5bb9\u9519\uff0c\u9ad8\u5ef6\u65f6\u3002 \u8fd9\u79cd\u7cfb\u7edf\u6211\u4f1a\u7528\u6765\u505a\u5f02\u6b65\u7684\u8ba1\u7b97\uff0c\u4f46\u662f\u4e00\u5b9a\u4e0d\u80fd\u67d3\u6307\u7528\u6237\u64cd\u4f5c\u884c\u4e3a\u3002 \u5e94\u8be5\u52a0\u5f3a\u5ba3\u4f20\uff0c\u8ba9\u5927\u5bb6\u77e5\u9053Hadoop\u4e0d\u662f\u4e07\u80fd\u7684\uff0c\u5b83\u6700\u64c5\u957f\u7684\u662f\u5e76\u884c\u5904\u7406\u3002 3. \u5c0f\u4f17 \u6574\u4e2aMapReduce\u8fd9\u4e2a\u6982\u5ff5\u662f\u57fa\u4e8eGoogle\u7684\u4e00\u7bc7\u8bba\u6587\uff0c\u672c\u662f\u89e3\u51b3PB\u7ea7\u522b\u641c\u7d22\u7d22\u5f15\u95ee\u9898\u5f00\u53d1\u7684\u67b6\u6784\u3002 \u968f\u7740\u53d1\u5c55\uff0c\u867d\u7136\u529f\u80fd\u5df2\u7ecf\u62bd\u8c61\u7684\u4e0d\u4ec5\u9650\u4e8e\u7d22\u5f15\uff0c\u4f46\u662f\u91cf\u7ea7\u7684\u4f18\u52bf\u8fd8\u662f\u4e00\u76f4\u5b58\u5728\u3002 \u5982\u679c\u6570\u636e\u91cf\u5728100TB\u4ee5\u4e0b\uff0c\u5b9e\u5728\u662f\u6ca1\u6709\u5fc5\u8981\u7528Hadoop\u3002 \u53ef\u662f\u6709100TB\u6570\u636e\u7684\u7ec4\u7ec7\uff0c\u771f\u7684\u4e0d\u591a\u3002\u5927\u90e8\u5206\u7684\u8bd5\u7528\u8005\uff0c\u6ca1\u6709\u529e\u6cd5\u4ece\u5e94\u7528Hadoop\u7684\u8fc7\u7a0b\u91cc\u83b7\u5f97\u8fb9\u9645\u6536\u76ca\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[9,5],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-hadoop","category-tech"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":2,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}