preface

Let’s start with a few examples of Flink written by bigwigs

  • flink-examples

This is the official example for understanding and getting familiar with the API

  • flink-training-exercises

DataArtisans is the commercial company behind Flink. The examples in the demo are not too hard

As we all know, Flink related Chinese documentation is very limited, if you think the above two examples are too “cold”, you can have a look at my Flink instance library

origin

This code base is what I wanted to write when I read the book Data Algorithms, because from the table of contents, this book is very close to the business scenario, and most importantly, there is a description of the business scenario in Chinese, know what data is needed for this example, what kind of data is generated

For example, these chapters can correspond to market calculation, mall system, recommendation system related business

But the biggest problem with this book for me is that in addition to explaining business scenarios, it only provides the details of the Hadoop and Spark implementations.

But it was also an opportunity for me to be more motivated to do it in Flink, so there was a library of code that implemented the algorithm in Flink

introduce

So far I have only implemented two to five chapters of the code base. Only the second chapter is implemented in Java, and the rest is only in Scala.

Then enter that the instance files are stored in the section folder of Resouse

In addition to CSV or TXT files, some of them come with a mock.html

What is this for? When you open it locally, you’ll find a web page that randomly generates data in a specific format and displays content that can be copied into the input instance file for further debugging

At the end

Attached is a PDF version of the book that I scanned myself, which may not be perfect (some pages are slightly slanted and don’t come with a table of contents), but…. emmmm…. It’s not like you can’t use it

Just kidding, if this post gets 100 likes, I’ll add the contents to the PDF

If you would like to help, you can add the link to the comments section, for the benefit of everyone

Link: pan.baidu.com/s/13K6NNpCV… Password: oo8f