{"id":1928,"date":"2012-06-16T11:20:04","date_gmt":"2012-06-16T02:20:04","guid":{"rendered":"http:\/\/www.creationline.com\/?p=1928"},"modified":"2026-05-27T16:46:30","modified_gmt":"2026-05-27T07:46:30","slug":"hadoop%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86-2","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928","title":{"rendered":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2]"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">CDH\u3068\u306f<\/h2>\n\n\n\n<p>Hadoop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u591a\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001\u624b\u9806\u304c\u5927\u5909\u8907\u96d1\u3067\u3059\u3002\u305d\u3053\u3067\u3001<a href=\"http:\/\/www.cloudera.com\/\">\u7c73Cloudera\u793e<\/a>\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b<a href=\"http:\/\/www.cloudera.com\/hadoop\/\">CDH<\/a>(Cloudera's Distribution Including Apache Hadoop)\u3092\u5229\u7528\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>CDH\u306f\u3055\u307e\u3056\u307e\u306a\u5f62\u5f0f\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3054\u3068\u306e\u500b\u5225\u914d\u5e03\u3001\u5404\u7a2e\u30af\u30e9\u30a6\u30c9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306b\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308b<a href=\"http:\/\/whirr.apache.org\/\">Apache Whirr<\/a>\u3092\u7528\u3044\u305f\u5f62\u5f0f\u3001\u3055\u3089\u306b\u30c7\u30e2\u7528\u3068\u3057\u3066VMware\u3001KVM\u3001VirtualBox\u7528\u306e\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u3082\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fKVM\u7528\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u7528\u3044\u3066CDH\u306e\u30c7\u30e2\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">KVM\u306b\u3088\u308bCDHv3\u306e\u30c7\u30e2<\/h2>\n\n\n\n<p>\u307e\u305a\u3001KVM\u7528\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u304a\u3088\u305d1GB\u306e\u30b5\u30a4\u30ba\u304c\u3042\u308a\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306b\u306f\u6570\u6642\u9593\u304b\u304b\u308a\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001md5sum \u306e\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% ls -l cloudera-demo-vm-cdh3u4-kvm.tar.gz \n-rw-r--r-- 1 cf cf 914523647  5\u6708 17 09:23 cloudera-demo-vm-cdh3u4-kvm.tar.gz\n% cat cloudera-demo-vm-cdh3u4-kvm.md5 \nb182919964474b19e12838046d9b6d11  cloudera-demo-vm-cdh3u4-kvm.tar.gz\n% md5sum -c cloudera-demo-vm-cdh3u4-kvm.md5 \ncloudera-demo-vm-cdh3u4-kvm.tar.gz: \u5b8c\u4e86\n%<\/pre>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% tar xfz cloudera-demo-vm-cdh3u4-kvm.tar.gz\n% ls -la cloudera-demo-vm-cdh3u4-kvm\n\u5408\u8a08 5352572\ndrwxr-sr-x 2 cf cf       4096  5\u6708 23 21:42 .\ndrwxr-sr-x 3 cf cf       4096  5\u6708 23 21:42 ..\n-rwxr-xr-x 1 cf cf 5475663872  5\u6708 17 03:23 cloudera-demo-vm-sda.raw\n%<\/pre>\n\n\n\n<p>CentOS 5.8 (x86_64) \u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001CDHv3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u4e00\u5f0f\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001Hadoop\u306e\u30de\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u3068\u30b9\u30ec\u30fc\u30d6\u30b5\u30fc\u30d0\u304c1\u53f0\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u5f62\u5f0f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u306b2GB\u306e\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u3066\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3057\u305f\u3089\u3001\u30e6\u30fc\u30b6\u540d cloudera \u30d1\u30b9\u30ef\u30fc\u30c9 cloudera \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/ccp.cloudera.com\/display\/SUPPORT\/Hadoop+Tutorial\">Hadoop Tutorial<\/a>\u306eWordCount.java\u3092\u4f8b\u3068\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u5165\u529b\u3055\u308c\u305f\u82f1\u6587\u30c6\u30ad\u30b9\u30c8\u4e2d\u306b\u51fa\u73fe\u3059\u308b\u82f1\u5358\u8a9e\u306e\u6570\u3092\u96c6\u8a08\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ cat > WordCount.java\npackage org.myorg;\n\nimport java.io.IOException;\nimport java.util.*;\n\nimport org.apache.hadoop.fs.Path;\nimport org.apache.hadoop.conf.*;\nimport org.apache.hadoop.io.*;\nimport org.apache.hadoop.mapred.*;\nimport org.apache.hadoop.util.*;\n\npublic class WordCount {\n\npublic static class Map extends MapReduceBase implements Mapper&lt;LongWritable, Text, Text, IntWritable> {\nprivate final static IntWritable one = new IntWritable(1);\nprivate Text word = new Text();\n\npublic void map(LongWritable key, Text value, OutputCollector&lt;Text, IntWritable> output, Reporter reporter) throws IOException {\nString line = value.toString();\nStringTokenizer tokenizer = new StringTokenizer(line);\nwhile (tokenizer.hasMoreTokens()) {\nword.set(tokenizer.nextToken());\noutput.collect(word, one);\n}\n}\n}\n\npublic static class Reduce extends MapReduceBase implements Reducer&lt;Text, IntWritable, Text, IntWritable> {\npublic void reduce(Text key, Iterator&lt;IntWritable> values, OutputCollector&lt;Text, IntWritable> output, Reporter reporter) throws IOException {\nint sum = 0;\nwhile (values.hasNext()) {\nsum += values.next().get();\n}\noutput.collect(key, new IntWritable(sum));\n}\n}\n\npublic static void main(String[] args) throws Exception {\nJobConf conf = new JobConf(WordCount.class);\nconf.setJobName(\"wordcount\");\n\nconf.setOutputKeyClass(Text.class);\nconf.setOutputValueClass(IntWritable.class);\n\nconf.setMapperClass(Map.class);\nconf.setCombinerClass(Reduce.class);\nconf.setReducerClass(Reduce.class);\n\nconf.setInputFormat(TextInputFormat.class);\nconf.setOutputFormat(TextOutputFormat.class);\n\nFileInputFormat.setInputPaths(conf, new Path(args[0]));\nFileOutputFormat.setOutputPath(conf, new Path(args[1]));\n\nJobClient.runJob(conf);\n}\n}\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>Hadoop\u306e\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ export HADOOP_HOME=\/usr\/lib\/hadoop-0.20\n[cloudera@localhost ~]$ export HADOOP_VERSION=0.20.2-cdh3u4\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>WordCount.java\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ mkdir wordcount_classes\n[cloudera@localhost ~]$ javac -classpath ${HADOOP_HOME}\/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes WordCount.java\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u751f\u6210\u3055\u308c\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ jar -cvf \/home\/cloudera\/wordcount.jar -C wordcount_classes\/ .\n\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\norg\/ \u3092\u8ffd\u52a0\u4e2d\u3067\u3059\u3002(\u5165 = 0) (\u51fa = 0)(0% \u683c\u7d0d\u3055\u308c\u307e\u3057\u305f)\norg\/myorg\/ \u3092\u8ffd\u52a0\u4e2d\u3067\u3059\u3002(\u5165 = 0) (\u51fa = 0)(0% \u683c\u7d0d\u3055\u308c\u307e\u3057\u305f)\norg\/myorg\/WordCount$Reduce.class \u3092\u8ffd\u52a0\u4e2d\u3067\u3059\u3002(\u5165 = 1611) (\u51fa = 649)(59% \u53ce\u7e2e\u3055\u308c\u307e\u3057\u305f)\norg\/myorg\/WordCount.class \u3092\u8ffd\u52a0\u4e2d\u3067\u3059\u3002(\u5165 = 1546) (\u51fa = 749)(51% \u53ce\u7e2e\u3055\u308c\u307e\u3057\u305f)\norg\/myorg\/WordCount$Map.class \u3092\u8ffd\u52a0\u4e2d\u3067\u3059\u3002(\u5165 = 1938) (\u51fa = 798)(58% \u53ce\u7e2e\u3055\u308c\u307e\u3057\u305f)\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>hadoop\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u3001HDFS\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -ls \/\nFound 3 items\ndrwxrwxrwx - hue supergroup 0 2012-05-23 12:52 \/tmp\ndrwxr-xr-x - hue supergroup 0 2012-05-23 12:52 \/user\ndrwxr-xr-x - mapred supergroup 0 2012-05-23 12:52 \/var\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u306a\u304a\u3001\u3053\u3053\u3067\u306fhadoop\u30b3\u30de\u30f3\u30c9\u306bdfs\u3068\u3044\u3046\u5024\u3092\u4e0e\u3048\u3066\u3044\u307e\u3059\u304c\u3001fs\u3067\u89e3\u8aac\u3055\u308c\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002hadoop\u30b3\u30de\u30f3\u30c9\u5185\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u3069\u3061\u3089\u3082\u540c\u3058\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3057\u3066\u304a\u308a\u3001\u9055\u3044\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ less \/usr\/lib\/hadoop-0.20\/bin\/hadoop\n:\nelif [ \"$COMMAND\" = \"fs\" ] ; then\nCLASS=org.apache.hadoop.fs.FsShell\nHADOOP_OPTS=\"$HADOOP_OPTS $HADOOP_CLIENT_OPTS\"\nelif [ \"$COMMAND\" = \"dfs\" ] ; then\nCLASS=org.apache.hadoop.fs.FsShell\nHADOOP_OPTS=\"$HADOOP_OPTS $HADOOP_CLIENT_OPTS\"\n:<\/pre>\n\n\n\n<p>\u5f15\u304d\u7d9a\u304d\u3001HDFS\u4e0a\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -mkdir \/usr\/joe\/wordcount\/input\n[cloudera@localhost ~]$\n\n[cloudera@localhost ~]$ hadoop dfs -ls \/usr\/joe\/wordcount\nFound 1 items\ndrwxr-xr-x - cloudera supergroup 0 2012-05-23 13:34 \/usr\/joe\/wordcount\/input\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb\u306b\u3001Hadoop\u306b\u5165\u529b\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ cat > file01\nHello World Bye World\n[cloudera@localhost ~]$ cat > file02\nHello Hadoop Goodbye Hadoop\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb\u306b\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092HDFS\u4e0a\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -put file01 file02 \/usr\/joe\/wordcount\/input\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u6b63\u5e38\u306b\u8ee2\u9001\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -ls \/usr\/joe\/wordcount\/input\nFound 2 items\n-rw-r--r-- 1 cloudera supergroup 22 2012-05-23 13:34 \/usr\/joe\/wordcount\/input\/file01\n-rw-r--r-- 1 cloudera supergroup 28 2012-05-23 13:34 \/usr\/joe\/wordcount\/input\/file02\n[cloudera@localhost ~]$\n\n[cloudera@localhost ~]$ hadoop dfs -cat \/usr\/joe\/wordcount\/input\/file01\nHello World Bye World\n[cloudera@localhost ~]$ hadoop dfs -cat \/usr\/joe\/wordcount\/input\/file02\nHello Hadoop Goodbye Hadoop\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>wordcount\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop jar \/home\/cloudera\/wordcount.jar org.myorg.WordCount \/usr\/joe\/wordcount\/input \/usr\/joe\/wordcount\/output\n12\/05\/23 13:39:57 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.\n12\/05\/23 13:39:58 WARN snappy.LoadSnappy: Snappy native library is available\n12\/05\/23 13:39:58 INFO util.NativeCodeLoader: Loaded the native-hadoop library\n12\/05\/23 13:39:58 INFO snappy.LoadSnappy: Snappy native library loaded\n12\/05\/23 13:39:58 INFO mapred.FileInputFormat: Total input paths to process : 2\n12\/05\/23 13:39:58 INFO mapred.JobClient: Running job: job_201205231252_0003\n12\/05\/23 13:39:59 INFO mapred.JobClient: map 0% reduce 0%\n12\/05\/23 13:40:06 INFO mapred.JobClient: map 66% reduce 0%\n12\/05\/23 13:40:09 INFO mapred.JobClient: map 100% reduce 0%\n12\/05\/23 13:40:16 INFO mapred.JobClient: map 100% reduce 100%\n12\/05\/23 13:40:17 INFO mapred.JobClient: Job complete: job_201205231252_0003\n12\/05\/23 13:40:17 INFO mapred.JobClient: Counters: 27\n12\/05\/23 13:40:17 INFO mapred.JobClient: Job Counters\n12\/05\/23 13:40:17 INFO mapred.JobClient: Launched reduce tasks=1\n12\/05\/23 13:40:17 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=13845\n12\/05\/23 13:40:17 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0\n12\/05\/23 13:40:17 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0\n12\/05\/23 13:40:17 INFO mapred.JobClient: Launched map tasks=3\n12\/05\/23 13:40:17 INFO mapred.JobClient: Data-local map tasks=3\n12\/05\/23 13:40:17 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=10048\n12\/05\/23 13:40:17 INFO mapred.JobClient: FileSystemCounters\n12\/05\/23 13:40:17 INFO mapred.JobClient: FILE_BYTES_READ=79\n12\/05\/23 13:40:17 INFO mapred.JobClient: HDFS_BYTES_READ=348\n12\/05\/23 13:40:17 INFO mapred.JobClient: FILE_BYTES_WRITTEN=227780\n12\/05\/23 13:40:17 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=41\n12\/05\/23 13:40:17 INFO mapred.JobClient: Map-Reduce Framework\n12\/05\/23 13:40:17 INFO mapred.JobClient: Map input records=2\n12\/05\/23 13:40:17 INFO mapred.JobClient: Reduce shuffle bytes=91\n12\/05\/23 13:40:17 INFO mapred.JobClient: Spilled Records=12\n12\/05\/23 13:40:17 INFO mapred.JobClient: Map output bytes=82\n12\/05\/23 13:40:17 INFO mapred.JobClient: CPU time spent (ms)=1450\n12\/05\/23 13:40:17 INFO mapred.JobClient: Total committed heap usage (bytes)=426913792\n12\/05\/23 13:40:17 INFO mapred.JobClient: Map input bytes=50\n12\/05\/23 13:40:17 INFO mapred.JobClient: Combine input records=8\n12\/05\/23 13:40:17 INFO mapred.JobClient: SPLIT_RAW_BYTES=294\n12\/05\/23 13:40:17 INFO mapred.JobClient: Reduce input records=6\n12\/05\/23 13:40:17 INFO mapred.JobClient: Reduce input groups=5\n12\/05\/23 13:40:17 INFO mapred.JobClient: Combine output records=6\n12\/05\/23 13:40:17 INFO mapred.JobClient: Physical memory (bytes) snapshot=561541120\n12\/05\/23 13:40:17 INFO mapred.JobClient: Reduce output records=5\n12\/05\/23 13:40:17 INFO mapred.JobClient: Virtual memory (bytes) snapshot=2018074624\n12\/05\/23 13:40:17 INFO mapred.JobClient: Map output records=8\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -ls \/usr\/joe\/wordcount\/output\nFound 3 items\n-rw-r--r-- 1 cloudera supergroup 0 2012-05-23 13:40 \/usr\/joe\/wordcount\/output\/_SUCCESS\ndrwxr-xr-x - cloudera supergroup 0 2012-05-23 13:39 \/usr\/joe\/wordcount\/output\/_logs\n-rw-r--r-- 1 cloudera supergroup 41 2012-05-23 13:40 \/usr\/joe\/wordcount\/output\/part-00000\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p>\u6b63\u5e38\u306b\u82f1\u5358\u8a9e\u304c\u96c6\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[cloudera@localhost ~]$ hadoop dfs -cat \/usr\/joe\/wordcount\/output\/part-00000\nBye 1\nGoodbye 1\nHadoop 2\nHello 2\nWorld 2\n[cloudera@localhost ~]$<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CDH\u3068\u306f Hadoop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u591a\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001\u624b\u9806\u304c\u5927\u5909\u8907\u96d1\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u7c73Cloudera\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308bCDH(Cloudera&#8217;s Distribution Including A [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[31],"tags":[],"class_list":["post-1928","post","type-post","status-publish","format-standard","hentry","category-higuchi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"d-higuchi |CDH\u3068\u306f\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"d-higuchi |CDH\u3068\u306f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-16T02:20:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-27T07:46:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2]\",\"datePublished\":\"2012-06-16T02:20:04+00:00\",\"dateModified\":\"2026-05-27T07:46:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928\"},\"wordCount\":49,\"articleSection\":[\"d-higuchi\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928\",\"name\":\"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"datePublished\":\"2012-06-16T02:20:04+00:00\",\"dateModified\":\"2026-05-27T07:46:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"d-higuchi |CDH\u3068\u306f\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/1928#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"d-higuchi\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"\u306f\u3084\u308a\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"d-higuchi |CDH\u3068\u306f","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928","og_locale":"ja_JP","og_type":"article","og_title":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"d-higuchi |CDH\u3068\u306f","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2012-06-16T02:20:04+00:00","article_modified_time":"2026-05-27T07:46:30+00:00","og_image":[{"width":470,"height":394,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2]","datePublished":"2012-06-16T02:20:04+00:00","dateModified":"2026-05-27T07:46:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928"},"wordCount":49,"articleSection":["d-higuchi"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928","name":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2] - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"datePublished":"2012-06-16T02:20:04+00:00","dateModified":"2026-05-27T07:46:30+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"d-higuchi |CDH\u3068\u306f","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/1928#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"d-higuchi","item":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"},{"@type":"ListItem","position":4,"name":"Hadoop\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 [2]"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","caption":"Daisuke Higuchi"},"description":"\u306f\u3084\u308a\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=1928"}],"version-history":[{"count":2,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1928\/revisions"}],"predecessor-version":[{"id":83887,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1928\/revisions\/83887"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=1928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=1928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=1928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}