CommandsResource Resource

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.