In the last post we've installed Hadoop 2.2.0 on Ubuntu. Now we'll see how to launch an example mapreduce task on Hadoop. In the Hadoop directory (which you should find at /opt/hadoop/2.2.0) you can find a JAR containing some examples: the exact pa…
系统版本 anliven@Ubuntu1604:~$ uname -a Linux Ubuntu1604 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux anliven@Ubuntu1604:~$ anliven@Ubuntu1604:~$ cat /proc/version Linux version 4.8.0-36-generic (buil…
系统版本 anliven@Ubuntu1604:~$ uname -a Linux Ubuntu1604 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux anliven@Ubuntu1604:~$ anliven@Ubuntu1604:~$ cat /proc/version Linux version 4.8.0-36-generic (buil…
Combine small files to sequence file or avro files are a good method to feed hadoop. Small files in hadoop will take more namenode memory resource. SequenceFileInputFormat 是一种Key value 格式的文件格式. Key和Value的类型可以自己实现其序列化和反序列化内容. SequenceFile示例内容: 其默认的key…