The library that turns Flink into an ML workhorse
It gives Flink a broad ML algorithm library through a Pipeline API that works in both Java and Python.

What it does
Alink is a general-purpose machine learning platform built directly on Apache Flink. It provides a library of algorithms—classification, clustering, regression, recommendation, graph embedding, feature engineering—that you compose using a Pipeline API and run as standard Flink batch or streaming jobs. Both a Java API and a Python wrapper called PyAlink are available, with the latter embedding a JVM to bridge the two languages.
The interesting bit
The project treats Flink less as a stream processor and more as a distributed compute substrate for ML. By wrapping algorithms as BatchOperator and StreamOperator objects that link together, it lets you move from notebook experimentation to cluster deployment without rewriting the graph.
Key highlights
- Algorithm coverage spans classification, clustering, regression, recommendation, graph embedding, and feature engineering, including KMeans, XGBoost, Word2Vec, ALS, and FM
- PyAlink exposes the same component-based API to Python, relying on a local JVM under the hood
- Supports Flink versions from 1.9 through 1.13, with separate Maven artifacts and Python packages for each
- Includes tutorials and a plugin downloader, suggesting it aims to be a complete workbench rather than a thin wrapper
Caveats
- The README is almost entirely in Chinese; English documentation appears to exist but the primary sources point to Chinese-language tutorials and DingTalk groups
- PyAlink requires both Python (3.6–3.8) and Java 8, which is a notable environment constraint
Verdict
Worth a look if you already run Flink and want to add model training or feature engineering to the same pipelines. Skip it if you are not prepared to navigate Chinese documentation or if your Python environment is newer than 3.8.
Frequently asked
- What is alibaba/Alink?
- It gives Flink a broad ML algorithm library through a Pipeline API that works in both Java and Python.
- Is Alink open source?
- Yes — alibaba/Alink is open source, released under the Apache-2.0 license.
- What language is Alink written in?
- alibaba/Alink is primarily written in Java.
- How popular is Alink?
- alibaba/Alink has 3.6k stars on GitHub.
- Where can I find Alink?
- alibaba/Alink is on GitHub at https://github.com/alibaba/Alink.