NodeManager API’s.¶
-
class
yarn_api_client.node_manager.
NodeManager
(address=None, port=8042, timeout=30)¶ The NodeManager REST API’s allow the user to get status on the node and information about applications and containers running on that node.
Parameters: - address (str) – NodeManager HTTP address
- port (int) – NodeManager HTTP port
- timeout (int) – API connection timeout in seconds
-
node_application
(application_id)¶ An application resource contains information about a particular application that was run or is running on this NodeManager.
Parameters: application_id (str) – The application id Returns: API response object with JSON data Return type: yarn_api_client.base.Response
-
node_applications
(state=None, user=None)¶ With the Applications API, you can obtain a collection of resources, each of which represents an application.
Parameters: - state (str) – application state
- user (str) – user name
Returns: API response object with JSON data
Return type: yarn_api_client.base.Response
Raises: yarn_api_client.errors.IllegalArgumentError – if state incorrect
-
node_container
(container_id)¶ A container resource contains information about a particular container that is running on this NodeManager.
Parameters: container_id (str) – The container id Returns: API response object with JSON data Return type: yarn_api_client.base.Response
-
node_containers
()¶ With the containers API, you can obtain a collection of resources, each of which represents a container.
Returns: API response object with JSON data Return type: yarn_api_client.base.Response
-
node_information
()¶ The node information resource provides overall information about that particular node.
Returns: API response object with JSON data Return type: yarn_api_client.base.Response