Using Python with Managed Service for Apache Flink - Managed Service for Apache Flink
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Managed Service for Apache Flink was previously known as Amazon Kinesis Data Analytics for Apache Flink.

Using Python with Managed Service for Apache Flink

Note

If you are developing Python Flink application on a new Mac with Apple Silicon chip, you may encounter some known issues with Python dependencies of PyFlink 1.15. In this case we recommend running the Python interpreter in Docker. For step-by-step instructions, see PyFlink 1.15 development on Apple Silicon Mac.

Apache Flink version 1.18.1 includes support for creating applications using Python version 3.10. For more information, see Flink Python Docs. You create a Managed Service for Apache Flink application using Python by doing the following:

  • Create your Python application code as a text file with a main method.

  • Bundle your application code file and any Python or Java dependencies into a zip file, and upload it to an Amazon S3 bucket.

  • Create your Managed Service for Apache Flink application, specifying your Amazon S3 code location, application properties, and application settings.

At a high level, the Python Table API is a wrapper around the Java Table API. For information about the Python Table API, see the Table API Tutorial in the Apache Flink Documentation.