Book Image

Building Big Data Pipelines with Apache Beam

By : Jan Lukavský
Book Image

Building Big Data Pipelines with Apache Beam

By: Jan Lukavský

Overview of this book

Apache Beam is an open source unified programming model for implementing and executing data processing pipelines, including Extract, Transform, and Load (ETL), batch, and stream processing. This book will help you to confidently build data processing pipelines with Apache Beam. You’ll start with an overview of Apache Beam and understand how to use it to implement basic pipelines. You’ll also learn how to test and run the pipelines efficiently. As you progress, you’ll explore how to structure your code for reusability and also use various Domain Specific Languages (DSLs). Later chapters will show you how to use schemas and query your data using (streaming) SQL. Finally, you’ll understand advanced Apache Beam concepts, such as implementing your own I/O connectors. By the end of this book, you’ll have gained a deep understanding of the Apache Beam model and be able to apply it to solve problems.
Table of Contents (13 chapters)
1
Section 1 Apache Beam: Essentials
5
Section 2 Apache Beam: Toward Improving Usability
9
Section 3 Apache Beam: Advanced Concepts

Technical requirements

The toolset we are using will only change slightly in this chapter. Besides the classical Docker and minikube, we will need to install Python3. Let's take a look:

  1. Python can be installed by following the instructions at https://realpython.com/installing-python/.
  2. We will also need to install the apache_beam package using pip:
    $ python3 =m pip install apache_beam

    If something goes wrong, make sure you have the latest version of pip by using the following command:

    $ python3 =m pip install --upgrade pip
  3. The highest fully Apache Beam-supported version of Python is 3.7. If you have a higher version installed and do not want to downgrade, you can use the pack-beam pod in minikube, which has the correct Python version bundled with it. All the examples in this chapter can be run using the following command:
    $ kubectl exec -t packt-beam -- \
        /usr/local/bin/<name_of_script.py>

You will also need to have a basic understanding...