Viewing Running and Recent Commands
Viewing Running and Recent Commands For a Cluster
The indicator positioned just to the left of the Search field on the right side of the Admin Console main navigation bar displays the number of commands currently running for all services or roles. To display the running commands, click the indicator.
- Click the All Recent Commands button in the window that pops up when you click the indicator. This command displays information on all running and recent commands in the same form, as described below.
- Click the Cloudera Manager logo in the main navigation bar and click the All Recent Commands tab.
Select a value from the pager to control how many commands are listed, or click the arrows to view pages.
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 specified, across all your managed clusters.
Viewing Running and Recent Commands for a Service or Role
For a selected service or role instance, the Commands tab shows which 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 directories, started the HDFS role instances (the NameNode, Secondary NameNode, and DataNode instances), and the command that initially formatted HDFS on the NameNode. This information is useful if a service or role seems to be taking a long time to start up or shut down, or if 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.
- Click the Clusters tab on the top navigation bar.
- Click the service name to go to the Status tab for that service.
- For a role instance, click the Instances tab and select the role instance name to go to its Status tab.
- Click the Commands tab.
Command Details
The details available for a command depend on whether the command is running or recently completed.
Running Commands
The Running Commands area shows commands that are in progress.
While the status of the command is In Progress, an Abort button displays so that you can abort the command if necessary.
The Commands status information is updated automatically while the command is running.
After the command has finished running (all its subcommands have finished), the status is updated, the Abort buttons disappear, and the information for Recent Commands appears as described below.
Recent Commands
The Recent Commands area shows commands that were run and finished within the search time range you specified.
If no commands were run during the selected time range, you can double the time range selection by clicking the Try expanding the time range selection link. 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 options described in Time Line.
Select a value from the pager to control how many commands are listed, or click the arrows to view pages.
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, multiple subcommands result from the top level command.
The First Run command runs during the initial startup of your cluster. Click this link to view the command history of the cluster startup.
Command Details
In the Running Commands dialog box or Recent Commands page, click a command in the Command column to display its details and any subcommands. The page title is the name of the command.
- The current status
- The context, which can be a cluster, service, host, or role
- The time the command started
- The duration of the command
- A message about the command completion
- If the context is a role, links to role instance logs
The Details section shows how many steps, if any, the selected command has and lists any subcommands.
Expand a command to view subcommands. In the Running Commands dialog box, each subcommand also has an Abort button that is present as long as the subcommand is in progress.
- Select the option to display all the subcommands or only failed or running commands.
- 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 is related.
- Click a Role Log tab to display the log for that role, and stdout and stderr if available for the role.