NodeManager API’s.

class yarn_api_client.node_manager.NodeManager(service_endpoint=None, timeout=30, auth=None, verify=True)

The NodeManager REST API’s allow the user to get status on the node and information about applications and containers running on that node.

If service_endpoint argument is None client will try to extract it from Hadoop configuration files.

Parameters:
  • service_endpoint (str) – NodeManager HTTP(S) address
  • timeout (int) – API connection timeout in seconds
  • auth (AuthBase) – Auth to use for requests
  • verify (boolean) – Either a boolean, in which case it controls whether we verify the server’s TLS certificate, or a string, in which case it must be a path to a CA bundle to use. Defaults to True
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