# Hadoop权威指南

**《Hadoop权威指南》**（Hadoop: The Definitive Guide）是汤姆·怀特（Tom White）撰写、奥莱理传媒（O'Reilly Media）出版的一部技术书籍，教读者如何用Hadoop分布式文件系统（HDFS）存储大型数据集、用MapReduce运行分布式计算，以及使用周边Apache数据工具生态。该书于2009年至2015年间出过四版，每一版都记录了Hadoop从雅虎（Yahoo!）搜索平台技术演变为企业大数据标准的一个主要阶段。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>

| 关键事实 | 详情 |
|---|---|
| 作者 | 汤姆·怀特，Hadoop提交者，此前曾作为独立Hadoop顾问执业；拥有数学学位（剑桥大学）和科学哲学硕士学位<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup><sup> • </sup><sup>[2](https://docview.dlib.vn/tvs/2022/20220510/utt/nguyenthithuylinh/_2_hadoopbook_2935.pdf?rand=777603)</sup> |
| 出版者 | 奥莱理传媒（第二版扉页带有雅虎出版社印记），封面图为非洲象<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup><sup> • </sup><sup>[3](https://www.oreilly.com/library/view/hadoop-the-definitive/9781449398644/index.html)</sup><sup> • </sup><sup>[4](https://accorsi.net/docs/hadoop.pdf)</sup> |
| 版本 | 第一版：2009年6月；第二版：2010年10月；第三版：2012年5月；第四版：2015年4月<sup>[5](https://piazza-resources.s3.amazonaws.com/ist3pwd6k8p5t/iu5gqbsh8re6mj/OReilly.Hadoop.The.Definitive.Guide.4th.Edition.2015.pdf)</sup> |
| 覆盖的Hadoop版本 | 第一版：0.20；第二版：0.20–0.21；第三版：1.x及0.22和0.23；第四版：仅Hadoop 2<sup>[6](https://cwiki.apache.org/confluence/spaces/HADOOP2/pages/120729867/Books)</sup><sup> • </sup><sup>[7](https://www.hadoopbook.com/editions.html)</sup> |
| 第一版篇幅 | 524页，定位为中高级<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup> |
| 第四版篇幅 | xxv，727页（奥莱理，2015年）<sup>[8](https://www.readinglength.com/book/BEuyXzm)</sup> |
| 覆盖的生态项目 | Pig、Hive、HBase、ZooKeeper、Sqoop，第四版另含Parquet、Flume、Crunch和Spark<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup><sup> • </sup><sup>[7](https://www.hadoopbook.com/editions.html)</sup> |

## 作者

汤姆·怀特是[Apache Hadoop](https://www.edgepedia.org/zh/apache-hadoop)项目的早期贡献者，写书之前曾作为独立Hadoop顾问，帮助公司搭建、使用和扩展Hadoop。<sup>[2](https://docview.dlib.vn/tvs/2022/20220510/utt/nguyenthithuylinh/_2_hadoopbook_2935.pdf?rand=777603)</sup> Hadoop在雅虎的创始人道格·卡廷（Doug Cutting）为第一版作推荐，写道读者“有机会向一位大师学习Hadoop——他不仅精通技术，也善于运用常识、用浅显明白的语言讲解。”<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup> 该书有自己的网站hadoopbook.com，提供数据集、代码和更新。<sup>[9](https://www.cs.otago.ac.nz/cosc440/readings/hadoop.pdf)</sup>

## 各版本

每一版都针对不同的Hadoop发行系列重写，这个问题Apache Hadoop维基有过一般性描述：Hadoop的发展变化很快，书中关于Hadoop“不能”做什么的陈述，通常意思是作者所用的那个版本不能。<sup>[6](https://cwiki.apache.org/confluence/spaces/HADOOP2/pages/120729867/Books)</sup>

**第一版，2009年6月。** 针对Hadoop 0.20写成，出版时为524页，介绍了核心组件（HDFS、MapReduce、Hadoop I/O）、集群搭建与管理、Pig、HBase和ZooKeeper，最后是来自Last.fm、Facebook、Nutch、Rackspace和ShareThis的案例研究，外加一章关于Apache Hadoop上的TB级排序。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>

**第二版，2010年10月。** 覆盖Hadoop 0.20–0.21，新增Hive和Sqoop两章、一节关于Avro序列化系统的内容、Hadoop当时新安全特性的介绍，以及一个用Hadoop分析大规模网络图的案例研究。<sup>[7](https://www.hadoopbook.com/editions.html)</sup>

**第三版，2012年5月。** 覆盖1.x发行系列（原0.20）以及更新的0.22和0.23系列，后者的重大变化是基于YARN资源管理系统的[MapReduce](https://www.edgepedia.org/zh/mapreduce) 2。大多数示例使用新的MapReduce API，旧API仍同时讨论。该版共xxiii，657页（ISBN 9781449311520），封面副标题为“互联网规模的存储与分析”。<sup>[7](https://www.hadoopbook.com/editions.html)</sup><sup> • </sup><sup>[10](https://obnb.uk/p15991774-hadoop-the-definitive-guide)</sup><sup> • </sup><sup>[11](https://search.worldcat.org/title/796017107)</sup>

**第四版，2015年4月。** 仅覆盖Hadoop 2，即当时活跃的发行系列。新增章节涵盖YARN（第4章）、Parquet（第13章）、Flume（第14章）、Crunch（第18章）和Spark（第19章），并增加了一个导航小节，概述了阅读全书五个部分的不同路径：核心Hadoop（第一至三部分）、生态项目（第四部分）和案例研究（第五部分）。新增两个案例研究：医疗系统中的Hadoop和用于基因组数据处理的Hadoop技术，而早期版本的案例研究则移至线上。<sup>[5](https://piazza-resources.s3.amazonaws.com/ist3pwd6k8p5t/iu5gqbsh8re6mj/OReilly.Hadoop.The.Definitive.Guide.4th.Edition.2015.pdf)</sup><sup> • </sup><sup>[7](https://www.hadoopbook.com/editions.html)</sup>

## 内容与方法

全书按从核心Hadoop向外扩展的顺序组织。第一版以“遇见Hadoop”开篇，将框架与关系数据库、网格计算和志愿计算进行比较，然后依次讲解MapReduce编程（包括面向Ruby和Python的Hadoop Streaming以及面向C++的Hadoop Pipes）、HDFS的设计（包括块、名称节点和数据节点），以及Hadoop的I/O构建块：数据完整性、压缩编解码器、用Writable类进行序列化，以及SequenceFile和MapFile等基于文件的数据结构。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup> 后续章节涵盖MapReduce作业实际如何运行、输入与输出格式、MapReduce特性（如计数器、排序和连接）、集群搭建与管理，然后是生态项目Pig、HBase和ZooKeeper。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>

目标读者横跨两类角色：分析大型数据集的程序员，以及设计、构建和运行Hadoop集群的管理员，无论集群在专用硬件上还是在云中。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup> 书评人、软件开发者朱利安·索布恰克（Julien Sobczak）称赞该书就其篇幅而言写得很好，尤其是温和的第一章，以及每当读者第一次需要某个术语时才引入它的做法，同时认为，考虑到生态变化迅速，Pig和Hive两章的篇幅过长。<sup>[12](https://juliensobczak.com/read/2015/12/19/hadoop-the-definitive-guide/)</sup>

## 案例研究

各版的一个显著特征是案例研究部分，各组织在其中描述自己如何在生产中使用Hadoop。第一版包括：

- **Last.fm**，用MapReduce作业生成排行榜和曲目统计，统计每首曲目的独立听众数并汇总播放总量。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>
- **Facebook**，用Hive（Hadoop的数据仓库系统）获取广告主洞察、进行即席分析和构建数据管道。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>
- **Nutch**，开源搜索引擎，用Hadoop进行链接反转、抓取列表生成、抓取和索引。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>
- **Rackspace**，分两个MapReduce阶段处理日志，用于近期搜索、分片和归档分析。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>
- **ShareThis**，在Hadoop之上使用Cascading抽象（字段、元组、管道、抽头、模式和流）。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>
- 一章关于**Apache Hadoop上的TB级排序**。<sup>[1](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)</sup>

第四版用医疗和基因组学案例研究取代了其中大部分内容，反映了到2015年Hadoop应用的迁移方向。<sup>[5](https://piazza-resources.s3.amazonaws.com/ist3pwd6k8p5t/iu5gqbsh8re6mj/OReilly.Hadoop.The.Definitive.Guide.4th.Edition.2015.pdf)</sup>

## 在Hadoop书籍中的地位与当前状态

Apache Hadoop项目的官方书籍维基将该书列在在印书籍之中，同列的还有面向集群运维人员的埃里克·萨默斯（Eric Sammers）的《Hadoop运维》（Hadoop Operations，2012年9月）和面向实际任务的亚历克斯·霍姆斯（Alex Holmes）的《Hadoop实战》（Hadoop in Practice，2012年秋）等专著。<sup>[6](https://cwiki.apache.org/confluence/spaces/HADOOP2/pages/120729867/Books)</sup> 一份2026年的Hadoop书籍排名榜将汤姆·怀特的这本书描述为广泛基础之选，把分布式存储与处理同周边工具连接起来，同时指出已有的Hadoop书籍大多描述较早的发行版，因此安装说明、API和配置示例需要对照当前文档核实。<sup>[13](https://mostrecommendedbooks.com/lists/best-hadoop-books)</sup>

该书的版本史也映照了平台自身的弧线。第一版问世之年，Hadoop推出了首个商业发行版，距离它2008年成为Apache顶级项目一年；第三版捕捉了向YARN的过渡；第四版则在Hadoop 2稳定之际到来。<sup>[14](https://sitams.ac.in/wp-content/uploads/2026/02/BDA-FOR-AI-ALL-5-UNITS.pdf)</sup> 此后格局再次变化：Hadoop项目仍在维护（Hadoop 3.5.0，其首个Java 17版本，于2026年4月2日发布），但许多团队已用[Apache Spark](https://www.edgepedia.org/zh/apache-spark)取代MapReduce，并将存储迁移到云对象存储，因此该书现在记录的平台主要存续于既有和专门化部署中，而非新项目中。<sup>[15](https://hadoop.apache.org/)</sup><sup> • </sup><sup>[16](https://www.osseva.io/blog/apache-hadoop-end-of-life-versions)</sup>

## References

1. [Hadoop: The Definitive Guide [Book], O'Reilly Media](https://www.oreilly.com/library/view/hadoop-the-definitive/9780596521974/)
2. [Hadoop: The Definitive Guide, 4th Edition (front matter on the author), full-text PDF](https://docview.dlib.vn/tvs/2022/20220510/utt/nguyenthithuylinh/_2_hadoopbook_2935.pdf?rand=777603)
3. [Hadoop: The Definitive Guide, 2nd Edition [Book], O'Reilly Media](https://www.oreilly.com/library/view/hadoop-the-definitive/9781449398644/index.html)
4. [Hadoop: The Definitive Guide, First Edition copyright page, accorsi.net PDF](https://accorsi.net/docs/hadoop.pdf)
5. [Hadoop: The Definitive Guide, 4th Edition preface, Piazza-hosted PDF](https://piazza-resources.s3.amazonaws.com/ist3pwd6k8p5t/iu5gqbsh8re6mj/OReilly.Hadoop.The.Definitive.Guide.4th.Edition.2015.pdf)
6. [Hadoop Books, Apache Hadoop wiki (HADOOP2)](https://cwiki.apache.org/confluence/spaces/HADOOP2/pages/120729867/Books)
7. [Editions, hadoopbook.com](https://www.hadoopbook.com/editions.html)
8. [Hadoop: The Definitive Guide, Reading Length bibliographic record](https://www.readinglength.com/book/BEuyXzm)
9. [Hadoop: The Definitive Guide (preface and acknowledgments), University of Otago course PDF](https://www.cs.otago.ac.nz/cosc440/readings/hadoop.pdf)
10. [Hadoop: the definitive guide, OBNB (Open British National Bibliography)](https://obnb.uk/p15991774-hadoop-the-definitive-guide)
11. [Hadoop: the definitive guide, WorldCat](https://search.worldcat.org/title/796017107)
12. [Book Review: Hadoop: The Definitive Guide, Julien Sobczak (2015)](https://juliensobczak.com/read/2015/12/19/hadoop-the-definitive-guide/)
13. [14 Best Hadoop Books (2026), Most Recommended Books](https://mostrecommendedbooks.com/lists/best-hadoop-books)
14. [A Brief History of Hadoop, SITAMS course material](https://sitams.ac.in/wp-content/uploads/2026/02/BDA-FOR-AI-ALL-5-UNITS.pdf)
15. [Apache Hadoop project homepage](https://hadoop.apache.org/)
16. [Hadoop End of Life: Which Versions Are Supported, OSSeva (2026)](https://www.osseva.io/blog/apache-hadoop-end-of-life-versions)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data platforms and frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/hadoop-the-definitive-guide

English original: https://www.edgepedia.org/hadoop-the-definitive-guide
