{"id":560,"date":"2020-06-02T13:38:29","date_gmt":"2020-06-02T05:38:29","guid":{"rendered":"http:\/\/www.guanhaobo.cn\/?p=560"},"modified":"2020-06-02T13:38:29","modified_gmt":"2020-06-02T05:38:29","slug":"%e5%a4%a7%e6%95%b0%e6%8d%ae%e6%8a%80%e6%9c%af%e5%ae%9e%e9%aa%8c%e4%b8%89-mapreduce%e6%95%b0%e6%8d%ae%e5%a4%84%e7%90%86%e5%ae%9e%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/www.guanhaobo.cn\/?p=560","title":{"rendered":"\u5927\u6570\u636e\u6280\u672f\u5b9e\u9a8c\u4e09 \u2014\u2014 Mapreduce\u6570\u636e\u5904\u7406\u5b9e\u9a8c"},"content":{"rendered":"<h3>1 \u5b9e\u9a8c\u76ee\u7684<\/h3>\n<p>\u4e86\u89e3MapReduce\u4e2d\u201cMap\u201d\u548c\u201cReduce\u201d\u57fa\u672c\u6982\u5ff5\u548c\u4e3b\u8981\u601d\u60f3\uff1b\u638c\u63e1\u57fa\u672c\u7684MapReduce API\u7f16\u7a0b\uff0c\u5e76\u5b9e\u73b0\u5408\u5e76\u3001\u53bb\u91cd\u3001\u6392\u5e8f\u7b49\u57fa\u672c\u529f\u80fd\uff1b<\/p>\n<h3>2 \u5b9e\u9a8c\u73af\u5883<\/h3>\n<p>\u5b9e\u9a8c\u5e73\u53f0\uff1a\u57fa\u4e8e\u5b9e\u9a8c\u4e00\u642d\u5efa\u7684\u865a\u62df\u673aHadoop\u5927\u6570\u636e\u5b9e\u9a8c\u5e73\u53f0\u4e0a\u7684MapReduce\u96c6\u7fa4\uff1b<br \/>\n\u7f16\u7a0b\u8bed\u8a00\uff1aJAVA<\/p>\n<h3>3 \u5b9e\u9a8c\u5185\u5bb9<\/h3>\n<ol>\n<li>\u7f16\u7a0b\u5b9e\u73b0\u6587\u4ef6\u5408\u5e76\u548c\u53bb\u91cd\u64cd\u4f5c\uff1b\u5bf9\u4e8e\u6bcf\u884c\u81f3\u5c11\u5177\u6709\u4e09\u4e2a\u5b57\u6bb5\u7684\u4e24\u4e2a\u8f93\u5165\u6587\u4ef6\uff0c\u5373\u6587\u4ef6A\u548c\u6587\u4ef6B\uff0c\u8bf7\u7f16\u5199MapReduce\u7a0b\u5e8f\uff0c\u5bf9\u4e24\u4e2a\u6587\u4ef6\u8fdb\u884c\u5408\u5e76\uff0c\u5e76\u5254\u9664\u5176\u4e2d\u91cd\u590d\u7684\u5185\u5bb9\uff0c\u5f97\u5230\u4e00\u4e2a\u65b0\u7684\u8f93\u51fa\u6587\u4ef6C\u3002<\/li>\n<li>\u7f16\u5199\u7a0b\u5e8f\u5b9e\u73b0\u5bf9\u8f93\u5165\u6587\u4ef6\u7684\u6392\u5e8f\uff1b\u73b0\u5728\u6709\u591a\u4e2a\u8f93\u5165\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u4e2d\u7684\u6bcf\u884c\u5185\u5bb9\u5747\u4e3a\u4e00\u4e2a\u6574\u6570\u3002\u8981\u6c42\u8bfb\u53d6\u6240\u6709\u6587\u4ef6\u4e2d\u7684\u6574\u6570\uff0c\u8fdb\u884c\u5347\u5e8f\u6392\u5e8f\u540e\uff0c\u8f93\u51fa\u5230\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u4e2d\uff0c\u8f93\u51fa\u7684\u6570\u636e\u683c\u5f0f\u4e3a\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\uff0c\u7b2c\u4e00\u4e2a\u6570\u5b57\u4e3a\u7b2c\u4e8c\u4e2a\u6574\u6570\u7684\u6392\u5e8f\u4f4d\u6b21\uff0c\u7b2c\u4e8c\u4e2a\u6574\u6570\u4e3a\u539f\u5f85\u6392\u5217\u7684\u6574\u6570\u3002<\/li>\n<li>\u5bf9\u4ee5\u4e0a\u4e24\u4e2a\u4efb\u52a1\u64b0\u5199\u5b9e\u9a8c\u62a5\u544a\uff0c\u5e76\u63d0\u4ea4\u76f8\u5173\u5b9e\u9a8c\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<h3>4 \u4efb\u52a1\u4e00<\/h3>\n<p>\u7f16\u7a0b\u5b9e\u73b0\u6587\u4ef6\u5408\u5e76\u548c\u53bb\u91cd\u64cd\u4f5c\uff1b\u5bf9\u4e8e\u6bcf\u884c\u81f3\u5c11\u5177\u6709\u4e09\u4e2a\u5b57\u6bb5\u7684\u4e24\u4e2a\u8f93\u5165\u6587\u4ef6\uff0c\u5373\u6587\u4ef6A\u548c\u6587\u4ef6B\uff0c\u8bf7\u7f16\u5199MapReduce\u7a0b\u5e8f\uff0c\u5bf9\u4e24\u4e2a\u6587\u4ef6\u8fdb\u884c\u5408\u5e76\uff0c\u5e76\u5254\u9664\u5176\u4e2d\u91cd\u590d\u7684\u5185\u5bb9\uff0c\u5f97\u5230\u4e00\u4e2a\u65b0\u7684\u8f93\u51fa\u6587\u4ef6C\u3002<\/p>\n<h4>4.1 \u7f16\u5199\u4ee3\u7801Merge.java<\/h4>\n<pre><code class=\"language-java line-numbers\">import org.apache.hadoop.conf.Configuration;\nimport org.apache.hadoop.fs.FileSystem;\nimport org.apache.hadoop.fs.Path;\nimport org.apache.hadoop.io.Text;\nimport org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;\nimport org.apache.hadoop.mapreduce.Job;\nimport org.apache.hadoop.mapreduce.Mapper;\nimport org.apache.hadoop.mapreduce.Reducer;\nimport org.apache.hadoop.mapreduce.lib.input.FileInputFormat;\nimport java.io.IOException;\n\npublic class Merge {\n    \/\/ Map\u7c7b\uff0c\u7ee7\u627f\u81eaMapper\u7c7b--\u4e00\u4e2a\u62bd\u8c61\u7c7b\n    public static class Map extends Mapper&lt;Object, Text, Text, Text&gt; {\n        private static Text text = new Text();\n\n        \/\/ \u91cd\u5199map\u65b9\u6cd5\n        public void map(Object key, Text value, Context content) throws IOException, InterruptedException {\n            text = value;\n            \/\/ \u5e95\u5c42\u901a\u8fc7Context content\u4f20\u9012\u4fe1\u606f\uff08\u5373key value\uff09\n            content.write(text, new Text(\"\"));\n        }\n    }\n\n    \/\/ Reduce\u7c7b\uff0c\u7ee7\u627f\u81eaReducer\u7c7b--\u4e00\u4e2a\u62bd\u8c61\u7c7b\n    public static class Reduce extends Reducer&lt;Text, Text, Text, Text&gt; {\n        public void reduce(Text key, Iterable&lt;Text&gt; values, Context context) throws IOException, InterruptedException {\n            \/\/ \u5bf9\u4e8e\u6240\u6709\u7684\u76f8\u540c\u7684key\uff0c\u53ea\u5199\u5165\u4e00\u4e2a\uff0c\u76f8\u5f53\u4e8e\u5bf9\u4e8e\u6240\u6709Iterable&lt;Text&gt; values\uff0c\u53ea\u6267\u884c\u4e00\u6b21write\u64cd\u4f5c\n            context.write(key, new Text(\"\"));\n        }\n    }\n\n    \/\/ main\u65b9\u6cd5\n    public static void main(String[] args) throws Exception {\n        final String INPUT_PATH = \"ghb_lab3_input\";\/\/ \u8f93\u5165\u76ee\u5f55\n        final String OUTPUT_PATH = \"ghb_lab3_output\";\/\/ \u8f93\u51fa\u76ee\u5f55\n        Configuration conf = new Configuration();\n        \/\/ conf.set(\"fs.defaultFS\", \"hdfs:\/\/localhost:9000\");\n        Path path = new Path(OUTPUT_PATH);\n\n        \/\/ \u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\n        FileSystem fileSystem = path.getFileSystem(conf);\n        \/\/ \u8f93\u51fa\u76ee\u5f55\u82e5\u5b58\u5728\u5219\u5220\u9664\n        if (fileSystem.exists(new Path(OUTPUT_PATH))) {\n            fileSystem.delete(new Path(OUTPUT_PATH), true);\n        }\n        Job job = Job.getInstance(conf, \"Merge\");\n        job.setJarByClass(Merge.class);\n        job.setMapperClass(Map.class); \/\/ \u521d\u59cb\u5316\u4e3a\u81ea\u5b9a\u4e49Map\u7c7b\n        job.setReducerClass(Reduce.class); \/\/ \u521d\u59cb\u5316\u4e3a\u81ea\u5b9a\u4e49Reduce\u7c7b\n        job.setOutputKeyClass(Text.class); \/\/ \u6307\u5b9a\u8f93\u51fa\u7684key\u7684\u7c7b\u578b\uff0cText\u76f8\u5f53\u4e8eString\u7c7b\n        job.setOutputValueClass(Text.class); \/\/ \u6307\u5b9a\u8f93\u51fa\u7684Value\u7684\u7c7b\u578b\uff0cText\u76f8\u5f53\u4e8eString\u7c7b\n        FileInputFormat.addInputPath(job, new Path(INPUT_PATH)); \/\/ FileInputFormat\u6307\u5c06\u8f93\u5165\u7684\u6587\u4ef6\uff08\u82e5\u5927\u4e8e64M\uff09\u8fdb\u884c\u5207\u7247\u5212\u5206\uff0c\u6bcf\u4e2asplit\u5207\u7247\u5bf9\u5e94\u4e00\u4e2aMapper\u4efb\u52a1\n        FileOutputFormat.setOutputPath(job, new Path(OUTPUT_PATH));\n        System.exit(job.waitForCompletion(true) ? 0 : 1);\n    }\n}\n<\/code><\/pre>\n<h4>4.2 \u4f20\u8f93\u4ee3\u7801\u548c\u5b9e\u9a8c\u6570\u636e<\/h4>\n<p>\u6253\u5f00WinSCP\uff0c\u5c06Merge.java\u53ca\u5b9e\u9a8c\u6570\u636e\u590d\u5236\u5230\u865a\u62df\u673acluster1\u7684\/home\/hadoop\u8def\u5f84\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1001.jpg\" alt=\"\" \/><\/p>\n<p>\u5728cluster1\u4e2d\u4f7f\u7528\u7528\u6237hadoop\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<pre><code class=\"language-cpp line-numbers\">cd ~\n\/\/ \u521b\u5efa\u8f93\u5165\u6587\u4ef6\u5939\nmkdir ghb_lab3_input\n\/\/ \u521b\u5efa\u8f93\u51fa\u6587\u4ef6\u5939\nmkdir ghb_lab3_output\n\/\/ \u5c06\u6570\u636e\u6587\u4ef6\u79fb\u52a8\u5230\u8f93\u5165\u6587\u4ef6\u5939\u5185\nmv \u9644\u5f55\u5b9e\u9a8c\u6570\u636e\u4e00.csv ghb_lab3_output\/\nmv \u9644\u5f55\u5b9e\u9a8c\u6570\u636e\u4e8c.csv ghb_lab3_output\/\n\/\/ \u67e5\u770b\u6587\u4ef6\u662f\u5426\u79fb\u52a8\u6210\u529f\nls ghb_lab3_output\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1002.jpg\" alt=\"\" \/><\/p>\n<h4>4.3 \u7f16\u8bd1\u8fd0\u884c<\/h4>\n<pre><code class=\"language-cpp line-numbers\">\/\/ \u6784\u9020\u65b0\u7684\u547d\u4ee4ghb_javac\uff0c\u6ce8\u610f\u4e0b\u9762\u662f\u4e00\u884c\uff0c\u4e0d\u8981\u5199\u6210\u591a\u884c\nalias ghb_javac=\"javac -cp \/usr\/local\/hadoop-2.6.5\/share\/hadoop\/common\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/common\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/hdfs\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/hdfs\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/mapreduce\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/mapreduce\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/yarn\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/yarn\/*:\"\n\n\/\/ \u6784\u9020\u65b0\u7684\u547d\u4ee4ghb_java\uff0c\u6ce8\u610f\u4e0b\u9762\u662f\u4e00\u884c\uff0c\u4e0d\u8981\u5199\u6210\u591a\u884c\nalias ghb_java=\"java -cp \/usr\/local\/hadoop-2.6.5\/share\/hadoop\/common\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/common\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/hdfs\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/hdfs\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/mapreduce\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/mapreduce\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/yarn\/lib\/*:\/usr\/local\/hadoop-2.6.5\/share\/hadoop\/yarn\/*:\"\n<\/code><\/pre>\n<pre><code class=\"language-cpp line-numbers\">\/\/ \u7f16\u8bd1\nghb_javac Merge.java\n\/\/ \u8fd0\u884c\nghb_java Merge\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1003.jpg\" alt=\"\" \/><\/p>\n<h4>4.4 \u67e5\u770b\u8f93\u51fa\u7ed3\u679c<\/h4>\n<pre><code class=\"language-cpp line-numbers\">ls ghb_lab3_output\/\ncat ghb_lab3_output\/part-r-00000\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1004.jpg\" alt=\"\" \/><\/p>\n<h3>5 \u4efb\u52a1\u4e8c<\/h3>\n<p>\u7f16\u5199\u7a0b\u5e8f\u5b9e\u73b0\u5bf9\u8f93\u5165\u6587\u4ef6\u7684\u6392\u5e8f\uff1b\u73b0\u5728\u6709\u591a\u4e2a\u8f93\u5165\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u4e2d\u7684\u6bcf\u884c\u5185\u5bb9\u5747\u4e3a\u4e00\u4e2a\u6574\u6570\u3002\u8981\u6c42\u8bfb\u53d6\u6240\u6709\u6587\u4ef6\u4e2d\u7684\u6574\u6570\uff0c\u8fdb\u884c\u5347\u5e8f\u6392\u5e8f\u540e\uff0c\u8f93\u51fa\u5230\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u4e2d\uff0c\u8f93\u51fa\u7684\u6570\u636e\u683c\u5f0f\u4e3a\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\uff0c\u7b2c\u4e00\u4e2a\u6570\u5b57\u4e3a\u7b2c\u4e8c\u4e2a\u6574\u6570\u7684\u6392\u5e8f\u4f4d\u6b21\uff0c\u7b2c\u4e8c\u4e2a\u6574\u6570\u4e3a\u539f\u5f85\u6392\u5217\u7684\u6574\u6570\u3002<\/p>\n<h4>5.1 \u7f16\u5199\u4ee3\u7801Sort.java<\/h4>\n<pre><code class=\"language-java line-numbers\">import org.apache.hadoop.io.Text;\nimport org.apache.hadoop.io.LongWritable;\nimport org.apache.hadoop.mapreduce.Mapper;\nimport java.io.IOException;\nimport org.apache.hadoop.io.IntWritable;\nimport org.apache.hadoop.conf.Configuration;\nimport org.apache.hadoop.fs.Path;\nimport org.apache.hadoop.mapreduce.Job;\nimport org.apache.hadoop.mapreduce.Partitioner;\nimport org.apache.hadoop.mapreduce.lib.input.FileInputFormat;\nimport org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;\nimport org.apache.hadoop.util.GenericOptionsParser;\nimport org.apache.hadoop.mapreduce.Mapper;\nimport org.apache.hadoop.mapreduce.Reducer;\nimport org.apache.hadoop.fs.FileSystem;\n\npublic class Sort {\n    public static class Partition extends Partitioner&lt;IntWritable, IntWritable&gt; {\n\n        @Override\n        public int getPartition(IntWritable key, IntWritable value, int numPartitions) {\n            int MaxNumber = 65223;\n            int bound = MaxNumber \/ numPartitions + 1;\n            int keynumber = key.get();\n            for (int i = 0; i &lt; numPartitions; i++) {\n                if (keynumber &lt; bound * i &amp;&amp; keynumber &gt;= bound * (i - 1))\n                    return i - 1;\n            }\n            return 0;\n        }\n    }\n\n    public static class SortMapper extends Mapper&lt;Object, Text, IntWritable, IntWritable&gt; {\n\n        private static IntWritable data = new IntWritable();\n\n        public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n            String line = value.toString();\n            data.set(Integer.parseInt(line));\n            context.write(data, new IntWritable(1));\n        }\n    }\n\n    public static class SortReducer extends Reducer&lt;IntWritable, IntWritable, IntWritable, IntWritable&gt; {\n        private static IntWritable linenum = new IntWritable(1);\n\n        public void reduce(IntWritable key, Iterable&lt;IntWritable&gt; values, Context context)\n                throws IOException, InterruptedException {\n            for (IntWritable val : values) {\n                context.write(linenum, key);\n                linenum = new IntWritable(linenum.get() + 1);\n            }\n\n        }\n    }\n\n    public static void main(String[] args) throws Exception {\n        \/\/ TODO Auto-generated method stub\n        final String INPUT_PATH = \"ghb_lab3_input2\";\/\/ \u8f93\u5165\u76ee\u5f55\n        final String OUTPUT_PATH = \"ghb_lab3_output2\";\/\/ \u8f93\u51fa\u76ee\u5f55\n        Configuration conf = new Configuration();\n        \/\/ conf.set(\"fs.defaultFS\", \"hdfs:\/\/localhost:9000\");\n\n        Path path = new Path(OUTPUT_PATH);\n\n        \/\/ \u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\n        FileSystem fileSystem = path.getFileSystem(conf);\n\n        \/\/ \u8f93\u51fa\u76ee\u5f55\u82e5\u5b58\u5728\u5219\u5220\u9664\n        if (fileSystem.exists(new Path(OUTPUT_PATH))) {\n            fileSystem.delete(new Path(OUTPUT_PATH), true);\n        }\n\n        Job job = new Job(conf, \"Sort\");\n        job.setJarByClass(Sort.class);\n        job.setMapperClass(SortMapper.class);\n        job.setPartitionerClass(Partition.class);\n        job.setReducerClass(SortReducer.class);\n        job.setOutputKeyClass(IntWritable.class);\n        job.setOutputValueClass(IntWritable.class);\n        FileInputFormat.addInputPath(job, new Path(INPUT_PATH)); \/\/ FileInputFormat\u6307\u5c06\u8f93\u5165\u7684\u6587\u4ef6\uff08\u82e5\u5927\u4e8e64M\uff09\u8fdb\u884c\u5207\u7247\u5212\u5206\uff0c\u6bcf\u4e2asplit\u5207\u7247\u5bf9\u5e94\u4e00\u4e2aMapper\u4efb\u52a1\n        FileOutputFormat.setOutputPath(job, new Path(OUTPUT_PATH));\n        System.exit(job.waitForCompletion(true) ? 0 : 1);\n    }\n}\n<\/code><\/pre>\n<h4>5.2 \u4f20\u8f93\u4ee3\u7801\u548c\u5b9e\u9a8c\u6570\u636e<\/h4>\n<p>\u6253\u5f00WinSCP\uff0c\u5c06Sort.java\u53ca\u5b9e\u9a8c\u6570\u636e\u590d\u5236\u5230\u865a\u62df\u673acluster1\u7684\/home\/hadoop\u8def\u5f84\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1005.jpg\" alt=\"\" \/><br \/>\n\u5728cluster1\u4e2d\u4f7f\u7528\u7528\u6237hadoop\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<pre><code class=\"language-cpp line-numbers\">cd ~\n\/\/ \u521b\u5efa\u8f93\u5165\u6587\u4ef6\u5939\nmkdir ghb_lab3_input2\n\/\/ \u521b\u5efa\u8f93\u51fa\u6587\u4ef6\u5939\nmkdir ghb_lab3_output2\n\/\/ \u5c06\u6570\u636e\u6587\u4ef6\u79fb\u52a8\u5230\u8f93\u5165\u6587\u4ef6\u5939\u5185\nmv \u9644\u5f55\u5b9e\u9a8c\u6570\u636e\u4e09.txt ghb_lab3_input2\/\nmv \u9644\u5f55\u5b9e\u9a8c\u6570\u636e\u56db.txt ghb_lab3_input2\/\n\/\/ \u67e5\u770b\u6587\u4ef6\u662f\u5426\u79fb\u52a8\u6210\u529f\nls ghb_lab3_input2\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1006.jpg\" alt=\"\" \/><\/p>\n<h4>5.3 \u7f16\u8bd1\u8fd0\u884c<\/h4>\n<pre><code class=\"language-cpp line-numbers\">\/\/ \u7f16\u8bd1\nghb_javac Sort.java\n\/\/ \u8fd0\u884c\nghb_java Sort\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1007.jpg\" alt=\"\" \/><\/p>\n<h4>5.4 \u67e5\u770b\u8f93\u51fa\u7ed3\u679c<\/h4>\n<pre><code class=\"language-cpp line-numbers\">ls ghb_lab3_output2\/\ncat ghb_lab3_output2\/part-r-00000\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.guanhaobo.cn\/wp-content\/uploads\/2020\/06\/1008.jpg\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5b9e\u9a8c\u76ee\u7684 \u4e86\u89e3MapReduce\u4e2d\u201cMap\u201d\u548c\u201cReduce\u201d\u57fa\u672c\u6982\u5ff5\u548c\u4e3b\u8981\u601d\u60f3\uff1b\u638c\u63e1\u57fa\u672c\u7684MapRedu [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[44],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-homework","tag-44"],"_links":{"self":[{"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=560"}],"version-history":[{"count":0,"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guanhaobo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}