public interface ClouderaManagerResource
Modifier and Type | Method and Description |
---|---|
ApiCommand |
collectDiagnosticDataCommand(ApiCollectDiagnosticDataArguments args)
Collect diagnostic data from hosts managed by Cloudera Manager.
|
ApiCommand |
generateCredentialsCommand()
Generate missing Kerberos credentials.
|
ApiConfigList |
getConfig(DataView dataView)
Retrieve the Cloudera Manager settings.
|
InputStream |
getLog()
Returns the entire contents of the Cloudera Manager log file
|
MgmtServiceResource |
getMgmtServiceResource()
Return the Cloudera Management Services resource.
|
ApiVersionInfo |
getVersion()
Provides version information of Cloudera Manager itself.
|
ApiCommand |
inspectHostsCommand()
Runs the host inspector on the configured hosts.
|
ApiCommandList |
listActiveCommands(DataView dataView)
List active global commands.
|
ApiLicense |
readLicense()
Retrieve information about the Cloudera Manager license.
|
ApiConfigList |
updateConfig(ApiConfigList config)
Update the Cloudera Manager settings.
|
ApiLicense |
updateLicense(byte[] license)
Updates the Cloudera Manager license.
|
ApiConfigList getConfig(DataView dataView)
dataView
- The view to materialize, either "summary" or "full".ApiConfigList updateConfig(ApiConfigList config)
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.
config
- Settings to update.ApiLicense readLicense()
ApiLicense updateLicense(byte[] 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.
license
- The license file to install.ApiCommandList listActiveCommands(DataView dataView)
dataView
- The view of the data to materialize,
either "summary" or "full".ApiCommand generateCredentialsCommand()
This command will affect all services that have been configured to use Kerberos, and haven't had their credentials generated yet.
ApiCommand inspectHostsCommand()
MgmtServiceResource getMgmtServiceResource()
ApiCommand collectDiagnosticDataCommand(ApiCollectDiagnosticDataArguments args)
After the command has completed, the ApiCommand
will contain a
resultDataUrl from where you can download the result.
args
- The command arguments.ApiVersionInfo getVersion()
InputStream getLog() throws IOException
IOException
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.