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.
|
@Path(value="/config") ApiConfigList getConfig(DataView dataView)
dataView
- The view to materialize, either "summary" or "full".@Path(value="/config") 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.@Path(value="/license") ApiLicense readLicense()
@Path(value="/license") 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.@Path(value="/commands") ApiCommandList listActiveCommands(DataView dataView)
dataView
- The view of the data to materialize,
either "summary" or "full".@Path(value="/commands/generateCredentials") ApiCommand generateCredentialsCommand()
This command will affect all services that have been configured to use Kerberos, and haven't had their credentials generated yet.
@Path(value="/commands/inspectHosts") ApiCommand inspectHostsCommand()
@Path(value="/service") MgmtServiceResource getMgmtServiceResource()
@Path(value="/commands/collectDiagnosticData") 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.@Path(value="version") ApiVersionInfo getVersion()
@Path(value="/log") InputStream getLog()
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.