All URIs are relative to https://localhost/api/v30
Method | HTTP request | Description |
---|---|---|
jmapDump | POST /cm/service/roleCommands/jmapDump | Run the jmapDump diagnostic command. |
jmapHisto | POST /cm/service/roleCommands/jmapHisto | Run the jmapHisto diagnostic command. |
jstack | POST /cm/service/roleCommands/jstack | Run the jstack diagnostic command. |
lsof | POST /cm/service/roleCommands/lsof | Run the lsof diagnostic command. |
restartCommand | POST /cm/service/roleCommands/restart | Restart a set of Cloudera Management Services roles. |
startCommand | POST /cm/service/roleCommands/start | Start a set of Cloudera Management Services roles. |
stopCommand | POST /cm/service/roleCommands/stop | Stop a set of Cloudera Management Services roles. |
ApiBulkCommandList jmapDump(body)
Run the jmapDump diagnostic command.
Run the jmapDump diagnostic command. The command runs the jmap utility to capture a dump of the role's java heap.
Available since API v8.// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | the names of the roles to jmap.
try {
ApiBulkCommandList result = apiInstance.jmapDump(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#jmapDump");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | the names of the roles to jmap. | [optional] |
ApiBulkCommandList jmapHisto(body)
Run the jmapHisto diagnostic command.
Run the jmapHisto diagnostic command. The command runs the jmap utility to capture a histogram of the objects on the role's java heap.
Available since API v8.// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | the names of the roles to jmap.
try {
ApiBulkCommandList result = apiInstance.jmapHisto(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#jmapHisto");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | the names of the roles to jmap. | [optional] |
ApiBulkCommandList jstack(body)
Run the jstack diagnostic command.
Run the jstack diagnostic command. The command runs the jstack utility to capture a role's java thread stacks.
Available since API v8.// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | the names of the roles to jstack.
try {
ApiBulkCommandList result = apiInstance.jstack(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#jstack");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | the names of the roles to jstack. | [optional] |
ApiBulkCommandList lsof(body)
Run the lsof diagnostic command.
Run the lsof diagnostic command. This command runs the lsof utility to list a role's open files.
Available since API v8.// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | the names of the roles to lsof.
try {
ApiBulkCommandList result = apiInstance.lsof(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#lsof");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | the names of the roles to lsof. | [optional] |
ApiBulkCommandList restartCommand(body)
Restart a set of Cloudera Management Services roles.
Restart a set of Cloudera Management Services roles.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | The roles to restart.
try {
ApiBulkCommandList result = apiInstance.restartCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#restartCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | The roles to restart. | [optional] |
ApiBulkCommandList startCommand(body)
Start a set of Cloudera Management Services roles.
Start a set of Cloudera Management Services roles.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | The roles to start.
try {
ApiBulkCommandList result = apiInstance.startCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#startCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | The roles to start. | [optional] |
ApiBulkCommandList stopCommand(body)
Stop a set of Cloudera Management Services roles.
Stop a set of Cloudera Management Services roles.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.MgmtRoleCommandsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
MgmtRoleCommandsResourceApi apiInstance = new MgmtRoleCommandsResourceApi();
ApiRoleNameList body = new ApiRoleNameList(); // ApiRoleNameList | The roles to stop.
try {
ApiBulkCommandList result = apiInstance.stopCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MgmtRoleCommandsResourceApi#stopCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRoleNameList | The roles to stop. | [optional] |