مشخصات کتاب
-
Nishant Garg
-
2013
-
انگلیسی
-
1497
-
346
-
0
دانلود کتابApache Kafka
با مطالعه ی این کتاب نه تنها کاملا با پروژه ی متن باز پیغام رسان Apache Kafka آشنا می شوید، بلکه قادر خواهید بود آن را برای حل مشکلات و چالش های مربوط به خواندن و استفاده از میلیون ها پیغام در معماری publisher-subscriber بکار ببرید. این کتاب طوری طراحی شده است که مفاهیم پایه ای سیستم پیغام رسان متن باز Kafka را به شما آموزش داده و زمینه ای برای شما فراهم می کند که می توانید از آن به مباحث پیشرفته تر بپردازید. علاوه بر شرح Apache Kafka، فصلی در خصوص چگونگی ترکیب کردن و استفاده از آن با دیگر تکنولوژی های مطرح نظیر Apache Hadoop و Storm ارائه می دهد. هدف کتاب حاضر فقط این نیست که شما را با تکنولوژی Apache Kafka آشنا بکند، بلکه قصد دارد نحوه ی استفاده ی عملی ازآن را به شما بیاموزد.
Preface 1
Chapter 1: Introducing Kafka 5
Need for Kafka 7
Few Kafka usages 8
Summary 9
Chapter 2: Installing Kafka 11
Installing Kafka 12
Downloading Kafka 12
Installing the prerequisites 13
Installing Java 1.6 or later 13
Building Kafka 14
Summary 16
Chapter 3: Setting up the Kafka Cluster 17
Single node – single broker cluster 17
Starting the ZooKeeper server 18
Starting the Kafka broker 19
Creating a Kafka topic 20
Starting a producer for sending messages 20
Starting a consumer for consuming messages 22
Single node – multiple broker cluster 23
Starting ZooKeeper 23
Starting the Kafka broker 23
Creating a Kafka topic 24
Starting a producer for sending messages 24
Starting a consumer for consuming messages 25
Multiple node – multiple broker cluster 25
Kafka broker property list 26
Summary 26Chapter 4: Kafka Design 27
Kafka design fundamentals 28
Message compression in Kafka 29
Cluster mirroring in Kafka 30
Replication in Kafka 31
Summary 32
Chapter 5: Writing Producers 33
The Java producer API 34
Simple Java producer 36
Importing classes 36
Defining properties 36
Building the message and sending it 37
Creating a simple Java producer with message partitioning 38
Importing classes 38
Defining properties 38
Implementing the Partitioner class 39
Building the message and sending it 39
The Kafka producer property list 40
Summary 42
Chapter 6: Writing Consumers 43
Java consumer API 44
High-level consumer API 44
Simple consumer API 46
Simple high-level Java consumer 47
Importing classes 47
Defining properties 47
Reading messages from a topic and printing them 48
Multithreaded consumer for multipartition topics 50
Importing classes 50
Defining properties 50
Reading the message from threads and printing it 51
Kafka consumer property list 54
Summary 55
Chapter 7: Kafka Integrations 57
Kafka integration with Storm 57
Introduction to Storm 58
Integrating Storm 59
Kafka integration with Hadoop 60
Introduction to Hadoop 60
Integrating Hadoop 62Hadoop producer 62
Hadoop consumer 64
Summary 64
Chapter 8: Kafka Tools 65
Kafka administration tools 65
Kafka topic tools 65
Kafka replication tools 66
Integration with other tools 68
Kafka performance testing 69
Summary 69
Index 71
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK..
ISBN 978-1-78216-793-8
www.packtpub.com