All URIs are relative to /api/v57
Method | HTTP request | Description |
---|---|---|
addConfigPolicy | POST /cm/configPolicies | |
addCustomCerts | POST /cm/commands/addCustomCerts | Add custom certificates to the Auto-TLS certificate database. |
beginTrial | POST /cm/trial/begin | Begin trial license. |
clustersPerfInspectorCommand | POST /cm/commands/clustersPerfInspector | Run performance diagnostics test against specified clusters in ApiClustersPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator. |
collectDiagnosticDataCommand | POST /cm/commands/collectDiagnosticData | Collect diagnostic data from hosts managed by Cloudera Manager. |
deleteConfigPolicy | DELETE /cm/configPolicies | |
deleteCredentialsCommand | POST /cm/commands/deleteCredentials | Delete existing Kerberos credentials. |
deleteInstances | POST /cm/deleteInstances | Remove a list of cm servers from ha cluster. |
disableCsp | POST /cm/commands/disableCsp | Disables the CSP by setting csp type to "none", only when currently the csp type is either "embedded" or "vault". |
enableCsp | POST /cm/commands/enableCsp | Enables the CSP by setting csp type to "vault" or "embedded" as chosen by the user. |
endTrial | POST /cm/trial/end | End trial license. |
generateCmca | POST /cm/commands/generateCmca | Generate a CMCA. |
generateCredentialsAdhoc | POST /cm/commands/generateCredentialsAdhoc | Generate missing Kerberos credentials, optionally accepting a list of ad-hoc credentials to generate as well. |
generateCredentialsCommand | POST /cm/commands/generateCredentials | Generate missing Kerberos credentials. |
generateUsageReport | POST /cm/generateUsageReport | Generate Usage reports for clusters. |
getClusterSupportTokenList | GET /cm/clusterSupportTokens | Gets the support tokens for all the clusters. |
getConfig | GET /cm/config | Retrieve the Cloudera Manager settings. |
getConfigPolicies | GET /cm/configPolicies | |
getDeployment2 | GET /cm/deployment | Retrieve full description of the entire Cloudera Manager deployment including all hosts, clusters, services, roles, users, settings, etc. |
getKerberosInfo | GET /cm/kerberosInfo | Provides Cloudera Manager Kerberos information. |
getKerberosPrincipals | GET /cm/kerberosPrincipals | Returns the Kerberos principals needed by the services being managed by Cloudera Manager. |
getKrb5Conf | GET /cm/krb5conf | Retrieves krb5. |
getLicensedFeatureUsage | GET /cm/licensedFeatureUsage | Retrieve a summary of licensed feature usage. |
getLog | GET /cm/log | Returns the entire contents of the Cloudera Manager log file. |
getScmDbInfo | GET /cm/scmDbInfo | Provides Cloudera Manager server's database information. |
getShutdownReadiness | GET /cm/shutdownReadiness | Retrieve Cloudera Manager's readiness for shutdown and destroy. |
getUsageReport | GET /cm/getUsageReport | Retrieve the latest generated Usage reports for all clusters. |
getVersion | GET /cm/version | Provides version information of Cloudera Manager itself. |
hostInstallCommand | POST /cm/commands/hostInstall | Perform installation on a set of hosts. |
hostsDecommissionCommand | POST /cm/commands/hostsDecommission | Decommission the given hosts. |
hostsOfflineOrDecommissionCommand | POST /cm/commands/hostsOfflineOrDecommission | Decommission the given hosts. |
hostsPerfInspectorCommand | POST /cm/commands/hostsPerfInspector | Run performance diagnostics test against specified hosts in ApiHostsPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator. |
hostsRecommissionAndExitMaintenanceModeCommand | POST /cm/commands/hostsRecommissionAndExitMaintenanceMode | Recommission and exit maintenance on the given hosts. |
hostsRecommissionCommand | POST /cm/commands/hostsRecommission | Recommission the given hosts. |
hostsRecommissionWithStartCommand | POST /cm/commands/hostsRecommissionWithStart | Recommission the given hosts. |
hostsRepairRolesCommand | POST /cm/commands/hostsRepairRoles | Execute repair command on the given hosts. |
hostsStartRolesCommand | POST /cm/commands/hostsStartRoles | Start all the roles on the given hosts. |
hostsStopRolesCommand | POST /cm/commands/hostsStopRoles | Stop all the roles on the given hosts. |
importAdminCredentials | POST /cm/commands/importAdminCredentials | Imports the KDC Account Manager credentials needed by Cloudera Manager to create kerberos principals needed by CDH services. |
importClusterTemplate | POST /cm/importClusterTemplate | Create cluster as per the given cluster template. |
importKerberosPrincipal | POST /cm/commands/importKerberosPrincipal | Imports the Kerberos credentials for the specified principal which can then be used to add to a role's keytab by running Generate Credentials command. |
inspectHostsCommand | POST /cm/commands/inspectHosts | Runs the host inspector on the configured hosts. |
listActiveCommands | GET /cm/commands | List active global commands. |
listAllGeneratedUsageReports | GET /cm/listAllGeneratedUsageReports | retrieve all generated cluster usage reports currently on disk. |
migrateCmcaToDb | POST /cm/commands/migrateCmcaToDb | Migrate CMCA to the DB. |
readInstance | GET /cm/instances/{cmServerId} | Retrieves the CM server information. |
readInstances | GET /cm/instances | Retrieves all CM server information. |
readLicense | GET /cm/license | Retrieve information about the Cloudera Manager license. |
refreshParcelRepos | POST /cm/commands/refreshParcelRepos | . |
retrieveKeytab | POST /cm/retrieveKeytab | Retrieves a keytab for a list of principals. |
rotateCspKeys | POST /cm/commands/rotateCspKeys | Perform rotation of the CSP key. |
sendUsageReport | POST /cm/sendUsageReport | Send Usage reports for clusters to cloudera ops. |
testExternalAuthentication | POST /cm/commands/testExternalAuthentication | Launches a command to test the currently configured external authentication. |
updateConfig | PUT /cm/config | Update the Cloudera Manager settings. |
updateCspType | POST /cm/commands/updateCspType | Updates the CSP type from previous csp type to new csp type, by copying the key_id (used for encryption of configs) from previous csp type to new csp type or from one location to another in same CSP type. |
updateDeployment2 | PUT /cm/deployment | Apply the supplied deployment description to the system. |
updateGlobalTruststore | POST /cm/commands/updateGlobalTruststore | Add/remove certificates to the Auto-TLS certificate truststore. |
updateLicense | POST /cm/license | Updates the Cloudera Manager license. |
ApiConfigPolicy addConfigPolicy(body)
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiConfigPolicy body = new ApiConfigPolicy(); // ApiConfigPolicy |
try {
ApiConfigPolicy result = apiInstance.addConfigPolicy(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#addConfigPolicy");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiConfigPolicy | [optional] |
ApiCommand addCustomCerts(body)
Add custom certificates to the Auto-TLS certificate database.
Add custom certificates to the Auto-TLS certificate database
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiAddCustomCertsArguments body = new ApiAddCustomCertsArguments(); // ApiAddCustomCertsArguments |
try {
ApiCommand result = apiInstance.addCustomCerts(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#addCustomCerts");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiAddCustomCertsArguments | [optional] |
beginTrial()
Begin trial license.
Begin trial license.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
apiInstance.beginTrial();
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#beginTrial");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
ApiCommand clustersPerfInspectorCommand(body)
Run performance diagnostics test against specified clusters in ApiClustersPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator.
Run performance diagnostics test against specified clusters in ApiClustersPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiClustersPerfInspectorArgs body = new ApiClustersPerfInspectorArgs(); // ApiClustersPerfInspectorArgs | Required arguments for the command. See ApiClustersPerfInspectorArgs.
try {
ApiCommand result = apiInstance.clustersPerfInspectorCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#clustersPerfInspectorCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiClustersPerfInspectorArgs | Required arguments for the command. See ApiClustersPerfInspectorArgs. | [optional] |
ApiCommand collectDiagnosticDataCommand(body)
Collect diagnostic data from hosts managed by Cloudera Manager.
Collect diagnostic data from hosts managed by Cloudera Manager.
After the command has completed, the ApiCommand will contain a resultDataUrl from where you can download the result.
Only available with Cloudera Manager Enterprise Edition.// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiCollectDiagnosticDataArguments body = new ApiCollectDiagnosticDataArguments(); // ApiCollectDiagnosticDataArguments | The command arguments.
try {
ApiCommand result = apiInstance.collectDiagnosticDataCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#collectDiagnosticDataCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiCollectDiagnosticDataArguments | The command arguments. | [optional] |
ApiConfigPolicy deleteConfigPolicy(name)
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String name = "name_example"; // String |
try {
ApiConfigPolicy result = apiInstance.deleteConfigPolicy(name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#deleteConfigPolicy");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | [optional] |
ApiCommand deleteCredentialsCommand(deleteCredentialsMode)
Delete existing Kerberos credentials.
Delete existing Kerberos credentials.
This command will affect all services that have been configured to use Kerberos, and have existing credentials. In V18 this takes a new paramater to determine whether it needs to delete all credentials or just unused ones.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String deleteCredentialsMode = "all"; // String | this can be set to \"all\" or \"unused\"
try {
ApiCommand result = apiInstance.deleteCredentialsCommand(deleteCredentialsMode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#deleteCredentialsCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
deleteCredentialsMode | String | this can be set to "all" or "unused" | [optional] [default to all] |
ApiCmServerList deleteInstances(body)
Remove a list of cm servers from ha cluster.
Remove a list of cm servers from ha cluster.
Available since API v49. Removes instances of cm server.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiStringList body = new ApiStringList(); // ApiStringList |
try {
ApiCmServerList result = apiInstance.deleteInstances(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#deleteInstances");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiStringList | [optional] |
ApiCommand disableCsp()
Disables the CSP by setting csp type to "none", only when currently the csp type is either "embedded" or "vault".
Disables the CSP by setting csp type to "none", only when currently the csp type is either "embedded" or "vault". This will decrypt the encrypted configurations and disable the use of Credential Storage Provider.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.disableCsp();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#disableCsp");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand enableCsp(body)
Enables the CSP by setting csp type to "vault" or "embedded" as chosen by the user.
Enables the CSP by setting csp type to "vault" or "embedded" as chosen by the user.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiEnableCspArguments body = new ApiEnableCspArguments(); // ApiEnableCspArguments |
try {
ApiCommand result = apiInstance.enableCsp(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#enableCsp");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiEnableCspArguments | [optional] |
endTrial()
End trial license.
End trial license.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
apiInstance.endTrial();
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#endTrial");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
ApiCommand generateCmca(body)
Generate a CMCA.
Generate a CMCA
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiGenerateCmcaArguments body = new ApiGenerateCmcaArguments(); // ApiGenerateCmcaArguments |
try {
ApiCommand result = apiInstance.generateCmca(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#generateCmca");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiGenerateCmcaArguments | [optional] |
ApiCommand generateCredentialsAdhoc(body)
Generate missing Kerberos credentials, optionally accepting a list of ad-hoc credentials to generate as well.
Generate missing Kerberos credentials, optionally accepting a list of ad-hoc credentials to generate as well.
This command will affect all services that have been configured to use Kerberos, and haven't had their credentials generated yet.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiPrincipalList body = new ApiPrincipalList(); // ApiPrincipalList |
try {
ApiCommand result = apiInstance.generateCredentialsAdhoc(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#generateCredentialsAdhoc");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiPrincipalList | [optional] |
ApiCommand generateCredentialsCommand()
Generate missing Kerberos credentials.
Generate missing Kerberos credentials.
This command will affect all services that have been configured to use Kerberos, and haven't had their credentials generated yet.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.generateCredentialsCommand();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#generateCredentialsCommand");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand generateUsageReport(body, sendReportToCloudera)
Generate Usage reports for clusters.
Generate Usage reports for clusters
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiClusterNameList body = new ApiClusterNameList(); // ApiClusterNameList | cluster names to generate usage reports for. By default will generate for all clusters.
Boolean sendReportToCloudera = false; // Boolean | true/false, automatically send the generated reports to Cloudera or not
try {
ApiCommand result = apiInstance.generateUsageReport(body, sendReportToCloudera);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#generateUsageReport");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiClusterNameList | cluster names to generate usage reports for. By default will generate for all clusters. | [optional] |
sendReportToCloudera | Boolean | true/false, automatically send the generated reports to Cloudera or not | [optional] [default to false] |
ApiClusterSupportTokenList getClusterSupportTokenList()
Gets the support tokens for all the clusters.
Gets the support tokens for all the clusters.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiClusterSupportTokenList result = apiInstance.getClusterSupportTokenList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getClusterSupportTokenList");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiConfigList getConfig(view)
Retrieve the Cloudera Manager settings.
Retrieve the Cloudera Manager settings.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String view = "summary"; // String | The view to materialize, either \"summary\" or \"full\".
try {
ApiConfigList result = apiInstance.getConfig(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getConfig");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | The view to materialize, either "summary" or "full". | [optional] [default to summary] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, FULL_WITH_NO_HEALTH_CHECK, SUMMARY] |
List<ApiConfigPolicy> getConfigPolicies()
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
List<ApiConfigPolicy> result = apiInstance.getConfigPolicies();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getConfigPolicies");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiDeployment2 getDeployment2(view)
Retrieve full description of the entire Cloudera Manager deployment including all hosts, clusters, services, roles, users, settings, etc.
Retrieve full description of the entire Cloudera Manager deployment including all hosts, clusters, services, roles, users, settings, etc.
This object can be used to reconstruct your entire deployment Note: Only users with sufficient privileges are allowed to call this.// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String view = "export"; // String | May be one of \"export\" (default) or \"export_redacted\". The latter replaces configurations that are sensitive with the word \"REDACTED\". Other filter options are not supported.
try {
ApiDeployment2 result = apiInstance.getDeployment2(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getDeployment2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | May be one of "export" (default) or "export_redacted". The latter replaces configurations that are sensitive with the word "REDACTED". Other filter options are not supported. | [optional] [default to export] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, FULL_WITH_NO_HEALTH_CHECK, SUMMARY] |
ApiKerberosInfo getKerberosInfo()
Provides Cloudera Manager Kerberos information.
Provides Cloudera Manager Kerberos information
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiKerberosInfo result = apiInstance.getKerberosInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getKerberosInfo");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiPrincipalList getKerberosPrincipals(missingOnly)
Returns the Kerberos principals needed by the services being managed by Cloudera Manager.
Returns the Kerberos principals needed by the services being managed by Cloudera Manager.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
Boolean missingOnly = true; // Boolean | Whether to include only those principals which do not already exist in Cloudera Manager's database.
try {
ApiPrincipalList result = apiInstance.getKerberosPrincipals(missingOnly);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getKerberosPrincipals");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
missingOnly | Boolean | Whether to include only those principals which do not already exist in Cloudera Manager's database. | [optional] |
File getKrb5Conf()
Retrieves krb5.
Retrieves krb5.conf of the CM server host
Available since API v41.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
File result = apiInstance.getKrb5Conf();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getKrb5Conf");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiLicensedFeatureUsage getLicensedFeatureUsage()
Retrieve a summary of licensed feature usage.
Retrieve a summary of licensed feature usage.
This command will return information about what Cloudera Enterprise licensed features are in use in the clusters being managed by this Cloudera Manager, as well as totals for usage across all clusters. The specific features described can vary between different versions of Cloudera Manager. Available since API v6.// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiLicensedFeatureUsage result = apiInstance.getLicensedFeatureUsage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getLicensedFeatureUsage");
e.printStackTrace();
}
This endpoint does not need any parameter.
String getLog()
Returns the entire contents of the Cloudera Manager log file.
Returns the entire contents of the Cloudera Manager log file
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
String result = apiInstance.getLog();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getLog");
e.printStackTrace();
}
This endpoint does not need any parameter.
String
ApiScmDbInfo getScmDbInfo()
Provides Cloudera Manager server's database information.
Provides Cloudera Manager server's database information
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiScmDbInfo result = apiInstance.getScmDbInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getScmDbInfo");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiShutdownReadiness getShutdownReadiness(lastActivityTime)
Retrieve Cloudera Manager's readiness for shutdown and destroy.
Retrieve Cloudera Manager's readiness for shutdown and destroy. Applications that wish to destroy Cloudera Manager and its managed cluster should poll this API, repeatedly if necessary, to respect its readiness.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String lastActivityTime = "lastActivityTime_example"; // String | End time of the last known activity/workload against the managed clusters, in ISO 8601 format.
try {
ApiShutdownReadiness result = apiInstance.getShutdownReadiness(lastActivityTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getShutdownReadiness");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
lastActivityTime | String | End time of the last known activity/workload against the managed clusters, in ISO 8601 format. | [optional] |
List<String> getUsageReport()
Retrieve the latest generated Usage reports for all clusters.
Retrieve the latest generated Usage reports for all clusters
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
List<String> result = apiInstance.getUsageReport();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getUsageReport");
e.printStackTrace();
}
This endpoint does not need any parameter.
List<String>
ApiVersionInfo getVersion()
Provides version information of Cloudera Manager itself.
Provides version information of Cloudera Manager itself.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiVersionInfo result = apiInstance.getVersion();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#getVersion");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand hostInstallCommand(body)
Perform installation on a set of hosts.
Perform installation on a set of hosts.
This command installs Cloudera Manager Agent on a set of hosts. Available since API v6.// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostInstallArguments body = new ApiHostInstallArguments(); // ApiHostInstallArguments | Hosts to perform installation on
try {
ApiCommand result = apiInstance.hostInstallCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostInstallCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostInstallArguments | Hosts to perform installation on | [optional] |
ApiCommand hostsDecommissionCommand(body)
Decommission the given hosts.
Decommission the given hosts. All slave roles on the hosts will be decommissioned. All other roles will be stopped.
To offline by Upgrade Domain, use the “upgradeDomains” endpoint from the clusters resource to get the list of host names that belong in each Upgrade Domain. Available since API v40.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList |
try {
ApiCommand result = apiInstance.hostsDecommissionCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsDecommissionCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | [optional] |
ApiCommand hostsOfflineOrDecommissionCommand(body, offlineTimeout)
Decommission the given hosts.
Decommission the given hosts. All slave roles on the hosts will be offlined or decommissioned with preference being offlined if supported by the service.
Currently the offline operation is only supported by HDFS, where the offline operation will put DataNodes into HDFS IN MAINTENANCE state which prevents unnecessary re-replication which could occur if decommissioned.
All other roles on the hosts will be stopped.
The offlineTimeout parameter is used to specify a timeout for offline. For HDFS, when the timeout expires, the DataNode will automatically transition out of HDFS IN MAINTENANCE state, back to HDFS IN SERVICE state.
To offline or decommission by Upgrade Domain, use the “upgradeDomains” endpoint from the clusters resource to get the list of host names that belong in each Upgrade Domain. Available since API v40.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList | list of host names to decommission.
java.math.BigDecimal offlineTimeout = new java.math.BigDecimal(); // java.math.BigDecimal | offline timeout in seconds. Specify as null to get the default timeout (4 hours). Ignored if service does not support he offline operation.
try {
ApiCommand result = apiInstance.hostsOfflineOrDecommissionCommand(body, offlineTimeout);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsOfflineOrDecommissionCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | list of host names to decommission. | [optional] |
offlineTimeout | java.math.BigDecimal | offline timeout in seconds. Specify as null to get the default timeout (4 hours). Ignored if service does not support he offline operation. | [optional] |
ApiCommand hostsPerfInspectorCommand(body)
Run performance diagnostics test against specified hosts in ApiHostsPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator.
Run performance diagnostics test against specified hosts in ApiHostsPerfInspectorArgs User must be Full Administrator or Global Cluster Administrator.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostsPerfInspectorArgs body = new ApiHostsPerfInspectorArgs(); // ApiHostsPerfInspectorArgs | Required arguments for the command. See ApiHostsPerfInspectorArgs.
try {
ApiCommand result = apiInstance.hostsPerfInspectorCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsPerfInspectorCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostsPerfInspectorArgs | Required arguments for the command. See ApiHostsPerfInspectorArgs. | [optional] |
ApiCommand hostsRecommissionAndExitMaintenanceModeCommand(body, recommissionType)
Recommission and exit maintenance on the given hosts.
Recommission and exit maintenance on the given hosts. The recommission step may optionally start roles as well.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList |
String recommissionType = "recommission"; // String |
try {
ApiCommand result = apiInstance.hostsRecommissionAndExitMaintenanceModeCommand(body, recommissionType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsRecommissionAndExitMaintenanceModeCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | [optional] | |
recommissionType | String | [optional] [default to recommission] [enum: RECOMMISSION, RECOMMISSION_WITH_START] |
ApiCommand hostsRecommissionCommand(body)
Recommission the given hosts.
Recommission the given hosts. All slave roles on the hosts will be recommissioned. Roles are not started after this command. Use hostsStartRoles command for that.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList |
try {
ApiCommand result = apiInstance.hostsRecommissionCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsRecommissionCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | [optional] |
ApiCommand hostsRecommissionWithStartCommand(body)
Recommission the given hosts.
Recommission the given hosts. If slave roles support start when decommissioned, start those roles before recommission. All slave roles on the hosts will be recommissioned. Warning: Evolving. This method may change in the future and does not offer standard compatibility guarantees. Recommission the given hosts. If possible, start those roles before recommission. All slave roles on the hosts will be recommissioned. Do not use without guidance from Cloudera. Currently, only HDFS DataNodes will be started by this command.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList |
try {
ApiCommand result = apiInstance.hostsRecommissionWithStartCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsRecommissionWithStartCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | [optional] |
ApiCommand hostsRepairRolesCommand(body)
Execute repair command on the given hosts.
Execute repair command on the given hosts.
Available since API v51. Repairs roles on the given hosts.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList | list of hosts
try {
ApiCommand result = apiInstance.hostsRepairRolesCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsRepairRolesCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | list of hosts | [optional] |
ApiCommand hostsStartRolesCommand(body)
Start all the roles on the given hosts.
Start all the roles on the given hosts.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList |
try {
ApiCommand result = apiInstance.hostsStartRolesCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsStartRolesCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | [optional] |
ApiCommand hostsStopRolesCommand(body)
Stop all the roles on the given hosts.
Stop all the roles on the given hosts.
Available since API v51. Stops roles on the given hosts.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiHostNameList body = new ApiHostNameList(); // ApiHostNameList | list of hosts
try {
ApiCommand result = apiInstance.hostsStopRolesCommand(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#hostsStopRolesCommand");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiHostNameList | list of hosts | [optional] |
ApiCommand importAdminCredentials(password, username)
Imports the KDC Account Manager credentials needed by Cloudera Manager to create kerberos principals needed by CDH services.
Imports the KDC Account Manager credentials needed by Cloudera Manager to create kerberos principals needed by CDH services.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String password = "password_example"; // String | Password for the Account Manager. return Information about the submitted command.
String username = "username_example"; // String | Username of the Account Manager. Full name including the Kerberos realm must be specified.
try {
ApiCommand result = apiInstance.importAdminCredentials(password, username);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#importAdminCredentials");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
password | String | Password for the Account Manager. return Information about the submitted command. | [optional] |
username | String | Username of the Account Manager. Full name including the Kerberos realm must be specified. | [optional] |
ApiCommand importClusterTemplate(body, addRepositories)
Create cluster as per the given cluster template.
Create cluster as per the given cluster template
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiClusterTemplate body = new ApiClusterTemplate(); // ApiClusterTemplate | cluster template
Boolean addRepositories = false; // Boolean | if true the parcels repositories in the cluster template will be added.
try {
ApiCommand result = apiInstance.importClusterTemplate(body, addRepositories);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#importClusterTemplate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiClusterTemplate | cluster template | [optional] |
addRepositories | Boolean | if true the parcels repositories in the cluster template will be added. | [optional] [default to false] |
ApiCommand importKerberosPrincipal(kvno, password, principal)
Imports the Kerberos credentials for the specified principal which can then be used to add to a role's keytab by running Generate Credentials command.
Imports the Kerberos credentials for the specified principal which can then be used to add to a role's keytab by running Generate Credentials command.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
java.math.BigDecimal kvno = new java.math.BigDecimal(); // java.math.BigDecimal | Key-version number of the password. return Information about the submitted command.
String password = "password_example"; // String | Password for the Kerberos principal. Cloudera Manager will encrypt the principal and password and use it when needed for a daemon.
String principal = "principal_example"; // String | Name of the principal. Full name including the Kerberos realm must be specified. If it already exists, it will be overwritten.
try {
ApiCommand result = apiInstance.importKerberosPrincipal(kvno, password, principal);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#importKerberosPrincipal");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
kvno | java.math.BigDecimal | Key-version number of the password. return Information about the submitted command. | [optional] |
password | String | Password for the Kerberos principal. Cloudera Manager will encrypt the principal and password and use it when needed for a daemon. | [optional] |
principal | String | Name of the principal. Full name including the Kerberos realm must be specified. If it already exists, it will be overwritten. | [optional] |
ApiCommand inspectHostsCommand()
Runs the host inspector on the configured hosts.
Runs the host inspector on the configured hosts.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.inspectHostsCommand();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#inspectHostsCommand");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommandList listActiveCommands(view)
List active global commands.
List active global commands.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String view = "summary"; // String | The view of the data to materialize, either \"summary\" or \"full\".
try {
ApiCommandList result = apiInstance.listActiveCommands(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#listActiveCommands");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | The view of the data to materialize, either "summary" or "full". | [optional] [default to summary] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, FULL_WITH_NO_HEALTH_CHECK, SUMMARY] |
String listAllGeneratedUsageReports()
retrieve all generated cluster usage reports currently on disk.
retrieve all generated cluster usage reports currently on disk
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
String result = apiInstance.listAllGeneratedUsageReports();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#listAllGeneratedUsageReports");
e.printStackTrace();
}
This endpoint does not need any parameter.
String
ApiCommand migrateCmcaToDb()
Migrate CMCA to the DB.
Migrate CMCA to the DB
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.migrateCmcaToDb();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#migrateCmcaToDb");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCmServer readInstance(cmServerId)
Retrieves the CM server information.
Retrieves the CM server information.
Available since API v41.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
String cmServerId = "cmServerId_example"; // String | The CM server ID.
try {
ApiCmServer result = apiInstance.readInstance(cmServerId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#readInstance");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
cmServerId | String | The CM server ID. |
ApiCmServerList readInstances()
Retrieves all CM server information.
Retrieves all CM server information.
Available since API v41.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCmServerList result = apiInstance.readInstances();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#readInstances");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiLicense readLicense()
Retrieve information about the Cloudera Manager license.
Retrieve information about the Cloudera Manager license.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiLicense result = apiInstance.readLicense();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#readLicense");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand refreshParcelRepos()
.
Submit a command to refresh parcels information.
This API could be used following two scenarios.
- User updated Cloudera Manager's local parcel repository.
- User updated remote parcel locations.
User wants to invoke this API to make sure that Cloudera Manager gets latest parcels information. User can then monitor the returned command before proceeding to the next step.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.refreshParcelRepos();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#refreshParcelRepos");
e.printStackTrace();
}
This endpoint does not need any parameter.
File retrieveKeytab(body)
Retrieves a keytab for a list of principals.
Retrieves a keytab for a list of principals. The principals must already exist.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiPrincipalList body = new ApiPrincipalList(); // ApiPrincipalList |
try {
File result = apiInstance.retrieveKeytab(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#retrieveKeytab");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiPrincipalList | [optional] |
ApiCommand rotateCspKeys()
Perform rotation of the CSP key.
Perform rotation of the CSP key. The previously encrypted text will be decrypted using the older key. Then It will be re-encrypted using the new CSP key.The new encrypted text will be stored in the database.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.rotateCspKeys();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#rotateCspKeys");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand sendUsageReport()
Send Usage reports for clusters to cloudera ops.
Send Usage reports for clusters to cloudera ops
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
try {
ApiCommand result = apiInstance.sendUsageReport();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#sendUsageReport");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand testExternalAuthentication(body)
Launches a command to test the currently configured external authentication.
Launches a command to test the currently configured external authentication
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiTestCmExternalAuthArguments body = new ApiTestCmExternalAuthArguments(); // ApiTestCmExternalAuthArguments |
try {
ApiCommand result = apiInstance.testExternalAuthentication(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#testExternalAuthentication");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiTestCmExternalAuthArguments | [optional] |
ApiConfigList updateConfig(body, message)
Update the Cloudera Manager settings.
Update the Cloudera Manager settings.
If a value is set in the given configuration, it will be added to the manager's settings, replacing any existing entry. If a value is unset (its value is null), the existing the setting will be erased.
Settings that are not listed in the input will maintain their current values.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiConfigList body = new ApiConfigList(); // ApiConfigList | Settings to update.
String message = "message_example"; // String | Optional message describing the changes.
try {
ApiConfigList result = apiInstance.updateConfig(body, message);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#updateConfig");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiConfigList | Settings to update. | [optional] |
message | String | Optional message describing the changes. | [optional] |
ApiCommand updateCspType(body)
Updates the CSP type from previous csp type to new csp type, by copying the key_id (used for encryption of configs) from previous csp type to new csp type or from one location to another in same CSP type.
Updates the CSP type from previous csp type to new csp type, by copying the key_id (used for encryption of configs) from previous csp type to new csp type or from one location to another in same CSP type.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiUpdateCspTypeArguments body = new ApiUpdateCspTypeArguments(); // ApiUpdateCspTypeArguments |
try {
ApiCommand result = apiInstance.updateCspType(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#updateCspType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiUpdateCspTypeArguments | [optional] |
ApiDeployment2 updateDeployment2(body, deleteCurrentDeployment)
Apply the supplied deployment description to the system.
Apply the supplied deployment description to the system. This will create the clusters, services, hosts and other objects specified in the argument. This call does not allow for any merge conflicts. If an entity already exists in the system, this call will fail. You can request, however, that all entities in the system are deleted before instantiating the new ones.
You may specify a complete or partial deployment, e.g. you can provide host info with no clusters. However, if you request that the current deployment be deleted, you are required to specify at least one admin user or this call will fail. This is to protect you from creating a system that cannot be logged into again. If there are any errors creating (or optionally deleting) a deployment, all changes will be rolled back leaving the system exactly as it was before calling this method. The system will never be left in a state where part of the deployment is created and other parts are not. If the submitted deployment contains entities that require Cloudera Enterprise license, then the license should be provided to Cloudera Manager before making this API call.// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiDeployment2 body = new ApiDeployment2(); // ApiDeployment2 | The deployment to create
Boolean deleteCurrentDeployment = false; // Boolean | If true, the current deployment is deleted before the specified deployment is applied
try {
ApiDeployment2 result = apiInstance.updateDeployment2(body, deleteCurrentDeployment);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#updateDeployment2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiDeployment2 | The deployment to create | [optional] |
deleteCurrentDeployment | Boolean | If true, the current deployment is deleted before the specified deployment is applied | [optional] [default to false] |
ApiCommand updateGlobalTruststore(body)
Add/remove certificates to the Auto-TLS certificate truststore.
Add/remove certificates to the Auto-TLS certificate truststore
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
ApiUpdateGlobalTruststoreArguments body = new ApiUpdateGlobalTruststoreArguments(); // ApiUpdateGlobalTruststoreArguments |
try {
ApiCommand result = apiInstance.updateGlobalTruststore(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#updateGlobalTruststore");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiUpdateGlobalTruststoreArguments | [optional] |
ApiLicense updateLicense(license)
Updates the Cloudera Manager license.
Updates the Cloudera Manager license.
After a new license is installed, the Cloudera Manager needs to be restarted for the changes to take effect.
The license file should be uploaded using a request with content type "multipart/form-data", instead of being encoded into a JSON representation.
// 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.ClouderaManagerResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ClouderaManagerResourceApi apiInstance = new ClouderaManagerResourceApi();
File license = new File("license_example"); // File |
try {
ApiLicense result = apiInstance.updateLicense(license);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClouderaManagerResourceApi#updateLicense");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
license | File | [optional] |