yarn-api-client
Python client for Hadoop® YARN API
What it is and what it does
yarn-api-client is a Python wrapper around the Apache Hadoop YARN REST API, allowing programmatic access to cluster resources, job submission, application monitoring, and node management. It abstracts away HTTP details and provides classes like ResourceManager, ApplicationMaster, HistoryServer, and NodeManager that map to YARN's core components.
The package supports optional authentication via SimpleAuth, Kerberos/SPNEGO (through requests_kerberos or gssapi), and proxy configuration. It is designed for Python 3.6 through 3.10 and has low install friction, depending only on requests. However, it is no longer actively maintained—the last release was in November 2021 and the repository shows no commits since September 2022. Compatibility is explicitly tested only against Hadoop 3.2.1, 3.3.0, and 3.3.1; other versions may have API mismatches or missing functionality.
Use it for:
- Query cluster resource availability and capacity before submitting Hadoop jobs programmatically
- Monitor running YARN applications and retrieve job status, logs, and performance metrics from a Python service
- Manage application lifecycle (submit, kill, track) in Kerberized Hadoop environments via Python automation
- Build dashboards or reporting tools that aggregate YARN cluster state across multiple resource managers
- Integrate Hadoop job submission and tracking into Python-based data pipelines or orchestration frameworks
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for querying and managing Apache Hadoop YARN clusters via REST API, supporting resource managers, application masters, history servers, and node managers.
Yes, if you are working with Hadoop 3.2.1, 3.3.0, or 3.3.1 and need programmatic YARN API access from Python. The package is stable, has no known vulnerabilities, and low install friction. However, do not install if you require active maintenance, bug fixes, or compatibility with newer Hadoop versions—the project is abandoned and has not been updated since 2022-09-26. Verify that your Hadoop version is explicitly supported before committing to it.
Install
yarn-api-client on PyPI
pip
pip install yarn-api-clientuv
uv add yarn-api-clientpoetry
poetry add yarn-api-clientInstalling yarn-api-client
Before you install
Low install friction with a single dependency (requests). However, the package is in abandoned maintenance status with no releases since 2021-11-16. The last commit was 2022-09-26. Compatibility is explicitly limited to Apache Hadoop 3.2.1, 3.3.0, and 3.3.1; other versions may have API differences or broken functionality.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute this package freely provided you retain the license notice.
Quickstart
pip install yarn-api-client
from yarn_api_client import ResourceManager
rm = ResourceManager('https://127.0.0.2:5678')
cluster_info = rm.cluster_information()
Requires a running Hadoop YARN cluster accessible at the specified endpoint. Kerberos/SPNEGO authentication requires optional dependencies (requests_kerberos or gssapi) installed separately and valid Kerberos tickets in system cache.
Verify before relying
- Whether the package works reliably with Hadoop versions beyond 3.3.1 or with vendor variants like Hortonworks
- Current state of the CLI interface (documented as outdated and broken)
- Whether the package has been tested or used successfully in production since its last release in November 2021
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | abandoned — 1,732 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 250,373/month — #8,633 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yarn_api_client-1.0.3-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
hdfsHdfsCLI provides Python bindings and a…
permissive · top 5,000 on PyPI
google-cloud-dataprocA Python client library for managing…
permissive · top 1,000 on PyPI
snakebite-py3Provides a pure Python HDFS client library and…
permissive · top 5,000 on PyPI
azure-mgmt-hdinsightManages Azure HDInsight clusters and resources…
unclear · top 5,000 on PyPI
upcloud-apiObject-oriented Python client for UpCloud's…
permissive · top 15,000 on PyPI
trinoPython client library for Trino, a distributed…
permissive · top 1,000 on PyPI
ipyparallelManages clusters of IPython processes for…
permissive · top 15,000 on PyPI
scrapinghubA Python client library for communicating with…
permissive · top 15,000 on PyPI
azure-mgmt-servicefabricProvides Python client library for managing…
permissive · top 5,000 on PyPI