Git Product home page Git Product logo

flink-training-troubleshooting's Introduction

⚠️ This repository was archived and it's content was moved to https://github.com/ververica/flink-training/ ⚠️


Apache Flink® Troubleshooting Training

Introduction

This repository provides the basis of the hands-on part of the "Apache Flink Troubleshooting" training session at Flink Forward Europe 2019.

Requirements

To make use of this repository participants will need:

  • git
  • JDK 8
  • maven
  • a Java IDE (Intellij IDEA/Eclipse)

Training Preparations

In order to avoid potential issues with the WiFi at the training venue, please checkout and build the project prior to the training:

git clone [email protected]:ververica/flink-training-troubleshooting.git
cd flink-training-troubleshooting
mvn clean package

Infrastructure

During the training, participants will be asked to run the Flink job TroubledStreamingJob locally as well as on Ververica Platform.

Running Locally

Just run the test in TroubledStreamingJobRunner which will call the main-method of TroubledStreamingJob with a local configuration and automatically pulls in dependencies with "provided" scope.

Once running, you can access Flink's Web UI via http://localhost:8081.

The Flink Job

This simple Flink job reads measurement data from a Kafka topic with eight partitions. For the purpose of this training the KafkaConsumer is replaced by FakeKafkaSource. The result of a calculation based on the measurement value is averaged over 1 second. The overall flow is depicted below:

+-------------------+     +-----------------------+     +-----------------+     +----------------------+     +--------------------+
|                   |     |                       |     |                 |     |                      |     |                    |
| Fake Kafka Source | --> | Watermarks/Timestamps | --> | Deserialization | --> | Windowed Aggregation | --> | Sink: NormalOutput |
|                   |     |                       |     |                 |     |                      |     |                    |
+-------------------+     +-----------------------+     +-----------------+     +----------------------+     +--------------------+
                                                                                            \
                                                                                             \               +--------------------+
                                                                                              \              |                    |
                                                                                               +-----------> | Sink: LateDataSink |    
                                                                                                             |                    |
                                                                                                             +--------------------+

In local mode, sinks print their values on stdout (NormalOutput) and stderr (LateDataSink) for simplified debugging while as without local mode, a DiscardingSink is used for each sink.


Apache Flink, Flink®, Apache®, the squirrel logo, and the Apache feather logo are either registered trademarks or trademarks of The Apache Software Foundation.

flink-training-troubleshooting's People

Contributors

cewood avatar knaufk avatar nicok avatar sjwiesman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.