- Home
- Resources
- CommandsResource
GET /commands/{commandId}
Retrieve detailed information on an asynchronous command.
Cloudera Manager keeps the results and statuses of asynchronous
commands, which have non-negative command IDs. On the other hand,
synchronous commands complete immediately, and their results are passed
back in the return object of the command execution API call.
Outside of that return object, there is no way to check the result
of a synchronous command.
Request Parameters
name |
type |
description |
default |
commandId |
path |
The command id. |
n/a |
Response Body
media type |
data type |
description |
application/json |
ApiCommand
(JSON) |
Detailed command information. |
POST /commands/{commandId}/abort
Abort a running command.
Request Parameters
name |
type |
description |
default |
commandId |
path |
The command id. |
n/a |
Response Body
media type |
data type |
description |
application/json |
ApiCommand
(JSON) |
Detailed command information. |
POST /commands/{commandId}/retry
Try to rerun a command.
Request Parameters
name |
type |
description |
default |
commandId |
path |
ID of the command that needs to be run. |
n/a |
Response Body
media type |
data type |
description |
application/json |
ApiCommand
(JSON) |
Command that represents the retry attempt. |
GET /commands/{commandId}/logs/stderr
Download a zip-compressed archive of standard error outputs for the command's one-off processes.
Log files are returned zipped together.
Request Parameters
name |
type |
description |
default |
commandId |
path |
The command id. |
n/a |
Response Body
media type |
data type |
description |
application/octet-stream |
object
|
Contents of the role's standard output. |
GET /commands/{commandId}/logs/stdout
Download a zip-compressed archive of standard outputs for the command's one-off processes.
Log files are returned zipped together.
Request Parameters
name |
type |
description |
default |
commandId |
path |
The command id. |
n/a |
Response Body
media type |
data type |
description |
application/octet-stream |
object
|
Contents of the role's standard output. |