Skip to main content

Python client for Hadoop® YARN API

Project description

Python client for Apache Hadoop® YARN API

Latest Version Travis CI build status Latest documentation status Test coverage

Package documentation:

REST API documentation:


From PyPI

pip install yarn-api-client

From Anaconda (conda forge)

conda install -c conda-forge yarn-api-client

From source code

git clone
pushd hadoop-yarn-api-python-client
python install

Enabling support for Kerberos/SPNEGO Security

To avoid deployment issues on a non Kerberized environment, the requests_kerberos dependency is optional and needs to be explicit installed in order to enable access to YARN console protected by Kerberos/SPNEGO.

pip install requests_kerberos


CLI interface

bin/yarn_client --help


python -m yarn_api_client --help

Programmatic interface

from yarn_api_client import ApplicationMaster, HistoryServer, NodeManager, ResourceManager


0.3.2 Release
  • Make Kerberos/SPNEGO dependency optional
0.3.1 Release
  • Fix cluster_application_kill API
0.3.0 Release
  • Add support for YARN endpoints protected by Kerberos/SPNEGO
  • Moved to requests package for REST API invocation
  • Remove http_con property, as connections are now managed by requests package
0.2.5 Release
  • Fixed History REST API
0.2.4 Release
  • Added compatibility with HA enabled Resource Manager

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
yarn_api_client-0.3.2-py2.py3-none-any.whl (18.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3
yarn-api-client-0.3.2.tar.gz (12.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page