Skip to content

Commit

Permalink
[cm_api] OPSAPS-32894 Add the command to create container metrics dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Srivastava committed May 12, 2016
1 parent 024f4e9 commit 2f47328
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/src/cm_api/endpoints/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1863,6 +1863,16 @@ def list_commands_by_name(self):
return self._get("commandsByName", ApiCommandMetadata, True,
api_version=6)

def create_yarn_cm_container_usage_input_dir(self):
"""
Creates the HDFS directory where YARN container usage metrics are
stored by NodeManagers for CM to read and aggregate into app usage metrics.
@return: Reference to submitted command.
@since: API v13
"""
return self._cmd('yarnCreateCmContainerUsageInputDirCommand', api_version=13)

class ApiServiceSetupInfo(ApiService):
_ATTRIBUTES = {
'name' : None,
Expand Down Expand Up @@ -1932,4 +1942,3 @@ def first_run(self):
@since: API v7
"""
return self._cmd('firstRun', None, api_version=7)

0 comments on commit 2f47328

Please sign in to comment.