Python client for Hadoop® YARN API
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install yarn-api-clienthadoop-yarn-api-python-client
Python client for Apache Hadoop® YARN API
Package documentation: yarn-api-client-python.readthedocs.org
REST API documentation: hadoop.apache.org
Warning: CLI is outdated & broken. Please don't use CLI. This will be resolved in future releases.
Compatibility Matrix
| yarn-api-client-python | Apache Hadoop |
|---|---|
| 1.0.2 | 3.2.1 |
| 1.0.3 | 3.3.0, 3.3.1 |
If u have version other than mentioned (or vendored variant like Hortonworks), certain APIs might be not working or have differences in implementation. If u plan to use certain API long-term, you might want to make sure its not in Alpha stage in documentation.
Installation
From PyPI
pip install yarn-api-client
From Anaconda (conda forge)
conda install -c conda-forge yarn-api-client
From source code
pip install git+https://github.com/CODAIT/hadoop-yarn-api-python-client.git
Enabling support for SimpleAuth
See example below:
from yarn_api_client.auth import SimpleAuth
from yarn_api_client.history_server import HistoryServer
auth = SimpleAuth('impersonated_account_name')
history_server = HistoryServer('https://127.0.0.2:5678', auth=auth)
