{ "info": { "author": "hs_seo", "author_email": "fluorite118@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "This is Python Library for Hadoop YARN REST api.\n\nThis project follows the [Hadoop YARN REST Api](https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html) document.\n\nWe have implemented the following APIs.\n\n\t- Cluster Information API\n\t- Cluster Metrics API\n\t- Cluster Scheduler API\n\t- Cluster Applications API\n\t- Cluster Application Statistics API\n\t- Cluster Application API\n\t- Cluster Application Attempts API\n\t- Cluster Nodes API\n\t- Cluster Node API\n\nUsage\n=====\n\nInstall it::\n\n pip install hadoop-yarn-rest-api\n\nUsage::\n\n from hadoop.yarn import Yarn\n import xml.etree.ElementTree as ET\n import json\n import xml.dom.minidom\n\n def main():\n yarn = Yarn(\"http://localhost:8088\", 'json')\n\n response_obj = yarn.cluster_information()\n response_obj = yarn.cluster_metrics()\n response_obj = yarn.cluster_scheduler()\n response_obj = yarn.cluster_applications()\n response_obj = yarn.cluster_applications({\"limit\":100})\n response_obj = yarn.cluster_appstatistics()\n response_obj = yarn.cluster_appstatistics({\"states\":\"accepted,running,finished\",\"applicationTypes\":\"mapreduce\"})\n response_obj = yarn.cluster_application(\"job_id\")\n response_obj = yarn.cluster_application_attempts(\"job_id\")\n response_obj = yarn.cluster_nodes()\n response_obj = yarn.cluster_nodes({\"states\":\"RUNNING\"}) # NEW, RUNNING, UNHEALTHY, DECOMMISSIONING, DECOMMISSIONED, LOST, REBOOTED, SHUTDOWN\n response_obj = yarn.cluster_node(\"node_id\")\n\n if yarn.response_type == 'json':\n print(json.dumps(response_obj, indent=4, sort_keys=True))\n elif yarn.response_type == 'xml':\n print(xml.dom.minidom.parseString(ET.tostring(response_obj)).toprettyxml())\n else:\n print(response_obj)\n\n if __name__ == '__main__':\n main()\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/developer-sdk/yarn-rest-api/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/developer-sdk/yarn-rest-api", "keywords": "hadoop,yarn,rest,api,resourcemanager", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "hadoop-yarn-rest-api", "package_url": "https://pypi.org/project/hadoop-yarn-rest-api/", "platform": "", "project_url": "https://pypi.org/project/hadoop-yarn-rest-api/", "project_urls": { "Download": "https://github.com/developer-sdk/yarn-rest-api/archive/master.zip", "Homepage": "https://github.com/developer-sdk/yarn-rest-api" }, "release_url": "https://pypi.org/project/hadoop-yarn-rest-api/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for Hadoop YARN REST API", "version": "1.1.0" }, "last_serial": 5460682, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "a4c15f1362fb4bc2c37ea210a23b4cec", "sha256": "36f2206be0700d39cb131fe5669bd21ca7c77b5fdf02ba3b38ac95512f407298" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a4c15f1362fb4bc2c37ea210a23b4cec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4448, "upload_time": "2019-05-16T14:05:28", "url": "https://files.pythonhosted.org/packages/2c/8b/9ffaacf4401011622937a0bec9e339bb0304028a12e328675d56b09113ad/hadoop_yarn_rest_api-0.2-py3-none-any.whl" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ae3e639577c45d5fe3693dc4ffe1aa4e", "sha256": "62607d8a014b17fc1c8954cb2a082ab041f448ff23fe5905bcc4a0cf10c50385" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "ae3e639577c45d5fe3693dc4ffe1aa4e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3960, "upload_time": "2019-05-27T13:17:03", "url": "https://files.pythonhosted.org/packages/5c/b5/410d1110b6b4c05b3c0179fa85b178c0df13609bc43ee30ee400a9ccedfb/hadoop_yarn_rest_api-0.3-py2-none-any.whl" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "f9141c889520de3d1a24300c284745dd", "sha256": "80e7c77d61564379860780daf495d6a96e7624629c07e0b11023336d2f051f6a" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "f9141c889520de3d1a24300c284745dd", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4483, "upload_time": "2019-05-28T13:10:03", "url": "https://files.pythonhosted.org/packages/ba/a3/8a82b65fe6933f18e1520ba076ea18d68dbec17e1c1d6a12b88dce9e82e2/hadoop_yarn_rest_api-0.4-py2-none-any.whl" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "c639f20d23698342d4be2593f6502d54", "sha256": "3a793d22341a85733652db5e3567b9ebed98b9dc24332345e4b6e2f4a213209b" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "c639f20d23698342d4be2593f6502d54", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4492, "upload_time": "2019-06-23T13:24:15", "url": "https://files.pythonhosted.org/packages/67/d3/a5575d891ed285abfb2cc85ec71b672b317e8bf302c6e8db6aad772c0e81/hadoop_yarn_rest_api-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a2828693e374ed079fff4eee72d096f6", "sha256": "3f4ca18d9fa5416e887148ca5efb605d2d82cfdd881c0bdd8c5919f6ba15d101" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a2828693e374ed079fff4eee72d096f6", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4470, "upload_time": "2019-06-22T23:54:31", "url": "https://files.pythonhosted.org/packages/60/6e/8b8a3f6a23d49362075ee9b8d8cc58e38b311a13a5cddee51eb27587fa02/hadoop_yarn_rest_api-1.0-py2-none-any.whl" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "19f48e20017ac3428d5249d207b59289", "sha256": "088054da6330ee93cdd3a6a1cbf99df8acfa04e52a794f8f1407e5e85707b3b0" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19f48e20017ac3428d5249d207b59289", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6200, "upload_time": "2019-06-28T08:56:56", "url": "https://files.pythonhosted.org/packages/bf/8f/c1126ad72d8a45274ab04f62c0543ec7fad8d7b8526bc2aa23ec2cfe7886/hadoop_yarn_rest_api-1.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "19f48e20017ac3428d5249d207b59289", "sha256": "088054da6330ee93cdd3a6a1cbf99df8acfa04e52a794f8f1407e5e85707b3b0" }, "downloads": -1, "filename": "hadoop_yarn_rest_api-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19f48e20017ac3428d5249d207b59289", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6200, "upload_time": "2019-06-28T08:56:56", "url": "https://files.pythonhosted.org/packages/bf/8f/c1126ad72d8a45274ab04f62c0543ec7fad8d7b8526bc2aa23ec2cfe7886/hadoop_yarn_rest_api-1.1.0-py2.py3-none-any.whl" } ] }