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: python-client-for-hadoop-yarn-api.readthedocs.org

REST API documentation: hadoop.apache.org

Installation

From PyPI

pip install yarn-api-client

From Anaconda (conda forge)

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

From source code

git clone https://github.com/toidi/hadoop-yarn-api-python-client.git
pushd hadoop-yarn-api-python-client
python setup.py install
popd

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

Usage

CLI interface

bin/yarn_client --help

alternative

python -m yarn_api_client --help

Programmatic interface

from yarn_api_client import ApplicationMaster, HistoryServer, NodeManager, ResourceManager

Changelog

0.3.4 Release
  • More flexible support for discovering Hadoop configuration including multiple Resource Managers when HA is configured

  • Properly support YARN post response codes

0.3.3 Release
  • Properly set Content-Type in PUT requests

  • Check for HADOOP_CONF_DIR env variable

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.

Source Distribution

yarn-api-client-0.3.4.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

yarn_api_client-0.3.4-py2.py3-none-any.whl (17.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yarn-api-client-0.3.4.tar.gz.

File metadata

  • Download URL: yarn-api-client-0.3.4.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for yarn-api-client-0.3.4.tar.gz
Algorithm Hash digest
SHA256 88ef89e76da0516e775e2dee301f1a8e26ee5d381128ac841752e9b3afa625dc
MD5 c07308bb8e9c798ad4d9dc63e91110d2
BLAKE2b-256 1fad09971055d448f96c0b12c79832f0d707197ade9d7b4c0cbcf767ee4e116f

See more details on using hashes here.

File details

Details for the file yarn_api_client-0.3.4-py2.py3-none-any.whl.

File metadata

  • Download URL: yarn_api_client-0.3.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for yarn_api_client-0.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17c50effacb96a4692d6c0af3aea593f22580bf974ef9a92aac22de5a1b43740
MD5 f012457471144e560dc3426711c9a9a9
BLAKE2b-256 2a8961eee778506df137bb024b72e656f4d4213ed5a7c8fae1f4253df02c9d15

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page