Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions yarn_api_client/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,36 @@ def cluster_application_attempts(self, application_id):

return self.request(path)

def cluster_application_attempt_info(self, application_id, attempt_id):
"""
With the application attempts API, you can obtain an extended info about
an application attempt.

:param str application_id: The application id
:param str attempt_id: The attempt id
:returns: API response object with JSON data
:rtype: :py:class:`yarn_api_client.base.Response`
"""
path = '/ws/v1/cluster/apps/{appid}/appattempts/{attemptid}'.format(
appid=application_id, attemptid=attempt_id)

return self.request(path)

def cluster_application_attempt_containers(self, application_id, attempt_id):
"""
With the application attempts API, you can obtain an information
about container related to an application attempt.

:param str application_id: The application id
:param str attempt_id: The attempt id
:returns: API response object with JSON data
:rtype: :py:class:`yarn_api_client.base.Response`
"""
path = '/ws/v1/cluster/apps/{appid}/appattempts/{attemptid}/containers'.format(
appid=application_id, attemptid=attempt_id)

return self.request(path)

def cluster_application_state(self, application_id):
"""
With the application state API, you can obtain the current
Expand Down