This is the documentation for Cloudera Manager 4.8.3.
Documentation for other versions is available at Cloudera Documentation.

Viewing Running and Recent Commands

Viewing Running Commands

In the Admin Console main navigation bar there is an indicator positioned just to the left of the Search field at the right hand side () that shows the number of commands currently running in your cluster (if any). Unlike the Commands tab for a role or service, this indicator includes all commands running for all services or roles in the cluster. Click this indicator to view a list of all commands currently running in your cluster.

From the window that pops up you can click the All Recent Commands button to view all commands that have run and finished recently. This command displays information on all running and recent commands in the same form as described below in Running Commands and Recent Commands.

If you are managing multiple clusters, the command indicator shows the number of commands running on all clusters you are managing. Likewise, All Recent Commands shows all commands that were run and finished within the search time range you've specified, across all your managed clusters.

Viewing Recent and Running Commands

To view recent and running commands across the cluster, click the Home link in the Admin Console main navigation bar and click the All Recent Commands tab.

Viewing Recent and Running Commands for a Specific Service or Role

For a selected service or role instance, the Commands tab lets you view what commands are running or have been run for that instance, and what the status, progress, and results are.

For example, if you go to the HDFS service shortly after you have installed your cluster and look at the Commands tab, you will see recent commands that created the needed directories, started the HDFS role instances (the NameNode, Secondary NameNode and DataNode instances) and even the command that initially formatted HDFS on the NameNode.

This may be particularly useful if a service or role seems to be taking a long time to start up or shut down, or if certain services or roles are not running or do not appear to have been started correctly. You can view both the status and progress of currently running commands, as well as the status and results of commands run in the past.

To view the commands running or have run for a service or role instance:

  1. Click the Services tab on the top navigation bar.
  2. Click the service name to go to the Status tab for that service.
  3. For a role, click the Instances tab and select the role instance name to go its Status tab.
  4. Click the Commands tab.

Running Commands

The Running Commands area shows commands that are currently in progress.

If a command is running, the Command Details section at the top shows:

  • The command
  • The Context or Parent command if relevant.
  • The time that the command was started
  • A progress indicator

While the command is In Progress, an Abort Command button will be present so that you can abort the command if necessary.

If the command generates subcommands, this is indicated; click the command link to display the subcommands in a Child Commands section as they are started. Each child command also has an Abort button that is present as long as the subcommand is in progress.

The Commands status information is updated automatically while the command is running.

Once the command has finished running (all its subcommands have finished), the status is updated, the Abort buttons disappear, and the information appears as described below for other Recent Commands.

Recent Commands

Recent Commands shows commands that were run and finished within the search time range you've specified.

If no commands were run during the selected time range, you can click the Try expanding the time range selection link. Each time you click the link it doubles the time range selection. If you are in the "current time" mode, the beginning time will move; if you are looking at a time range in the past, both the beginning and ending times of the range are changed. You can also change the time range using the preset time ranges at the right side of the page, the Time Range Selector, or the Custom Time Range panel (see Selecting a Time Range). Each entry shows:

  • The command (and how many subcommands, if any, it has)
  • The time at which it was started
  • Its current status (progress)
  • The command result message.

Commands are shown with the most recent ones at the top.

The icon associated with the status (which typically includes the time that the command finished) plus the result message tells you whether the command succeeded or failed. If the command failed, it indicates if it was one of the subcommands that actually failed. In many cases, there may be multiple subcommands that result from the top level command. Click a command in the Recent Commands list to display its command details, and its child commands (subcommands), if there are any.

  • The Command Details section at the top shows information about the command; its start and end times, its progress (status), and a link to its parent command. The information includes:
    • The Context, which may be a cluster, service, a host, or a role
    • The time at which it was started
    • Its current status (progress)
    • The time the command completed.

You can use the Parent link near the top of the page to return to the parent command's details.

  Note: If the parent is First Run, this indicates that this command was run as part of the initial startup of your cluster. Clicking on this link takes you to the command history for the startup of your cluster.

If the command included multiple steps, a Command Progress section may appear showing the steps within the command and whether they succeeded.

  • The Child Commands section lists any subcommands of the selected command. This section includes:
    • The Context, which may be a cluster, service, a host, or a role
    • The time at which it was started
    • Its current status, including timestamp
    • A result message
  • Click the Command link to display further command details (and any subcommands) of this command. You can continue to drill down through a tree of subcommands this way.
  • Click the link in the Context column to go to the Status page for the component (host, service or role instance) to which this command was related.