Cloudera Operation
Cloudera Operation
Important Notice
Cloudera, the Cloudera logo, Cloudera Impala, and any other product or service
names or slogans contained in this document are trademarks of Cloudera and its
suppliers or licensors, and may not be copied, imitated or used, in whole or in part,
without the prior written permission of Cloudera or the applicable trademark holder.
Hadoop and the Hadoop elephant logo are trademarks of the Apache Software
Foundation. All other trademarks, registered trademarks, product names and
company names or logos mentioned in this document are the property of their
respective owners. Reference to any products, services, processes or other
information, by trade name, trademark, manufacturer, supplier or otherwise does
not constitute or imply endorsement, sponsorship or recommendation thereof by
us.
Complying with all applicable copyright laws is the responsibility of the user. Without
limiting the rights under copyright, no part of this document may be reproduced,
stored in or introduced into a retrieval system, or transmitted in any form or by any
means (electronic, mechanical, photocopying, recording, or otherwise), or for any
purpose, without the express written permission of Cloudera.
Cloudera, Inc.
1001 Page Mill Road Bldg 2
Palo Alto, CA 94304
info@cloudera.com
US: 1-888-789-1488
Intl: 1-650-362-0488
www.cloudera.com
Release Information
Version: 5.4.x
Date: May 20, 2015
Table of Contents
Cloudera Operation | 5
Monitoring and Diagnostics
Introduction
Cloudera Manager provides many features for monitoring the health and performance of the components of
your clusters (hosts, service daemons) as well as the performance and resource demands of the jobs running
on your clusters. This guide has information on the following monitoring features:
• Monitoring Services on page 21 - describes how to view the results of health tests at both the service and
role instance level. Various types of metrics are displayed in charts that help with problem diagnosis. Health
tests include advice about actions you can take if the health of a component becomes concerning or bad.
You can also view the history of actions performed on a service or role, and can view an audit log of
configuration changes.
• Monitoring Hosts on page 34 - describes how to view information pertaining to all the hosts on your cluster:
which hosts are up or down, current resident and virtual memory consumption for a host, what role instances
are running on a host, which hosts are assigned to different racks, and so on. You can look at a summary
view for all hosts in your cluster or drill down for extensive details about an individual host, including charts
that provide a visual overview of key metrics on your host.
• Monitoring Activities on page 39 - describes how to view the activities running on the cluster, both at the
current time and through dashboards that show historical activity, and provides many statistics, both in
tabular displays and charts, about the resources used by individual jobs. You can compare the performance
of similar jobs and view the performance of individual task attempts across a job to help diagnose behavior
or performance problems.
• Events on page 60 - describes how to view events and make them available for alerting and for searching,
giving you a view into the history of all relevant events that occur cluster-wide. You can filter events by time
range, service, host, keyword, and so on.
• Alerts on page 62 - describes how to configure Cloudera Manager to generate alerts from certain events.
You can configure thresholds for certain types of events, enable and disable them, and configure alert
notifications by email or via SNMP trap for critical events. You can also suppress alerts temporarily for
individual roles, services, hosts, or even the entire cluster to allow system maintenance/troubleshooting
without generating excessive alert traffic.
• Audit Events on page 64 - describes how to view service, role, and host life cycle events such as creating a
role or service, making configuration revisions for a role or service, decommissioning and recommissioning
hosts, and running commands recorded by Cloudera Manager management services. You can filter audit
event entries by time range, service, host, keyword, and so on.
• Charting Time-Series Data on page 66 - describes how to search metric data, create charts of the data, group
(facet) the data, and save those charts to user-defined dashboards.
• Logs on page 92 - describes how to access logs in a variety of ways that take into account the current
context you are viewing. For example, when monitoring a service, you can easily click a single link to view
the log entries related to that specific service, through the same user interface. When viewing information
about a user's activity, you can easily view the relevant log entries that occurred on the hosts used by the
job while the job was running.
• Reports on page 94 - describes how to view historical information about disk utilization by user, user group,
and by directory and view cluster job activity user, group, or job ID. These reports are aggregated over selected
time periods (hourly, daily, weekly, and so on) and can be exported as XLS or CSV files. You can also manage
HDFS directories as well, including searching and setting quotas.
6 | Cloudera Operation
Monitoring and Diagnostics
• Troubleshooting Cluster Configuration and Operation on page 97 - contains solutions to some common
problems that prevent you from using Cloudera Manager and describes how to use Cloudera Manager log
and notification management tools to diagnose problems.
Time Line
The Time Line appears on many pages in Cloudera Manager. When you view the top level service and Hosts
tabs, the Time Line shows status and health only for a specific point in time. When you are viewing the Logs
and Events tabs, and when you are viewing the Status, Commands, Audits, Jobs, Applications, and Queries pages
of individual services, roles, and hosts, the Time Line appears as a Time Range Selector, which lets you highlight
a range of time over which to view historical data.
Click the ( ) icon at the far right to toggle the display of the Time Line.
Cloudera Manager displays timestamped data using the time zone of the host where Cloudera Manager server
is running. The time zone information can be found under the Support > About menu.
The background chart in the Time Line shows the percentage of CPU utilization on all hosts in the cluster, updated
at approximately one-minute intervals, depending on the total visible time range. You can use this graph to
identify periods of activity that may be of interest.
In the pages that support a time range selection, the area between the handles shows the selected time range.
There are a variety of ways to change the time range in this mode.
The Reports screen (Clusters > Reports) does not support the Time Range Selector: the historical reports accessed
from the Reports screen have their own time range selection mechanism.
Use the Zoom In and Zoom Out buttons ( and ) to zoom the time line graph in or out.
• Zoom In shows a shorter time period with more detailed interval segments. Zooming does not change your
selected time range. However, the ability to zoom the Time Line can make it easier to use the selector to
highlight a time range.
• Zoom Out lets you show a longer time period on the time range graph (with correspondingly less granular
segmentation).
Cloudera Operation | 7
Monitoring and Diagnostics
You can select the point in time in one of the following ways:
• By moving the Time Marker ( )
• When the Time Marker is set to a past time, you can quickly switch back to view the current time using the
Now button ( ).
•
By clicking the date , choosing the date and time, and clicking
Apply.
Health Tests
Cloudera Manager monitors the health of the services, roles, and hosts that are running in your clusters via
health tests. The Cloudera Management Service also provides health tests for its roles. Role-based health tests
are enabled by default. For example, a simple health test is whether there's enough disk space in every NameNode
data directory. A more complicated health test may evaluate when the last checkpoint for HDFS was compared
8 | Cloudera Operation
Monitoring and Diagnostics
to a threshold or whether a DataNode is connected to a NameNode. Some of these health tests also aggregate
other health tests: in a distributed system like HDFS, it's normal to have a few DataNodes down (assuming
you've got dozens of hosts), so we allow for setting thresholds on what percentage of hosts should color the
entire service down.
Health tests can return one of three values: Good, Concerning, and Bad. A test returns Concerning health if the
test falls below a warning threshold. A test returns Bad if the test falls below a critical threshold. The overall
health of a service or role instance is a roll-up of its health tests. If any health test is Concerning (but none are
Bad) the role's or service's health is Concerning; if any health test is Bad, the service's or role's health is Bad.
In the Cloudera Manager Admin Console, health tests results are indicated with colors: Good , Concerning ,
and Bad .
There are two types of health tests:
• Pass-fail tests - there are two types:
– Compare a property to a yes-no value. For example, whether a service or role started as expected, a
DataNode is connected to its NameNode, or a TaskTracker is (or is not) blacklisted.
– Exercise a service lightly to confirm it is working and responsive. HDFS (NameNode role), HBase, and
ZooKeeper services perform these tests, which are referred to as "canary" tests.
Both types of pass-fail tests result in the health reported as being either Good or Bad.
• Metric tests - compare a property to a numeric value. For example, the number of file descriptors in use, the
amount of disk space used or free, how much time spent in garbage collection, or how many pages were
swapped to disk in the previous 15 minutes. In these tests the property is compared to a threshold that
determine whether everything is Good, (for example, plenty of disk space available), whether it is Concerning
(disk space getting low), or is Bad (a critically low amount of disk space).
By default most health tests are enabled and (if appropriate) configured with reasonable thresholds. You can
modify threshold values by editing the monitoring properties under the entity's Configuration tab. You can also
enable or disable individual or summary health tests, and in some cases specify what should be included in the
calculation of overall health for the service, role instance, or host. See Configuring Monitoring Settings on page
13 for more information.
Home Page
When you start the Cloudera Manager Admin Console, the Home page displays.
Cloudera Operation | 9
Monitoring and Diagnostics
You can also navigate to the Home page by clicking Home in the top navigation bar.
Status
The default tab displayed when the Home page displays. It contains:
• Clusters - The clusters being managed by Cloudera Manager. Each cluster is displayed either in summary
form or in full form depending on the configuration of the Administration > Settings > Other > Maximum
Cluster Count Shown In Full property. When the number of clusters exceeds the value of the property, only
cluster summary information displays.
– Summary Form - A list of links to cluster status pages. Click Customize to jump to the Administration >
Settings > Other > Maximum Cluster Count Shown In Full property.
– Full Form - A separate section for each cluster containing a link to the cluster status page and a table
containing links to the Hosts page and the status pages of the services running in the cluster.
Each service row in the table has a menu of actions that you select by clicking and can contain one or
more of the following indicators:
Configuration Indicates that the service has at least one configuration issue. The
issue indicator shows the number of configuration issues at the highest severity
10 | Cloudera Operation
Monitoring and Diagnostics
Restart Configuration Indicates that at least one of a service's roles is running with a
Needed modified configuration that does not match the current configuration settings in
Cloudera Manager.
Refresh
Needed Click the indicator to display the Stale Configurations page.To bring the
cluster up-to-date, click the Refresh or Restart button on the Stale
Configurations page or follow the instructions in Refreshing a Cluster,
Restarting a Cluster, or Restarting Services and Instances after
Configuration Changes.
Client Indicates that the client configuration for a service should be redeployed.
configuration
Click the indicator to display the Stale Configurations page.To bring the
redeployment
cluster up-to-date, click the Deploy Client Configuration button on the
required
Stale Configurations page or follow the instructions in Manually
Redeploying Client Configuration Files.
– Cloudera Management Service - A table containing a link to the Cloudera Manager Service. The Cloudera
Manager Service has a menu of actions that you select by clicking .
– Charts - A set of charts (dashboard) that summarize resource utilization (IO, CPU usage) and processing
metrics.
Click a line, stack area, scatter, or bar chart to expand it into a full-page view with a legend for the individual
charted entities as well more fine-grained axes divisions.
By default the time scale of a dashboard is 30 minutes. To change the time scale, click a duration link
at the top-right of the dashboard.
To set the dashboard type, click and select one of the following:
• Custom - displays a custom dashboard.
• Default - displays a default dashboard.
• Reset - resets the custom dashboard to the predefined set of charts, discarding any customizations.
Cloudera Operation | 11
Monitoring and Diagnostics
• By default only Bad health test results are shown in the dialog. To display Concerning health test results,
click the Also show n concerning issue(s) link.
• To group the health test results by entity or health test, click the buttons on the Organize by Entity/Organize
by Health Test toggle.
• Click the link to display the Status page containing with details about the health test result.
The menu displayed by clicking the icon at the top right includes the selections Export JSON, and Export CSV.
12 | Cloudera Operation
Monitoring and Diagnostics
• Click Export JSON to display the chart data in JSON format in a new browser window.
• Click Export CSV to open a Save dialog enabling you to save the data as a CSV file, choose a program to open
the CSV, or open the file with your system's default program for editing and displaying CSV files.
Note: Time values that appear in Cloudera Manager charts reflect the time zone setting on the
Cloudera Manager client machine, but time values returned by the Cloudera Manager API (including
those that appear in JSON and CSV files exported from charts) reflect Coordinated Universal Time
(UTC). For more information on the timestamp format, see the Cloudera Manager API documentation,
for example, ApiTimeSeriesData.java.
Required Role:
• With a custom dashboard, the menu displayed by clicking the icon at the top right includes the selection
Remove for users with the required roles. The Remove button does not appear in the menu when the default
dashboard is used because the default dashboard doesn't allow removing the original charts. Use the edit
button to the upper right of the chart to toggle between custom and default dashboards.
• Charts can also be added to a custom dashboard. Click the icon at the top right and click Add to Dashboard.
You can add the chart to an existing dashboard by selecting Add chart to an existing custom or system
dashboard and selecting the dashboard name. Add the chart to a new dashboard by clicking Add chart to a
new custom dashboard and enter a new name in the Dashboard Name field.
Required Role:
• For many charts, the menu opened with the icon will also include Create Trigger. Triggers allow you to
define actions to be taken when a specified condition is met. For information on creating triggers, see Triggers
on page 62.
Required Role:
There are several types of monitoring settings you can configure in Cloudera Manager:
• For a service or role for which monitoring is provided, you can enable and disable selected health tests and
events, configure how those health tests factor into the overall health of the service, and modify thresholds
for the status of certain health tests. Cloudera Manager supports this type of monitoring configuration for
HDFS, MapReduce, YARN, HBase, Impala, ZooKeeper, and Flume. For hosts you can disable or enable selected
health tests, modify thresholds, and enable or disable health alerts.
• For hosts, you can set threshold-based monitoring of free space in the various directories on the hosts
Cloudera Manager monitors.
• For MapReduce, YARN, and Impala services, you can configure aspects of how Cloudera Manager monitors
activities, applications, and queries.
• For the Cloudera Management Service you can configure monitoring settings for the monitoring roles—enable
and disable health tests on the monitoring processes as well as configuring some general settings related
to events and alerts (specifically with the Event Server and Alert Publisher). Each of the Cloudera Management
Service roles has its own parameters that can be modified in order to specify how much data is retained by
that service. For some monitoring functions, the amount of retained data can grow very large, so it may
become necessary to adjust the limits.
For general information about modifying configuration settings, see Modifying Configuration Properties.
This section covers the following topics:
Cloudera Operation | 13
Monitoring and Diagnostics
14 | Cloudera Operation
Monitoring and Diagnostics
configured for it in an activity duration rule. Activity duration rules are not defined by default; you must configure
these rules if you want to see events for jobs that exceed the duration defined by these rules.
To configure Activity Monitor settings:
1. Click the Clusters tab.
2. Select the MapReduce service instance.
3. Click the Configuration tab.
4. Select Scope > MapReduce service name (Service-Wide).
5. Click the Monitoring category.
6. Specify one or more activity duration rules.
7. Click Save Changes to commit the changes.
foo=10
bar=20
any activity named "foo" would be marked slow if it ran for more than 10 minutes. Any activity named "bar"
would be marked slow if it ran for more than 20 minutes.
Since Java regular expressions can be used, if the rule set is:
foo.*=10
bar=20
any activity with a name that starts with "foo" (for example, fool, food, foot) will match the first rule.
If there is no match for an activity, then that activity will not be monitored for job duration. However, you can
add a "catch-all" as the last rule which will always match any name:
foo.*=10
bar=20
baz=30
.*=60
In this case, any job that runs longer than 60 minutes will be marked slow and will generate an event.
Cloudera Operation | 15
Monitoring and Diagnostics
Configuring Alerts
The following topics describe how to configure when alerts are raised and how they are delivered:
• Enabling Activity Monitor Alerts on page 16
• Enabling Configuration Change Alerts on page 17
• Enabling HBase Alerts on page 17
• Configuring Health Alerts on page 17
• Configuring Log Alerts on page 18
• Configuring Alert Delivery on page 18
Enabling Activity Monitor Alerts
You can enable alerts when an activity runs too slowly or fails.
16 | Cloudera Operation
Monitoring and Diagnostics
Cloudera Operation | 17
Monitoring and Diagnostics
Note: If alerting is enabled for events, you will be able to search for and view alerts in the Events tab,
even if you do not have email notification configured.
Important: We do not recommend logging to a network-mounted file system. If a role is writing its
logs across the network, a network failure or the failure of a remote file system can cause that role
to freeze up until the network recovers.
Configuring Logs
1. Go to a service.
2. Click the Configuration tab.
3. Select Role (Service-Wide) > Logs.
4. Edit a log property.
5. Click Save Changes to commit the changes.
6. Restart the role.
18 | Cloudera Operation
Monitoring and Diagnostics
Cloudera Operation | 19
Monitoring and Diagnostics
Note: Editing these rules is not recommended. Cloudera Manager provides a default set of rules that
should be sufficient for most users.
Monitoring Clusters
There are several ways to monitor clusters.
The Clusters tab in the top navigation bar displays each cluster's services in its own section, with the Cloudera
Management Service separately below. You can select the following cluster-specific pages: hosts, reports,
activities, and resource management.
The Home page Status tab displays the clusters being managed by Cloudera Manager. Each cluster is displayed
either in summary form or in full form depending on the configuration of the Administration > Settings > Other >
Maximum Cluster Count Shown In Full property. When the number of clusters exceeds the value of the property,
only cluster summary information displays.
To display a cluster Status page, click the cluster name on the Home page Status tab. The cluster Status page
displays a table containing links to the Hosts page and the status pages of the services running in the cluster.
Each service row in the table has a menu of actions that you select by clicking and can contain one or more
of the following indicators:
Important: If there is one Bad health test result and two Concerning
health results, there will be three health issues, but the number will
be one.
Configuration Indicates that the service has at least one configuration issue. The indicator
issue shows the number of configuration issues at the highest severity level. If there
are configuration errors, the indicator is red. If there are no errors but
configuration warnings exist, then the indicator is yellow. No indicator is shown
if there are no configuration notifications.
20 | Cloudera Operation
Monitoring and Diagnostics
Restart Configuration Indicates that at least one of a service's roles is running with a configuration
Needed modified that does not match the current configuration settings in Cloudera Manager.
Refresh Click the indicator to display the Stale Configurations page.To bring the cluster
Needed up-to-date, click the Refresh or Restart button on the Stale Configurations
page or follow the instructions in Refreshing a Cluster, Restarting a Cluster,
or Restarting Services and Instances after Configuration Changes.
Client Indicates that the client configuration for a service should be redeployed.
configuration
Click the indicator to display the Stale Configurations page.To bring the cluster
redeployment
up-to-date, click the Deploy Client Configuration button on the Stale
required
Configurations page or follow the instructions in Manually Redeploying Client
Configuration Files.
The right side of the status page displays charts (dashboard) that summarize resource utilization (IO, CPU usage)
and processing metrics.
Monitoring Services
Cloudera Manager's Service Monitoring feature monitors dozens of service health and performance metrics
about the services and role instances running on your cluster:
• Presents health and performance data in a variety of formats including interactive charts
• Monitors metrics against configurable thresholds
• Generates events related to system and service health and critical log entries and makes them available for
searching and alerting
• Maintains a complete record of service-related actions and configuration changes
Cloudera Operation | 21
Monitoring and Diagnostics
are deployed automatically by Cloudera Manager based on the services you have installed, when you add a
service, or when you add a Gateway role on a host.
You can manually download and distribute these client configuration files to the users of a service, if necessary.
The Actions > Client Configuration URLs command opens a pop-up that displays links to the client configuration
zip files created for the services installed in your cluster. You can download these zip files by clicking the link.
The Actions button is not enabled if you are viewing status for a point of time in the past.
See Client Configuration Files for more information on this topic.
If individual services are in maintenance mode, you will see the maintenance mode icon next to the Actions
button for that service.
The Actions button is not enabled if you are viewing status for a point of time in the past.
22 | Cloudera Operation
Monitoring and Diagnostics
Note: Not all service types provide complete monitoring and health information. Hive, Hue, Oozie,
Solr, and YARN (CDH 4 only) only provide the basic Status Summary on page 23.
Each service that supports monitoring provides a set of monitoring properties where you can enable or disable
health tests and events, and set thresholds for tests and modify thresholds for the status of certain health
tests. For more information see Configuring Monitoring Settings on page 13.
The HDFS, MapReduce, HBase, ZooKeeper, and Flume services also provide additional information: a snapshot
of service-specific metrics, health test results, health history, and a set of charts that provide a historical view
of metrics of interest.
Status Summary
The Status Summary shows the status of each service instance being managed by Cloudera Manager. Even
services such as Hue, Oozie, or YARN (which are not monitored by Cloudera Manager) show a status summary.
The overall status for a service is a roll-up of the health test results for the service and all its role instances. The
Status can be:
Table 1: Status
History not available Cloudera Manager is in historical mode, and the entity does not have
historical monitoring support. This is the case for services other than
HDFS, MapReduce and HBase such as ZooKeeper, Oozie, and Hue.
None The entity does not have a status. For example, it is not something
that can be running and it cannot have health. Examples are the
HDFS Balancer (which runs from the HDFS Rebalance action) or
Cloudera Operation | 23
Monitoring and Diagnostics
Unknown health The status of a service or role instance is unknown. This can occur
for a number of reasons, such as the Service Monitor is not running,
or connectivity to the Agent doing the health monitoring has been
lost.
You can click the link for a role type in the Status Summary section to see the details of the status of the role
instance(s). If there is a single instance of the role type, the link takes you directly to the role instance status.
If there are multiple role instances (such as for DataNodes, TaskTrackers, and RegionServers) clicking the role
type displays the role instances page for the role type. Expand the Health Tests filter on the left and expand
Good Health, Warnings, Bad Health, or Disabled Health to display the results for each health test that applies
to this role type.
Health test results that have been filtered out by your filter settings will appear grayed out in the Health tests
section, but will be grayed out.
Service Summary
Some services (specifically HDFS, MapReduce, HBase, Flume, and ZooKeeper) provide additional statistics about
their operation and performance. These are shown in a Summary panel at the left side of the page. The contents
of this panel depend on the service:
• The HDFS Summary shows disk space usage.
• The MapReduce Summary shows statistics on slot usage, jobs and so on.
• The Flume Summary provides a link to a page of Flume metric details. See Flume Metric Details on page 25.
• The ZooKeeper Summary provides links to the ZooKeeper role instances (nodes) as well as Zxid information
if you have a ZooKeeper Quorum (multiple ZooKeeper servers).
For example:
24 | Cloudera Operation
Monitoring and Diagnostics
Other services such as Hue, Oozie, Impala, and Cloudera Manager itself, do not provide a Service Summary.
Charts
HDFS, MapReduce, HBase, ZooKeeper, Flume, and Cloudera Management Service all display charts of some of
the critical metrics related to their performance and health. Other services such as Hive, Hue, Oozie, and Solr do
not provide charts.
See Viewing Charts for Cluster, Service, Role, and Host Instances on page 12 for detailed information on the
charts that are presented, and the ability to search and display metrics of your choice.
Cloudera Operation | 25
Monitoring and Diagnostics
• In the Home page Status tab, if the cluster is displayed in full form, click ServiceName in a ClusterName
table.
• In the Home page Status tab, click ClusterName and then click ServiceName.
• Select Clusters > ClusterName > ServiceName.
2. Click the Instances tab on the service's navigation bar. This shows all instances of all role types configured
for the selected service.
You can also go directly to the Instances page to view instances of a specific role type by clicking one of the links
under the Role Counts column. This will show only instances of the role type you selected.
The Instances page displays the results of the configuration validation checks it performs for all the role instances
for this service.
Note: The information on this page is always the Current information for the selected service and
roles. This page does not support a historical view: thus, the Time Range Selector is not available.
you will see the following icon ( ). If it is in effective maintenance mode due to the service or its host
having been set into maintenance mode, the icon will be this ( ).
• Whether the role is currently decommissioned.
You can sort or filter the Instances list by criteria in any of the displayed columns:
• Sort
1. Click the column header by which you want to sort. A small arrow indicates whether the sort is in ascending
or descending order.
2. Click the column header again to reverse the sort order.
• Filter - Type a property value in the Search box or select the value from the facets at the left of the page.
Table 2: Status
26 | Cloudera Operation
Monitoring and Diagnostics
History not available Cloudera Manager is in historical mode, and the entity does not have
historical monitoring support. This is the case for services other than
HDFS, MapReduce and HBase such as ZooKeeper, Oozie, and Hue.
None The entity does not have a status. For example, it is not something
that can be running and it cannot have health. Examples are the
HDFS Balancer (which runs from the HDFS Rebalance action) or
Gateway roles. The Start and Stop commands are not applicable to
these instances.
Good health The entity is running with good health. For a specific health test, the
returned result is normal or within the acceptable range. For a role
or service, this means all health tests for that role or service are Good.
Concerning health The entity is running with concerning health. For a specific health
test, the returned result indicates a potential problem. Typically this
means the test result has gone above (or below) a configured Warning
threshold. For a role or service, this means that at least one health
test is Concerning.
Bad health The entity is running with bad health. For a specific health test, the
test failed, or the returned result indicates a serious problem. Typically
this means the test result has gone above (or below) a configured
Critical threshold. For a role or service, this means that at least one
health test is Bad.
Disabled health The entity is running, but all of its health tests are disabled.
Unknown health The status of a service or role instance is unknown. This can occur
for a number of reasons, such as the Service Monitor is not running,
or connectivity to the Agent doing the health monitoring has been
lost.
Required Role:
The Actions menu provides a list of commands relevant to the role type you are viewing. These commands
typically include Stopping, Starting, or Restarting the role instance, accessing the Web UI for the role, and may
include many other commands, depending on the role you are viewing.
The Actions menu is available from the Role Status page only when you are viewing Current time status. The
menu is disabled if you are viewing a point of time in the past.
Cloudera Operation | 27
Monitoring and Diagnostics
selected on the Time Range Selector (which defaults to the past 30 minutes). By default, the information shown
on this page is for the current time. You can view status for a past point in time simply by moving the time
marker ( ) to a point in the past.
When you move the time marker to a point in the past (for Services/Roles that support health history), the
Health Status clearly indicates that it is referring to a past time. A Now button ( ) enables you to quickly switch
to view the current state of the service. In addition, the Actions menu is disabled while you are viewing status
in the past – to ensure that you cannot accidentally take an action based on outdated status information. See
Time Line on page 7 for more details.
You can also view past status by clicking the Show link in the Health Tests and Health History on page 28 panel.
Summary
The Summary panel provides basic information about the role instance, where it resides, and the health of its
host.
All role types provide the Summary panel. Some role instances related to HDFS, MapReduce, and HBase also
provide a Health Tests panel and associated charts.
Status Summary
The Status Summary panel reports a roll-up of the status of all the roles.
Charts
Charts are shown for roles that are related to HDFS, MapReduce, HBase, ZooKeeper, Flume, and Cloudera
Management Service. Roles related to other services such as Hue, Hive, Oozie, and YARN, do not provide charts.
See Viewing Charts for Cluster, Service, Role, and Host Instances on page 12 for detailed information on the
charts that are presented, and the ability to search and display metrics of your choice.
28 | Cloudera Operation
Monitoring and Diagnostics
1. Select a service instance to display the Status page for that service.
2. Click the Instances tab.
3. From the list of roles, select one to display that role instance's Status page.
4. Click the Processes tab.
The Processes page shows the processes that run as part of this service role, with a variety of metrics about
those processes.
• To see the location of a process' configuration files, and to view the Environment variable settings, click the
Show link under Configuration Files/Environment.
• If the process provides a Web UI (as is the case for the NameNode, for example) click the link to open the
Web UI for that process
• To see the most recent log entries, click the Show Recent Logs link.
• To see the full log, stderr, or stdout log files, click the appropriate links.
Required Role:
Cloudera Manager allows administrators to run the following diagnostic utility tools against most Java-based
role processes:
• List Open Files (lsof) - Lists the open files of the process.
• Collect Stack Traces (jstack) - Captures Java thread stack traces for the process.
• Heap Dump (jmap) - Captures a heap dump for the process.
• Heap Histogram (jmap -histo) - Produces a histogram of the heap for the process.
These commands are found on the Actions menu of the Cloudera Manager page for the instance of the role. For
example, to run diagnostics commands for the HDFS active NameNode, perform these steps:
1. Click the HDFS service on the Home page or select it on the Clusters menu.
2. Click Instances > NameNode (Active).
3. Click the Actions menu.
4. Choose one of the diagnostics commands listed in the lower section of the menu.
5. Click the button in confirmation dialog to confirm your choice.
6. When the command is executed, click Download Result Data and save the file to view the command output.
Cloudera Operation | 29
Monitoring and Diagnostics
30 | Cloudera Operation
Monitoring and Diagnostics
Required Role:
There is also an Actions menu for each nameservice. From this menu you can:
• Edit the list of mount points for the nameservice (using the Edit... command)
• Enable or disable high availability and automatic failover
The indicator positioned just to the left of the Search field on the right hand 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.
To display all commands that have run and finished recently do one of the following:
• 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 Home link in the Admin Console main navigation bar and click the All Recent Commands tab.
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.
Cloudera Operation | 31
Monitoring and Diagnostics
3. For a role instance, click the Instances tab and select the role instance name to go its Status tab.
4. 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 currently in progress.
While the status of 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 Recent Commands.
Recent Commands
The Recent Commands area shows commands that were run and finished within the search time range you've
specified.
Select a value from the Showing last n drop-down list to control how many commands are listed.
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 options described in Time Line on page
7).
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.
The First Run command is run as part of the initial startup of your cluster. Click this link to view the command
history of the startup of your cluster.
Command Details
Click a command in the Command 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:
• The command (and how many subcommands, if any, it has)
• The context, which may be a cluster, service, host, or role
• The current status
• The time the command started
• The time the command ended
• A message about the command completion
• If the context was a role, links to role instance logs
If the command included multiple steps, a Command Progress section may appear showing the steps within
the command and whether they succeeded.
32 | Cloudera Operation
Monitoring and Diagnostics
The Child Commands section lists any subcommands of the selected command. You can perform the following
actions:
• Filter the child commands to display all, only failed, or only active commands.
• If you are displaying a child command, use the Parent Command link near the top of the page to return to
the parent command's details.
• 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.
Click a duration link at the top right of the charts to change the time period
for which the resource usage displays.
Cloudera Operation | 33
Monitoring and Diagnostics
Click a duration link at the top right of the charts to change the time period
for which the resource usage displays.
• Status - a summary of the virtual CPU cores and memory that can be allocated by the YARN scheduler.
• Pools Status - a list of pools that have been explicitly configured and pools created by YARN, properties of
the pools, and an action menu.
– Allocated Memory - The memory assigned to the pool that is currently allocated to applications and
queries.
– Allocated VCores - The number of virtual CPU cores assigned to the pool that are currently allocated to
applications and queries.
– Allocated Containers - The number of YARN containers assigned to the pool whose resources have been
allocated.
– Pending Containers - The number of YARN containers assigned to the pool whose resources are pending.
– Click and select
– YARN Applications to display the YARN Applications on page 55 page and list the applications that
are running or have run in that pool.
– Impala Queries to display the Impala Queries on page 47 page and list the queries that are running
or have run in that pool.
Monitoring Hosts
Cloudera Manager's Host Monitoring features let you manage and monitor the status of the hosts in your
clusters.
34 | Cloudera Operation
Monitoring and Diagnostics
Disks Overview
Click the Disks Overview button to display an overview of the status of all disks in the deployment. The statistics
exposed match or build on those in iostat, and are shown in a series of histograms that by default cover every
physical disk in the system.
Adjust the endpoints of the time line to see the statistics for different time periods. Specify a filter in the box
to limit the displayed data. For example, to see the disks for a single rack rack1, set the filter to:
logicalPartition = false and rackId = "rack1". Click a histogram to drill down and identify outliers.
Host Details
You can view detailed information about each host, including:
• Name, IP address, rack ID
• Health status of the host and last time the Cloudera Manager Agent sent a heartbeat to the Cloudera Manager
Server
• Number of cores
• System load averages for the past 1, 5, and 15 minutes
• Memory usage
• File system disks, their mount points, and usage
• Health test results for the host
• Charts showing a variety of metrics and health test results over time.
• Role instances running on the host and their health
• CPU, memory, and disk resources used for each role instance
To view detailed host information:
1. Click the Hosts tab.
2. Click the name of one of the hosts. The Status page is displayed for the host you selected.
3. Click tabs to access specific categories of information. Each tab provides various categories of information
about the host, its services, components, and configuration.
From the status page you can view details about several categories of information.
Cloudera Operation | 35
Monitoring and Diagnostics
Status
The Status page is displayed when a host is initially selected and provides summary information about the
status of the selected host. Use this page to gain a general understanding of work being done by the system,
the configuration, and health status.
If this host has been decommissioned or is in maintenance mode, you will see the following icon(s) ( , ) in
the top bar of the page next to the status message.
Details
This panel provides basic system configuration such as the host's IP address, rack, health status summary, and
disk and CPU resources. This information summarizes much of the detailed information provided in other panes
on this tab. To view details about the Host agent, click the Host Agent link in the Details section.
Health Tests
Cloudera Manager monitors a variety of metrics that are used to indicate whether a host is functioning as
expected. The Health Tests panel shows health test results in an expandable/collapsible list, typically with the
specific metrics that the test returned. (You can Expand All or Collapse All from the links at the upper right of
the Health Tests panel).
• The color of the text (and the background color of the field) for a health test result indicates the status of the
results. The tests are sorted by their health status – Good, Concerning, Bad, or Disabled. The list of entries
for good and disabled health tests are collapsed by default; however, Bad or Concerning results are shown
expanded.
• The text of a health test also acts as a link to further information about the test. Clicking the text will pop
up a window with further information, such as the meaning of the test and its possible results, suggestions
for actions you can take or how to make configuration changes related to the test. The help text for a health
test also provides a link to the relevant monitoring configuration section for the service. See Configuring
Monitoring Settings on page 13 for more information.
Health History
The Health History provides a record of state transitions of the health tests for the host.
• Click the arrow symbol at the left to view the description of the health test state change.
• Click the View link to open a new page that shows the state of the host at the time of the transition. In this
view some of the status settings are greyed out, as they reflect a time in the past, not the current status.
File Systems
The File systems panel provides information about disks, their mount points and usage. Use this information
to determine if additional disk space is required.
Roles
Use the Roles panel to see the role instances running on the selected host, as well as each instance's status
and health. Hosts are configured with one or more role instances, each of which corresponds to a service. The
role indicates which daemon runs on the host. Some examples of roles include the NameNode, Secondary
NameNode, Balancer, JobTrackers, DataNodes, RegionServers and so on. Typically a host will run multiple roles
in support of the various services running in the cluster.
Clicking the role name takes you to the role instance's status page.
You can delete a role from the host from the Instances tab of the Service page for the parent service of the role.
You can add a role to a host in the same way. See Role Instances.
36 | Cloudera Operation
Monitoring and Diagnostics
Charts
Charts are shown for each host instance in your cluster.
See Viewing Charts for Cluster, Service, Role, and Host Instances on page 12 for detailed information on the
charts that are presented, and the ability to search and display metrics of your choice.
Processes
The Processes page provides information about each of the processes that are currently running on this host.
Use this page to access management web UIs, check process status, and access log information.
Note: The Processes page may display exited startup processes. Such processes are cleaned up
within a day.
Resources
The Resources page provides information about the resources (CPU, memory, disk, and ports) used by every
service and role instance running on the selected host.
Each entry on this page lists:
• The service name
• The name of the particular instance of this service
• A brief description of the resource
• The amount of the resource being consumed or the settings for the resource
The resource information provided depends on the type of resource:
• CPU - An approximate percentage of the CPU resource consumed.
• Memory - The number of bytes consumed.
• Disk - The disk location where this service stores information.
• Ports - The port number being used by the service to establish network connections.
Commands
The Commands page shows you running or recent commands for the host you are viewing. See Viewing Running
and Recent Commands on page 31 for more information.
Cloudera Operation | 37
Monitoring and Diagnostics
Configuration
Required Role:
The Configuration page for a host lets you set properties for the selected host. You can set properties in the
following categories:
• Advanced - Advanced configuration properties. These include the Java Home Directory, which explicitly sets
the value of JAVA_HOME for all processes. This overrides the auto-detection logic that is normally used.
• Monitoring - Monitoring properties for this host. The monitoring settings you make on this page will override
the global host monitoring settings you make on the Configuration tab of the Hosts page. You can configure
monitoring properties for:
– health check thresholds
– the amount of free space on the filesystem containing the Cloudera Manager Agent's log and process
directories
– a variety of conditions related to memory usage and other properties
– alerts for health check events
For some monitoring properties, you can set thresholds as either a percentage or an absolute value (in bytes).
• Other - Other configuration properties.
• Parcels - Configuration properties related to parcels. Includes the Parcel Director property, the directory that
parcels will be installed into on this host. If the parcel_dir variable is set in the Agent's config.ini file, it
will override this value.
• Resource Management - Enables resource management using control groups (cgroups).
For more information, see the description for each or property or see Modifying Configuration Properties.
Components
The Components page lists every component installed on this host. This may include components that have
been installed but have not been added as a service (such as YARN, Flume, or Impala).
This includes the following information:
• Component - The name of the component.
• Version - The version of CDH from which each component came.
• Component Version - The detailed version number for each component.
Audits
The Audits page lets you filter for audit events related to this host. See Audit Events on page 64 for more
information.
Charts Library
The Charts Library page for a host instance provides charts for all metrics kept for that host instance, organized
by category. Each category is collapsible/expandable. See Viewing Charts for Cluster, Service, Role, and Host
Instances on page 12 for more information.
Host Inspector
You can use the host inspector to gather information about hosts that Cloudera Manager is currently managing.
You can review this information to better understand system status and troubleshoot any existing issues. For
example, you might use this information to investigate potential DNS misconfiguration.
The inspector runs tests to gather information for functional areas including:
• Networking
• System time
38 | Cloudera Operation
Monitoring and Diagnostics
Monitoring Activities
Cloudera Manager's activity monitoring capability monitors the MapReduce, Pig, Hive, Oozie, and streaming jobs,
Impala queries, and YARN applications running or that have run on your cluster. The Activity Monitor provides
many statistics about the performance of and resources used by those jobs, queries, and applications. You can
see which users are running jobs, queries, and applications both at the current time and through dashboards
that show historical activity. When the individual jobs are part of larger workflows (via Oozie, Hive, or Pig), these
jobs are aggregated into activities that can be monitored as a whole, as well as by the component MapReduce
jobs.
Cloudera Operation | 39
Monitoring and Diagnostics
If you are running multiple clusters, there will be a separate link under the Activities section of the Clusters tab
for each cluster's MapReduce activities, Impala queries, and YARN applications.
The following sections describe how to view and monitor activities that run on your cluster.
• MapReduce Jobs on page 40
• Impala Queries on page 47
• YARN Applications on page 55
MapReduce Jobs
An MapReduce job is a unit of processing (query or transformation) on the data stored within a Hadoop cluster.
You can view information about the different jobs that have run in your cluster during a selected time span.
• The list of jobs provides specific metrics about the jobs that were submitted, were running, or finished within
the time frame you select.
• You can select charts that show a variety of metrics of interest, either for the cluster as a whole or for
individual jobs.
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details).
Note: Activity Monitor treats the original job start time as immutable. If a job is resubmitted due to
failover it will retain its original start time.
You can select an activity and drill down to look at the jobs and tasks spawned by that job:
• View the children (MapReduce jobs) of a Pig or Hive activity.
• View the task attempts generated by a MapReduce job.
• View the children (MapReduce, Pig, or Hive activities) of an Oozie job.
• View the activity or job statistics in a detail report format.
• Compare the selected activity to a set of other similar activities, to determine if the selected activity showed
anomalous behavior. For example, if a standard job suddenly runs much longer than usual, this may indicate
issues with your cluster.
• Display the distribution of task attempts that made up a job, by different metrics compared to task duration.
You can use this, for example, to determine if tasks running on a certain host are performing slower than
average.
• Kill a running job, if necessary.
Note: Some activity data is sampled at one-minute intervals. This means that if you run a very short
job that both starts and ends within the sampling interval, it may not be detected by the Activity
Monitor, and thus will not appear in the Activities list or charts.
40 | Cloudera Operation
Monitoring and Diagnostics
– you can modify the columns that are displayed to add or remove columns) in the Activities list show statistics
about the performance of and resources used by each activity:
• The leftmost column holds a context menu button ( ). Click this button to display a menu of commands
relevant to the job shown in that row. The possible commands are:
Children For a Pig, Hive or Oozie activity, takes you to the Children tab of the individual
activity page. You can also go to this page by clicking the activity ID in the activity
list. This command only appears for Pig, Hive or Oozie activities.
Tasks For a MapReduce job, takes you to the Tasks tab of the individual job page. You
can also go to this page by clicking the job ID in the activity or activity children list.
This command only appears for a MapReduce job.
Details Takes you to the Details tab where you can view the activity or job statistics in
report form.
Compare Takes you to the Compare tab where you can see how the selected activity compares
to other similar activities in terms of a wide variety of metrics.
Task Distribution Takes you to the Task Distribution tab where you can view the distribution of task
attempts that made up this job, by amount of data and task duration. This command
is available for MapReduce and Streaming jobs.
Kill Job A pop-up asks for confirmation that you want to kill the job. This command is
available only for MapReduce and Streaming jobs.
• The second column shows a chart icon ( ). Select this to chart statistics for the job. If there are charts
showing similar statistics for the cluster or for other jobs, the statistics for the job are added to the chart.
See Activity Charts on page 43 for more details.
• The third column shows the status of the job, if the activity is a MapReduce job:
MapReduce job
Pig job
Hive job
Cloudera Operation | 41
Monitoring and Diagnostics
Oozie job
Streaming job
Note: You cannot hide the context menu or chart icon columns. Also, column selections are retained
only for the current session.
42 | Cloudera Operation
Monitoring and Diagnostics
Note: Filters are remembered across user sessions — that is, if you log out the filter will be preserved
and will still be active when you log back in. Newly-submitted activities will appear in the Activity List
only if they match the filter criteria.
Activity Charts
By default the charts show aggregated statistics about the performance of the cluster: Tasks Running, CPU
Usage, and Memory Usage. There are additional charts you can enable from a pop-up panel. You can also
superimpose individual job statistics on any of the displayed charts.
Most charts display multiple metrics within the same chart. For example, the Tasks Running chart shows two
metrics: Cluster, Running Maps and Cluster, Running Reduces in the same chart. Each metric appears in a
different color.
• To see the exact values at a given point in time, move the cursor over the chart – a movable vertical line
pinpoints a specific time, and a tooltip shows you the values at that point.
• You can use the time range selector at the top of the page to zoom in – the chart display will follow. In order
to zoom out, you can use the Time Range Selector at the top of the page or click the link below the chart.
To select additional charts:
1.
Click at the top right of the chart panel to open the Customize dialog.
2. Check or uncheck the boxes next to the charts you want to show or hide.
To show or hide cluster-wide statistics:
• Check or uncheck the Cluster checkbox at the top of the Charts panel.
To chart statistics for an individual job:
• Click the chart icon ( ) in the row next to the job you want to show on the charts. The job ID will appear in
the top bar next to the Cluster checkbox, and the statistics will appear on the appropriate chart.
• To remove a job's statistics from the chart, click the next to the job ID in the top bar of the chart.
Note: Chart selections are retained only for the current session.
Cloudera Operation | 43
Monitoring and Diagnostics
• The Compare tab compares this activity to other similar activity. The main difference between this and a
comparison for a single MapReduce activity is that the comparison is done looking at other activities of the
same type (Pig, Hive or Oozie) but does include the child jobs of the activity. See Comparing Similar Activities
for an explanation of that tab.
Task Attempts
The Tasks tab contains a list of the Map and Reduce task attempts that make up a job.
Viewing a Job's Task Attempts
1. From the Clusters tab, in the section marked Other, select the activity you want to inspect.
• If the activity is an MapReduce job, the Tasks tab opens.
• If the activity is a Pig, Hive, or Oozie activity, select the job you want to inspect from the activity's Children
tab to open the Tasks tab.
The columns shown under the Tasks tab display statistics about the performance of and resources used by the
task attempts spawned by the selected job. By default only a subset of the possible metrics are displayed —
you can modify the columns that are displayed to add or remove the columns in the display.
• The status of an attempt is shown in the Attempt Status column:
44 | Cloudera Operation
Monitoring and Diagnostics
Note: The filter persists only for this user session — when you log out, tasks list filter is removed.
Cloudera Operation | 45
Monitoring and Diagnostics
46 | Cloudera Operation
Monitoring and Diagnostics
You can click in a cell and see a list of the TaskTrackers that correspond to the tasks whose performance falls
within the cell.
The X-axis show the task duration is seconds. From the drop-down you can chose different metrics for the
Y-axis: Input or Output records or bytes for Map tasks, or the number of CPU seconds for the user who ran the
job:
• Map Input Records vs. Duration
• Map Output Records vs. Duration
• Map Input Bytes vs. Duration
• Map Output Bytes vs. Duration
• Map Total User CPU seconds vs. Duration
• Reduce Input Records vs. Duration
• Reduce Output Records vs. Duration
• Reduce Total User CPU seconds vs. Duration
TaskTracker Hosts
To the right of the chart is a table that shows the TaskTracker hosts that processed the tasks in the selected
cell, along with the number of task attempts each host executed.
You can select a cell in the table to view the TaskTracker hosts that correspond to the tasks in the cell.
• The area above the TaskTracker table shows the type of task and range of data volume (or User CPUs) and
duration times for the task attempts that fall within the cell.
• The table itself shows the TaskTracker hosts that executed the tasks that are represented within the cell,
and the number of task attempts run on that host.
Clicking a TaskTracker host name takes you to the Role Status page for that TaskTracker instance.
Impala Queries
The Impala Queries page displays information about the Impala queries that are running and have run in your
cluster. You can filter the queries by time period and by specifying simple filtering expressions.
Note: The Impala query monitoring feature requires Cloudera Impala 1.0.1 and higher.
Viewing Queries
1. Do one of the following:
• Select Clusters > Cluster name > Activities > Impala service name Queries.
• Select Home > Impala service name and click Queries in the Activities section in the left pane.
The Impala queries run during the last day are listed in the Queries list.
Cloudera Operation | 47
Monitoring and Diagnostics
Create a trigger based on any best practice by choosing Create Trigger from the individual chart drop down menu.
Queries List
Queries appear in the list with the most recent at the top. Each query has summary and detail information. A
query summary includes the following default attributes: start and end timestamps, statement, duration, rows
produced, user, coordinator, database, and query type. For example:
You can add additional attributes to the summary with the Attribute Selector. In each query summary, the query
statement is truncated if it is too long to display. To display the entire statement, hover over a query. The query
entry will expand to display the entire query string. To collapse the query display, move the mouse cursor. To
display information about query attributes and possible values, hover over a field in a query. For example:
A running query displays under the start timestamp. If an error occurred while processing the
query, displays under the complete timestamp.
To kill a running query, select Actions > Cancel. Only an administrator can cancel queries and killing a query
creates an audit event. When you cancel a query, replaces the label. Once the page
is refreshed, the entry is removed from the list.
Filtering Queries
You filter queries by selecting a time range and specifying a filter expression in the text box.
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details).
48 | Cloudera Operation
Monitoring and Diagnostics
Filter Expressions
Filter expressions specify which entries should display when you run the filter. The simplest expression is made
up of three components:
• Attribute - the query language name of the attribute.
• Operator - the type of comparison between the attribute and the attribute value. Cloudera Manager supports
the standard comparator operators: =, !=, >, <, >=, <=, and RLIKE, which does regular expression matching
as specified in the Java Pattern class documentation. Numeric values can be compared with all operators.
String values can be compared with =, !=, and RLIKE. Boolean values can be compare with = and !=.
• Value - the value of the attribute. The value depends on the type of the attribute. For a Boolean value, specify
either true or false. When specifying a string value, enclose the value in double quotes.
You create compound filter expressions using the AND and OR operators. When more than one operator is used
in an expression, AND is evaluated first, then OR. To change the order of evaluation, surround subexpressions
with parentheses.
Compound Expressions
To find all the queries issued by the root user that produced over 100 rows, use the expression:
To find all the executing queries issued by users Jack or Jill, use the expression:
Cloudera Operation | 49
Monitoring and Diagnostics
and a filter with the attribute value set to the range of the histogram bucket is added to the text box.
The range includes the lower bound of the bucket and excludes the upper bound of the bucket. For
example:
(<x>_duration >= 17600.0 AND <x>_duration < 18000.0 OR <x>_duration >= 16000.0
AND <x>_duration < 16400.0)
• Type a Filter
1. Start typing or press Spacebar in the text box. As you type, filter attributes matching the letter you
type display. If you press Spacebar, standard filter attributes display. These suggestions are part of
typeahead, which helps build valid queries. For information about the attribute name and supported
values for each field, hover over the field in an existing query.
2. Select an attribute and press Enter.
3. Press Spacebar to display a drop-down list of operators.
4. Select an operator and press Enter.
5. Specify an attribute value in one of the following ways:
• For attribute values that support typeahead, press Spacebar to display a drop-down list of values
and press Enter.
• Type a value.
2. Put the cursor on the text box and press Enter or click Search. The list displays the results that match the
specified filter. If the histograms are showing, they are redrawn to show only the values for the selected
filter. The filter is added to the Recently Run list.
Example: Drilling into Query Results
Suppose we have a set of results with the following duration distribution :
The 0-20.00s bucket has 7 results, but with the current distribution we cannot discriminate between the results
in that bucket.
Selecting the left-most histogram bar adds the following filter to the text box:
where <x> is query or application. After clicking Search again, the histogram appears as follows:
50 | Cloudera Operation
Monitoring and Diagnostics
Selecting the histogram with 5 results again refines the filter to:
Filter Attributes
The available filter attributes, their names as they are displayed in Cloudera Manager, their types, and descriptions,
are enumerated below.
bytes_streamed Bytes Streamed BYTES The total number of bytes sent between
Impala daemons while processing the
query.
database Database STRING The database on which the query was run.
file_formats File Formats STRING The file formats used in the query. A file
format is a string of the form: File
Type/Compression Type, where File Type
can take the values: TEXT, PARQUET,
SEQUENCE_FILE, and RC_FILE, and
Compression Type can take the values:
NONE, DEFAULT, BZIP2. For further
Cloudera Operation | 51
Monitoring and Diagnostics
hbase_bytes_read HBase Bytes BYTES The total number of bytes read from HBase
Read by the query.
hbase_bytes_read_per_second HBase Read BYTES_PER_SECOND The overall HBase read throughput (in B/s)
Throughput of the query.
hdfs_bytes_read HDFS Bytes Read BYTES The total number of bytes (in GiB) read
from HDFS by the query.
hdfs_bytes_read_local HDFS Local BYTES The total number of local bytes read (in
Bytes Read GiB) from HDFS by the query.
hdfs_bytes_read_local_percentage HDFS Local NUMBER The percentage of all bytes read from HDFS
Bytes Read by the query that were local.
Percentage
hdfs_bytes_read_per_second HDFS Read BYTES_PER_SECOND The overall HDFS read throughput (in B/s)
Throughput of the query.
hdfs_bytes_read_remote HDFS Remote BYTES The total number of remote bytes read
Bytes Read from HDFS by this query.
hdfs_bytes_read_remote_percentage HDFS Remote NUMBER The percentage of all bytes read from HDFS
Bytes Read by this query that were remote.
Percentage
hdfs_bytes_read_short_circuit HDFS Short BYTES The total number of bytes (in GiB) read
Circuit Bytes from HDFS by the query that used
Read short-circuit reads.
hdfs_bytes_read_short_circuit_percentage HDFS Short NUMBER The percentage of all bytes (in GiB) read
Circuit Bytes from HDFS by the query that used
Read Percentage short-circuit reads.
hdfs_bytes_skipped HDFS Bytes BYTES The total number of bytes that had to be
Skipped skipped by the query while reading from
HDFS. Any number above zero may
indicate a problem.
memory_accrual Memory Accrual BYTE_SECONDS The total accrued memory usage by the
query. This is computed by multiplying the
average aggregate memory usage of the
query by the query's duration.
memory_aggregate_peak Aggregate Peak BYTES The highest amount of memory allocated
Memory Usage by this query at a particular time across all
nodes.
memory_per_node_peak Per Node Peak BYTES The highest amount of memory allocated
Memory Usage by any single node that participated in this
query. See Node With Peak Memory Usage
for the name of the peak node.
memory_per_node_peak_node Node With Peak STRING The node with the highest peak memory
Memory Usage usage for this query.
52 | Cloudera Operation
Monitoring and Diagnostics
network_address Network Address STRING The network address that issued this
query.
pool Pool STRING The name of the YARN pool to which this
query was issued. Within YARN, a pool is
referred to as a queue.
pool_wait_time Pool Wait Time MILLISECONDS The total amount of time the query spent
waiting for pool resources to become
available.
query_duration Duration MILLISECONDS The duration of the query in milliseconds.
query_state Query State STRING The current state of the query: CREATED,
INITIALIZED, COMPILED, RUNNING,
FINISHED, UNKNOWN, EXCEPTION. If the
query has failed or been canceled,
queryState will be EXCEPTION.
query_status Query Status STRING The status of the query. If the query failed,
queryStatus will contain diagnostic info
such as Memory limit exceeded, Failed
to write row .... If canceled,
queryStatus is Canceled. Otherwise,
queryStatus is OK.
query_type Query Type STRING The type of the query's SQL statement: DML,
DDL, QUERY, UNKNOWN.
rows_produced Rows Produced NUMBER The number of rows returned by the query.
thread_cpu_time Threads: CPU MILLISECONDS The sum of the CPU time used by all
Time threads of the query.
thread_cpu_time_percentage Threads: CPU NUMBER The sum of the CPU time used by all
Time Percentage threads of the query divided by the total
thread time.
thread_network_wait_time Threads: MILLISECONDS The sum of the time spent waiting for the
Network Wait network by all threads of the query.
Time
Cloudera Operation | 53
Monitoring and Diagnostics
thread_network_wait_time_percentage Threads: NUMBER The sum of the time spent waiting for the
Network Wait network by all threads of the query divided
Time Percentage by the total thread time.
thread_storage_wait_time Threads: Storage MILLISECONDS The sum of the time spent waiting for
Wait Time storage by all threads of the query.
thread_storage_wait_time_percentage Threads: Storage NUMBER The sum of the time spent waiting for
Wait Time storage by all threads of the query divided
Percentage by the total thread time.
thread_total_time Threads: Total MILLISECONDS The sum of thread CPU, storage wait, and
Time network wait times used by all threads of
the query.
user User STRING The user who issued the query.
Examples
Consider the following filter expressions: user = "root", rowsProduced > 0, fileFormats RLIKE ".TEXT.*",
and executing = true. In the examples:
• The filter attributes are user, rowsProduced, fileFormats, and executing.
• The operators are =, >, and RLIKE.
• The filter values are root, 0, .TEXT.*, and true.
Query Details
The Query Details page contains the low-level details of how a SQL query is processed through Cloudera Impala.
The initial information on the page can help you tune the performance of some kinds of queries, primarily those
involving joins. The more detailed information on the page is primarily for troubleshooting with the assistance
of Cloudera Support; you might be asked to attach the contents of the page to a trouble ticket. The Query Details
page displays the following information:
• Query Plan
• Query Info
• Query Fragments
To download the contents of the query details, select one of the following:
• Download Profile... or Download Profile... > Download Text Profile... - to download a text version of the query
detail.
• Download Profile... > Download Thrift Encoded Profile... - to download a binary version of the query detail.
Query Plan
The Query Plan section can help you diagnose and tune performance issues with queries. This information is
especially useful to understand performance issues with join queries, such as inefficient order of tables in the
SQL statement, lack of table and column statistics, and the need for query hints to specify a more efficient join
mechanism. You can also learn valuable information about how queries are processed for partitioned tables.
The information in this section corresponds to the output of the EXPLAIN statement for the Impala query. Each
fragment shown in the query plan corresponds to a processing step that is performed by the central coordinator
host or distributed across the hosts in the cluster.
54 | Cloudera Operation
Monitoring and Diagnostics
Query Timeline
Query Info
The Query Info section reports the attributes of the query, start and end time, duration, and statistics about
HDFS access. You can hover over an attribute for information about the attribute name and supported values
(for enumerated values). For example:
Query Fragments
The Query Fragments section reports detailed low-level statistics for each query plan fragment, involving physical
aspects such as CPU utilization, disk I/O, and network traffic. This is the primary information that Cloudera
Support might use to help troubleshoot performance issues and diagnose bugs. The fields and their names
might change as Impala internal processing is enhanced.
YARN Applications
The YARN Applications page displays information about the YARN jobs that are running and have run in your
cluster. You can filter the jobs by time period and by specifying simple filtering expressions.
Viewing Jobs
1. Do one of the following:
• Select Clusters > Cluster name > Activities > YARN service name Applications.
• Select Services > YARN service name and click the Applications tab.
The YARN jobs run during the last day are listed in the Applications list.
Jobs List
Jobs are ordered with the most recent at the top. Each job has summary and detail information. A job summary
includes the following attributes: start and end timestamps, query (if the job is part of a Hive query) name, queue,
job type, job ID, and user. For example:
You can add additional attributes to the summary with the Attribute Selector. To display information about job
attributes and possible values, hover over a field in an entry. For example:
Cloudera Operation | 55
Monitoring and Diagnostics
Filtering Jobs
You filter jobs by selecting a time range and specifying a filter expression in the Search box.
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details).
Filter Expressions
Filter expressions specify which entries should display when you run the filter. The simplest expression is made
up of three components:
• Attribute - the query language name of the attribute.
• Operator - the type of comparison between the attribute and the attribute value. Cloudera Manager supports
the standard comparator operators: =, !=, >, <, >=, <=, and RLIKE, which does regular expression matching
as specified in the Java Pattern class documentation. Numeric values can be compared with all operators.
String values can be compared with =, !=, and RLIKE. Boolean values can be compare with = and !=.
• Value - the value of the attribute. The value depends on the type of the attribute. For a Boolean value, specify
either true or false. When specifying a string value, enclose the value in double quotes.
You create compound filter expressions using the AND and OR operators. When more than one operator is used
in an expression, AND is evaluated first, then OR. To change the order of evaluation, surround subexpressions
with parentheses.
Compound Expressions
To find all the jobs issued by the root user that ran for longer than ten seconds, use the expression:
To find all the jobs that had more than 200 maps issued by users Jack or Jill, use the expression:
56 | Cloudera Operation
Monitoring and Diagnostics
and a filter with the attribute value set to the range of the histogram bucket is added to the text box.
The range includes the lower bound of the bucket and excludes the upper bound of the bucket. For
example:
(<x>_duration >= 17600.0 AND <x>_duration < 18000.0 OR <x>_duration >= 16000.0
AND <x>_duration < 16400.0)
• Type a Filter
1. Start typing or press Spacebar in the text box. As you type, filter attributes matching the letter you
type display. If you press Spacebar, standard filter attributes display. These suggestions are part of
typeahead, which helps build valid queries. For information about the attribute name and supported
values for each field, hover over the field in an existing query.
2. Select an attribute and press Enter.
3. Press Spacebar to display a drop-down list of operators.
4. Select an operator and press Enter.
5. Specify an attribute value in one of the following ways:
• For attribute values that support typeahead, press Spacebar to display a drop-down list of values
and press Enter.
• Type a value.
2. Put the cursor on the text box and press Enter or click Search. The list displays the results that match the
specified filter. If the histograms are showing, they are redrawn to show only the values for the selected
filter. The filter is added to the Recently Run list.
Example: Drilling into Query Results
Suppose we have a set of results with the following duration distribution :
Cloudera Operation | 57
Monitoring and Diagnostics
The 0-20.00s bucket has 7 results, but with the current distribution we cannot discriminate between the results
in that bucket.
Selecting the left-most histogram bar adds the following filter to the text box:
where <x> is query or application. After clicking Search again, the histogram appears as follows:
Selecting the histogram with 5 results again refines the filter to:
Filter Attributes
Commonly-used filter attributes, their names as they are displayed in Cloudera Manager, their types, and
descriptions, are enumerated below.
58 | Cloudera Operation
Monitoring and Diagnostics
Examples
Consider the following filter expressions: user = "root", rowsProduced > 0, fileFormats RLIKE ".TEXT.*",
and executing = true. In the examples:
• The filter attributes are user, rowsProduced, fileFormats, and executing.
• The operators are =, >, and RLIKE.
• The filter values are root, 0, .TEXT.*, and true.
Cloudera Operation | 59
Monitoring and Diagnostics
Events
An event is a record that something of interest has occurred – a service's health has changed state, a log message
(of the appropriate severity) has been logged, and so on. Many events are enabled and configured by default.
From the Events page you can filter for events for services or role instances, hosts, users, commands, and much
more. You can also search against the content information returned by the event.
The Event Server aggregates relevant events and makes them available for alerting and for searching. This way,
you have a view into the history of all relevant events that occur cluster-wide.
Cloudera Manager supports the following categories of events:
Category Description
ACTIVITY_EVENT Generated by the Activity Monitor; specifically, for jobs that fail, or that run slowly
(as determined by comparison with duration limits). In order to monitor your
workload for slow-running jobs, you must specify Activity Duration Rules on page
15.
AUDIT_EVENT Generated by actions performed
• In Cloudera Manager, such as creating, configuring, starting, stopping, and
deleting services or roles
• By services that are being audited by Cloudera Navigator.
HBASE Generated by HBase with the exception of log messages, which have the
LOG_MESSAGE category.
HEALTH_CHECK Indicate that certain health test activities have occurred, or that health test results
have met specific conditions (thresholds).
Thresholds for various health tests can be set under the Configuration tabs for
HBase, HDFS, Impala, and MapReduce service instances, at both the service and
role level. See Configuring Health Monitoring on page 14 for more information.
LOG_MESSAGE Generated for certain types of log messages from HDFS, MapReduce, and HBase
services and roles. Log events are created when a log entry matches a set of rules
for identifying messages of interest. The default set of rules is based on Cloudera
experience supporting Hadoop clusters. You can configure additional log event
rules if necessary.
SYSTEM Generated by system events such as parcel availability.
Viewing Events
The Events page lets you display events and alerts that have occurred within a time range you select anywhere
in your clusters. From the Events page you can filter for events for services or role instances, hosts, users,
commands, and much more. You can also search against the content information returned by the event.
To view events, click the Diagnostics tab on the top navigation bar, then select Events.
60 | Cloudera Operation
Monitoring and Diagnostics
Events List
Event entries are ordered (within the time range you've selected) with the most recent at the top. If the event
generated an alert, that is indicated by a red alert icon ( ) in the entry.
This page supports infinite scrolling: you can scroll to the end of the displayed results and the page will fetch
more results and add them to the end of the list automatically.
To display event details, click Expand at the right side of the event entry.
Clicking the View link at the far right of the entry has different results depending on the category of the entry:
• ACTIVITY_EVENT - Displays the activity Details page.
• AUDIT_EVENT - If the event was a restart, displays the service's Commands page. If the event was a
configuration change, the Revision Details dialog displays.
• HBASE - Displays a health report or log details.
• HEALTH_CHECK - Displays the status page of the role instance.
• LOG_MESSAGE - Displays the event's log entry. You can also click Expand to display details of the entry,
then click the URL link. When you perform one of these actions the time range in the Time Line is shifted to
the time the event occurred.
• SYSTEM - Displays the Parcels page.
Filtering Events
You filter events by selecting a time range and adding filters.
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details). The time it takes to perform a search will typically increase for a
longer time range, as the number of events to be searched will be larger.
Adding a Filter
To add a filter, do one of the following:
• Click the icon that displays next to a property when you hover in one of the event entries. A filter containing
the property, operator, and its value is added to the list of filters at the left and Cloudera Manager redisplays
all events that match the filter.
• Click the Add a filter link. A filter control is added to the list of filters.
1. Choose a property in the drop-down list. You can search by properties such as Username, Service, Command,
or Role. The properties vary depending on the service or role.
2. If the property allows it, choose an operator in the operator drop-down list.
3. Type a property value in the value text field. For some properties you can include multiple values in the
value field. For example, you can create a filter like Category = HEALTH_CHECK LOG_MESSAGE. To drop
individual values, click the to the right of the value. For properties where the list of values is finite and
known, you can start typing and then select from a drop-down list of potential matches.
4. Click Search. The log displays all events that match the filter criteria.
5. Click to add more filters and repeat steps 1 through 4.
Note: You can filter on a string by adding a filter, selecting the property CONTENT, operator =, and
typing the string to search for in the value field.
Removing a Filter
1. Click the at the right of the filter. The filter is removed.
2. Click Search. The log displays all events that match the filter criteria.
Cloudera Operation | 61
Monitoring and Diagnostics
Re-running a Search
To re-run a recently performed search, click to the right of the Search button and select a search.
Alerts
An alert is an event that is considered especially noteworthy and is triggered by a selected event. Alerts are
shown with an badge when they appear in a list of events. You can configure the Alert Publisher to
send alert notifications by email or via SNMP trap to a trap receiver.
Service instances of type HDFS, MapReduce, and HBase (and their associated roles) can generate alerts if so
configured. Alerts can also be configured for the monitoring roles that are a part of the Cloudera Management
Service.
The settings to enable or disable specific alerts are found under the Configuration tab for the services to which
they pertain. See Configuring Alerts on page 16 and for more information on setting up alerting.
For information about configuring the Alert Publisher to send email or SNMP notifications for alerts, see
Configuring Alert Delivery on page 18.
Required Role:
Do one of the following:
• Select Administration > Alerts.
• Display the All Alerts Summary page:
1. Do one of the following:
• Select Clusters > Cloudera Management Service > Cloudera Management Service.
• On the Status tab of the Home page, in Cloudera Management Service table, click the Cloudera
Management Service link.
2. Click the Instances tab.
3. Click an Alert Publisher role.
4. Click the All Alerts Summary tab.
Triggers
A trigger is a statement that specifies an action to be taken when one or more specified conditions are met for
a service, role, role configuration group, or host. The conditions are expressed as a tsquery statement, and the
action to be taken is to change the health for the service, role, role configuration group, or host to either Concerning
(yellow) or Bad (red).
Triggers can be created for services, roles, role configuration groups, or hosts. You can create a trigger in either
of the following ways:
• By directly editing the configuration for the service, role (or role configuration group), or host configuration
• By clicking Create Trigger on the drop-down menu for most charts. Note that the Create Trigger command
is not available on the drop-down menu for charts where no context (role, service, and so on) is defined, such
as on the Home page.
Important: Because triggers are a new and evolving feature, backward compatibility between
releases is not guaranteed at this time.
62 | Cloudera Operation
Monitoring and Diagnostics
Name (required)
A trigger's name must be unique in the context for which the trigger is defined. That is, there cannot be two
triggers for the same service or role with the same name. Different services or different roles can have triggers
with the same name.
Expression (required)
A trigger expression takes the form:
IF (CONDITIONS) DO HEALTH_ACTION
When the conditions of the trigger are met, the trigger is considered to be firing. A condition is any valid tsquery.
In most cases conditions employ stream filters to filter out streams below or above a certain threshold. For
example, the following tsquery can be used to retrieve the streams for DataNodes with more than 500 open file
descriptors:
The stream filter used here, last(fd_open) > 50, is composed of four parts:
• A scalar producing function "last" that takes a stream and returns its last data point
• A metric to operate on
• A comparator
• A scalar value
Other scalar producing functions are available, like min or max, and they can be combined to create arbitrarily
complex expressions:
IF ((SELECT fd_open WHERE roleType=DataNode AND last(fd_open) > 500) OR (SELECT fd_open
WHERE roleType=NameNode AND last(fd_open) > 500)) DO health:bad
A condition is met if it returns more than the number of streams specified by the streamThreshold (see below).
A trigger fires if the logical evaluation of all of its conditions results in a met condition. When a trigger fires, two
actions can be taken: health:concerning or health:bad. These actions will change the health of the entity
on which the trigger is defined.
Cloudera Operation | 63
Monitoring and Diagnostics
least 10 DataNodes that have more than 500 file descriptor opened, so at least 10 streams were returned by
the tsquery.
Enabled (optional)
Whether the trigger is enabled. The default is true, that is, triggers are enabled by default.
Trigger Example
The following is a JSON formatted trigger that fires if there are more than 10 DataNodes with more than 500
file descriptors opened:
Audit Events
Required Role:
An audit event is an event that describes an action that has been taken for a service, role, or host instance. In
Cloudera Manager, audit event logs display service, role, and host life cycle (create, delete, start, stop, and so on)
and security-related (add and delete user) events recorded by Cloudera Manager management services and
service access events recorded by Cloudera Navigator. For information on the latter, see Audit Events and Audit
Reports.
The audit log does not track the progress or results of commands (such as starting or stopping a service or
creating a directory for a service), it just notes the command that was executed and the user who executed it.
To view the progress or results of a command, follow the procedures in Viewing Running and Recent Commands
on page 31.
Object Procedure
Cluster 1. Click the Audits tab on the top navigation bar.
Audit event entries are ordered with the most recent at the top.
64 | Cloudera Operation
Monitoring and Diagnostics
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details). When you select the time range, the log displays all events in that
range. The time it takes to perform a search will typically increase for a longer time range, as the number of
events to be searched will be larger.
Adding a Filter
To add a filter, do one of the following:
• Click the icon that displays next to a property when you hover in one of the event entries. A filter containing
the property, operator, and its value is added to the list of filters at the left and Cloudera Manager redisplays
all events that match the filter.
• Click the Add a filter link. A filter control is added to the list of filters.
1. Choose a property in the drop-down list. You can search by properties such as Username, Service, Command,
or Role. The properties vary depending on the service or role.
2. If the property allows it, choose an operator in the operator drop-down list.
3. Type a property value in the value text field. To match a substring, use the like operator and specify %
around the string. For example, to see all the audit events for files created in the folder /user/joe/out
specify Source like %/user/joe/out%.
4. Click Search. The log displays all events that match the filter criteria.
5. Click to add more filters and repeat steps 1 through 4.
Removing a Filter
1. Click the at the right of the filter. The filter is removed.
2. Click Search. The log displays all events that match the filter criteria.
Cloudera Operation | 65
Monitoring and Diagnostics
service,username,command,ipAddress,resource,allowed,timestamp
hdfs1,cloudera,setPermission,10.20.187.242,/user/hive,false,"2013-02-09T00:59:34.430Z"
hdfs1,cloudera,getfileinfo,10.20.187.242,/user/cloudera,true,"2013-02-09T00:59:22.667Z"
hdfs1,cloudera,getfileinfo,10.20.187.242,/,true,"2013-02-09T00:59:22.658Z"
In this example, the first event access was denied, and therefore the allowed field has the value false.
Terminology
Entity
A Cloudera Manager component that has metrics associated with it, such as a service, role, or host.
Metric
A property that can be measured to quantify the state of an entity or activity, such as the number of open file
descriptors or CPU utilization percentage.
Time series
A list of (time, value) pairs that is associated with some (entity, metric) pair such as, (datanode-1, fd_open),
(hostname, cpu_percent). In more complex cases, the time series can represent operations on other time
series. For example, (datanode-1 , cpu_user + cpu_system).
Facet
A display grouping of a set of time series. By default, when a query returns multiple time series, they are displayed
in individual charts. Facets allow you to display the time series in separate charts, in a single chart, or grouped
by various attributes of the set of time series.
66 | Cloudera Operation
Monitoring and Diagnostics
and click Enter. Continue choosing query components by pressing Spacebar and Enter until the tsquery
statement is complete.
Cloudera Operation | 67
Monitoring and Diagnostics
For example, the query SELECT jvm_heap_used_mb where clusterId = 1 could return a set of charts like
the
l l o f
68 | Cloudera Operation
Monitoring and Diagnostics
Required Role:
A time-series query returns one or more time series or scalar values. By default a maximum of 250 time series
will be returned.
To change this value:
1. Select Administration > Settings.
2. In the Advanced category, set the Maximum Number Of Time-Series Streams Returned Per Time-Series
Query or the Maximum Number of Time-Series Streams Returned Per Heatmap property.
3. Click Save Changes.
Notice the $HOSTNAME portion of the query string. $HOSTNAME is a variable that will be resolved to a specific
value based on the page before the query is actually issued. In this case, $HOSTNAME will become
nightly53-2.ent.cloudera.com.
Cloudera Operation | 69
Monitoring and Diagnostics
Context-sensitive variables are useful since they allow portable queries to be written. For example the query
above may be on the host status page or any role status page to display the appropriate host's swap rate.
Variables cannot be used in queries that are part of user-defined dashboards since those dashboards have no
service, role or host context.
Chart Properties
By default, the time-series data retrieved by the tsquery is displayed on its own chart, using a Line style chart,
a default size, and a default minimum and maximum for the Y-axis. You can change the chart type, facet the
data, set the chart scale and size, and set X- and Y-axis ranges.
70 | Cloudera Operation
Monitoring and Diagnostics
• Histogram - Displays the time series values as a set of bars where each bar represents a range of metric
values and the height of the bar represents the number of entities whose value falls within the range. The
following histogram shows the number of roles in each range of the last value of the resident memory.
Cloudera Operation | 71
Monitoring and Diagnostics
• Table - Displays the time series values as a table with each row containing the data for a single time value.
Note: Heatmaps and histograms render charts for a single point as opposed to time series charts
that render a series of points. For queries that return time series, Cloudera Manager will generate
the heatmap or histogram based on the last recorded point in the series, and will issue the warning:
"Query returned more than one value per stream. Only the last value was used." To eliminate this
warning, use a scalar returning function to choose a point. For example, use select
last(cpu_percent) to use the last point or select max(cpu_percent) to use the maximum value
(in the selected time range).
72 | Cloudera Operation
Monitoring and Diagnostics
Changing Scale
You can set the scale of the chart to linear, logarithmic, and power.
Changing Dimensions
You can change the size of your charts by modifying the values in the Dimension fields. They change in 50-pixel
increments when you click the up or down arrows, and you can type values in as long as they are multiples of
50. If you have multiple charts, depending on the dimensions you specify and the size of your browser window,
your charts may appear in rows of multiple charts. If the Resize Proportionally checkbox is checked, you can
modify one dimension and the other will be modified automatically to maintain the chart's width and height
proportions.
Cloudera Operation | 73
Monitoring and Diagnostics
The following chart shows the same query as the previous chart, but with All Combined selected (which shows
all time series in a single chart) and with the Dimension values increased to expand the chart.
74 | Cloudera Operation
Monitoring and Diagnostics
Changing Axes
You can change the Y-axis range using the Y Range minimum and maximum fields.
The X-axis is based on clock time, and by default shows the last hour of data. You can use the Time Range
Selector or a duration link ( ) to set the time range. (See Time Line on page
7 for details).
– If there are service, role, or host instances in the chart, click the View link to display the instance's
Status page.
– Click the Close button to return to the regular chart view.
• Heatmap - Clicking a square in a heatmap displays a line chart of the time series for that entity.
• Histogram -
– Mousing over the upper right corner of a histogram and clicking the expand arrows opens a pop-up
containing the query that generated the chart, an expanded view of the chart, a list of entity names and
links to the entities whose metrics are represented by the histogram bars, and the value of the metric
for each entity. For example, clicking the following histogram
Cloudera Operation | 75
Monitoring and Diagnostics
– Clicking a bar in the expanded histogram displays a line chart of the time series from which the histogram
was generated:
Clicking the < Back link at the bottom left of the line chart returns to the expanded histogram.
76 | Cloudera Operation
Monitoring and Diagnostics
Editing a Chart
You can edit a chart from the custom dashboard and save it back into the same or another existing dashboard,
or to a new custom dashboard. Editing a chart only affects the copy of the chart in the current dashboard – if
you have copied the chart into other dashboards, those charts are not affected by your edits.
1. Move the cursor over the chart, and click the gear icon at the top right.
2. Click Open in Chart Builder. This opens the Chart Builder page with the chart you selected already displayed.
3. Edit the chart's select statement and click Build Chart.
Saving a Chart
Required Role:
After editing a chart you can save it to a new or existing custom dashboard.
1. Modify the chart's properties and click Build Chart.
2. Click Save to open the Save Chart dialog, and select one of the following:
a. Update chart in current dashboard: <name of current dashboard>.
b. Add chart to another dashboard.
c. Add chart to a new custom dashboard.
3. Click Save Chart.
4. Click View Dashboard to go to the dashboard where the chart has been saved.
See the following topics for more information:
• Saving Charts to a New Dashboard on page 79
• Saving Charts to an Existing Dashboard on page 79
Saving a chart only affects the copy of the chart in the dashboard where you save it – if you have previously
copied the chart into other dashboards, those charts are not affected by your edits.
Users with Read-Only, Limited Operator, or Operator user roles can edit charts and view the results, but cannot
save them to a dashboard.
Dashboards
A dashboard is a set of charts. This topic covers:
Dashboard Types
A default dashboard is a predefined set of charts that you cannot change. In a default dashboard you can:
• Display chart details.
• Edit a chart and then save back to a new or existing custom dashboard.
A custom dashboard contains a set of charts that you can change. In a custom dashboard you can:
• Display chart details.
• Edit a chart and then save back to a new or existing custom dashboard.
Cloudera Operation | 77
Monitoring and Diagnostics
• Save a chart, make any modifications, and then save to a new or existing dashboard.
• Remove a chart.
When you first display a page containing charts it has a custom dashboard with the same charts as a default
dashboard.
Creating a Dashboard
1. Do one of the following:
• Select Charts > New Dashboard.
• Select Charts > Manage Dashboards and click Create Dashboard.
• Save a chart to a new dashboard.
2. Specify a name and optionally a duration.
3. Click Create Dashboard.
Managing Dashboards
To manage dashboards, select Charts > Manage Dashboards. You can create, clone, edit, export, import, and
remove dashboards.
• Create Dashboard - create a new dashboard.
• Clone - clones an existing dashboard.
• Edit - edit an existing dashboard.
• Export - exports the specifications for the dashboard as a JSON file.
• Import Dashboard - reads an exported JSON file and recreates the dashboard.
• Remove - deletes the dashboard.
Configuring Dashboards
You can change the time scale of a dashboard, switch between default and custom dashboards, and reset a
custom dashboard.
To set the dashboard type, click and select one of the following:
• Custom - displays a custom dashboard.
• Default - displays a default dashboard.
• Reset - resets the custom dashboard to the predefined set of charts, discarding any customizations.
Required Role:
You can save the charts and their configurations (type, dimension, and y-axis minimum and maximum) to a new
dashboard or to an existing dashboard.
If your tsquery statement resulted in multiple charts, those charts are saved as a unit (either to a new or existing
dashboard). You cannot edit the individual plots in that set of charts, but you can edit the set as a whole. A single
edit button appears for the set that you saved — typically on the last chart in the set.
You can edit a copy of the individual charts in the set, but the edited copy does not change the original chart in
the dashboard from which it was copied.
78 | Cloudera Operation
Monitoring and Diagnostics
Cloudera Operation | 79
Monitoring and Diagnostics
1. Click the question mark icon to the right of the Build Chart button and select a metric from the List
of Metrics, type a metric name or description into the Basic text field, or type a query into the Advanced
field.
2. Click Build Chart. The charts that result from your query are displayed, and you can modify their chart
type, combine them using facets, change their size and so on.
2. Click Add.
Note: If the query you've chosen has resulted in multiple charts, all the charts are added to the
dashboard as a set. Although the individual charts in this set can be copied, you can only edit the set
as a whole.
Required Role:
1. Move the cursor over the chart, and click the icon at the top right.
2. Click Remove.
tsquery Language
The tsquery language is used to specify statements for retrieving time-series data from the Cloudera Manager
time-series data store.
Before diving into the tsquery language specification, here's how you perform some common queries using the
tsquery language:
1. Retrieve time series for all metrics for all DataNodes.
3. Retrieve the jvm_heap_used_mb metric time series divided by 1024 and the jvm_heap_committed metric
time series divided by 1024 for all roles running on the host named "my host".
4. Retrieve the jvm_total_threads and jvm_blocked_threads metric time series for all entities for which
Cloudera Manager collects these two metrics.
select jvm_total_threads,jvm_blocked_threads
tsquery Syntax
A tsquery statement has the following structure:
SELECT [metric expression]WHERE [predicate]
80 | Cloudera Operation
Monitoring and Diagnostics
• The metric expression can be replaced with an asterisk (*), as shown in example 1. In that case, all metrics
that are applicable for selected entities, such as DATANODE in example 1, are returned.
• The predicate can be omitted, as shown in example 4. In such cases, time series for all entities for which the
metrics are appropriate are returned. For this query you would see the jvm_new_threads metric for
NameNodes, DataNodes, TaskTrackers, and so on.
Metric Expressions
A metric expression generates the time series. It is a comma-delimited list of one or more metric expression
statements. A metric expression statement is the name of a metric, a metric expression function, or a scalar
value, joined by one or more metric expression operators.
See the FAQ on page 87 which answers questions concerning how to discover metrics and use cases for scalar
values.
Metric expressions support the binary operators: +, -, *, /.
Here are some examples of metric expressions:
• jvm_heap_used_mb, cpu_user, 5
• 1000 * jvm_gc_time_ms / jvm_gc_count
• total_cpu_user + total_cpu_system
• max(total_cpu_user)
dt(metric expression) N Derivative with negative values. The change of the underlying metric
expression per second. For example: dt(jvm_gc_count).
Cloudera Operation | 81
Monitoring and Diagnostics
getHostFact(string Y Retrieves a fact about a host. Currently supports one fact: numCores.
factName, double If the number of cores cannot be determined, defaultValue is returned.
defaultValue)
For example, select dt(total_cpu_user) /
getHostFact(numCores, 2) where category=HOST divides the
results of dt(total_cpu_user) by the current number of cores for
each host.
The following query computes the percentage of total user and system
CPU usage each role is using on the host. It first computes the CPU
seconds per second for the number of cores used by taking the
derivative of the total user and system CPU times. It normalizes the
result to the number of cores on the host by using the getHostFact
function and multiplies the result by 100 to get the percentage.
select dt0(total_cpu_user)/getHostFact(numCores,1)*100,
dt0(total_cpu_system)/getHostFact(numCores,1)*100
where category=ROLE and clusterId=1
greatest(metric N Compares two metric expressions, one of which one is a scalar metric
expression, scalar expression. Returns a time series where each point is the result of
metric expression) evaluating max(point, scalar metric expression).
integral(metric N Computes the integral value for a stream and returns a time-series
expression) stream within which each data point is the integral value of the
corresponding data point from the original stream. For example, select
integral(maps_failed_rate) will return the count of the failed
number of maps.
last(metric Y Returns the last point of a time series. For example, to use the last
expression) point of the cpu_percent metric time series, use the expression select
last(cpu_percent).
stats(metric N Some time-series streams have additional statistics for each data
expression, stats point. These include rollup time-series streams, cross-entity aggregates,
name) and rate metrics. The following statistics are available for rollup and
cross-entity aggregates: max, min, avg, std_dev, and sample. For rate
metrics, the underlying counter value is available using the "counter"
82 | Cloudera Operation
Monitoring and Diagnostics
Predicates
A predicate limits the number of streams in the returned series and can take one of the following forms:
• time_series_attribute operator value, where
– time_series_attribute is one of the supported attributes.
– operator is one of = and rlike
– value is an attribute value subject to the following constraints:
– For attributes values that contain spaces or values of attributes of the form xxxName such as
displayName, use quoted strings.
– The value for the rlike operator must be specified in quotes. For example: hostname rlike
"host[0-3]+.*".
– value can be any regular expression as specified in regular expression constructs in the Java Pattern
class documentation.
2. Retrieve all time series for all metrics for DataNodes or TaskTrackers that are running on host named "myhost".
3. Retrieve the total_cpu_user metric time series for all hosts with names that match the regular expression
"host[0-3]+.*"
Cloudera Operation | 83
Monitoring and Diagnostics
2. Return the number of open file descriptors where processes have more than 500Mb of mem_rss:
Name Description
active Indicates whether the entities to be retrieved must be active. A nonactive entity
is an entity that has been removed or deleted from the cluster. The default is to
retrieve only active entities (that is, active=true). To access time series for deleted
or removed entities, specify active=false in the query. For example:
SELECT fd_open WHERE roleType=DATANODE and active=false
Some metrics are collected for more than one type of entity. For example,
total_cpu_user is collected for entities of category HOST and ROLE. To retrieve
the data only for hosts use:
select total_cpu_user where category=HOST
The ROLE category applies to all role types (see roleType attribute). The SERVICE
category applies to all service types (see serviceType attribute). For example, to
retrieve the committed heap for all roles on host1 use:
select jvm_committed_heap_mb where category=ROLE and
hostname="host1"
84 | Cloudera Operation
Monitoring and Diagnostics
Name Description
entityName A display name plus unique identifier. For example:
HDFS-1-DATANODE-692d141f436ce70aac080aedbe83f887.
roleState The role state: BUSY, HISTORY_NOT_AVAILABLE, NA, RUNNING, STARTING, STOPPED,
STOPPING, UNKNOWN
Cloudera Operation | 85
Monitoring and Diagnostics
Name Description
serviceName The service ID. To specify a service by its display name use the
serviceDisplayName attribute.
serviceType The service type: ACCUMULO,FLUME, HDFS, HBASE, HIVE, HUE, IMPALA, KS_INDEXER,
MAPREDUCE, MGMT, OOZIE,SOLR, SPARK,SQOOP,YARN, ZOOKEEPER.
Entity Attributes
All Roles roleType, hostId, hostname, rackId, serviceType, serviceName
All Services serviceName, serviceType, clusterId, version, serviceDisplayName,
clusterDisplayName
Agent roleType, hostId, hostname, rackId, serviceType, serviceName, clusterId, version,
agentName, serviceDisplayName, clusterDisplayName
Cluster clusterId, version, clusterDisplayName
Directory roleName, hostId, path, roleType, hostname, rackId, serviceType, serviceName,
clusterId, version, agentName, hostname, clusterDisplayName
Disk device, logicalPartition, hostId, rackId, clusterId, version, hostname,
clusterDisplayName
File System hostId, mountpoint, rackId, clusterId, version, partition, hostname,
clusterDisplayName
Flume Channel serviceName, hostId, rackId, roleName, flumeComponent, roleType, serviceType,
clusterId, version, agentName, serviceDisplayName, clusterDisplayName
Flume Sink serviceName, hostId, rackId, roleName, flumeComponent, roleType, serviceType,
clusterId, version, agentName, serviceDisplayName, clusterDisplayName
Flume Source serviceName, hostId, rackId, roleName, flumeComponent, roleType, serviceType,
clusterId, version, agentName, serviceDisplayName, clusterDisplayName
HDFS Cache Pool serviceName, poolName, nameserviceName, serviceType, clusterId, version,
groupName, ownerName, serviceDisplayName, clusterDisplayName
HNamespace serviceName, namespaceName, serviceType, clusterId, version, serviceDisplayName,
clusterDisplayName
86 | Cloudera Operation
Monitoring and Diagnostics
Entity Attributes
Host hostId, rackId, clusterId, version, hostname, clusterDisplayName
HRegion htableName, hregionName, hregionStartTimeMs, namespaceName, serviceName,
tableName, serviceType, clusterId, version, roleType, hostname, roleName, hostId,
rackId , serviceDisplayName, clusterDisplayName
HTable namespaceName, serviceName, tableName, serviceType, clusterId, version,
serviceDisplayName, clusterDisplayName
Network Interface hostId, networkInterface, rackId, clusterId, version, hostname, clusterDisplayName
Rack rackId
Service serviceName, serviceType, clusterId, serviceDisplayName
Solr Collection serviceName, serviceType, clusterId, version, serviceDisplayName,
clusterDisplayName
Solr Replica serviceName, solrShardName, solrReplicaName, solrCollectionName, serviceType,
clusterId, version, roleType, hostId, hostname, rackId, roleName, serviceDisplayName,
clusterDisplayName
Solr Shard serviceName, solrCollectionName, solrShardName, serviceType, clusterId, version,
serviceDisplayName, clusterDisplayName
Time Series Table tableName, roleName, roleType, applicationName, rollup, path
User userName
YARN Pool serviceName, queueName, schedulerType
FAQ
How do I compare information across hosts?
1. Click Hosts in the top navigation bar and click a host link.
2. In the Charts pane, choose a chart, for example Host CPU Usage and select and then Open in Chart
Builder.
3. In the text box, remove the where entityName=$HOSTID clause and click Build Chart.
4. In the Facets list, click hostname to compare the values across hosts.
5. Configure the time scale, minimums and maximums, and dimension. For example:
Cloudera Operation | 87
Monitoring and Diagnostics
How do I compare all disk IO for all the DataNodes that belong to a specific HDFS service?
Use a query of the form:
replacing hdfs1 with your HDFS service name. Then facet by metricDisplayName and compare all
DataNode byte_reads and byte_writes metrics at once. See Grouping (Faceting) Time Series on page
72 for more details about faceting.
When would I use a derivative function?
Some metrics represent a counter, for example, bytes_read. For such metrics it is sometimes useful to
see the rate of change instead of the absolute counter value. Use dt or dt0 derivative functions.
When should I use the dt0 function?
Some metrics, like bytes_read represent a counter that always grows. For such metrics a negative rate
means that the counter has been reset (for example, process restarted, host restarted, and so on). Use
dt0 for these metrics.
How do I display a threshold on a chart?
Suppose that you want to retrieve the latencies for all disks on your hosts, compare them, and show a
threshold on the chart to easily detect outliers. Use the following query to retrieve the metrics and the
threshold:
Then choose All Combined (1) in the Facets list. The scalar threshold 250 will also be rendered on the
chart:
88 | Cloudera Operation
Monitoring and Diagnostics
See Grouping (Faceting) Time Series on page 72 for more details about faceting.
I get the warning "The query hit the maximum results limit". How do I work around the limit?
There is a limit on the number of results that can be returned by a query. When a query results in more
time-series streams than the limit a warning for "partial results" is issued. To circumvent the problem,
reduce the number of metrics you are trying to retrieve or see Configuring Time-Series Query Results on
page 69.
You can use the rlike operator to limit the query to a subset of entities. For example, instead of
The latter query retrieves the disk metrics for ten hosts.
How do I discover which metrics are available for which entities?
• Type Select in the text box and then press Space or continue typing. Metrics matching the letters you
type display in a drop-down list.
• Select Charts > Chart Builder, click the question mark icon to the right of the Build Chart button
and click the List of Metrics link
• Retrieve all metrics for the type of entity:
Metric Aggregation
In addition to collecting and storing raw metric values, the Cloudera Manager Service Monitor and Host Monitor
produce a number of aggregate metrics from the raw metric data. Where a raw data point is a timestamp value
pair, an aggregate metric point is a timestamp paired with a bundle of statistics including the minimum, maximum,
average, and standard deviation of the data points considered by the aggregate.
Individual metric streams are aggregated across time to produce statistical summaries at different data
granularities. For example, an individual metric stream of the number of open file descriptors on a host will be
aggregated over time to the ten-minute, hourly, six-hourly, daily and weekly data granularities. A point in the
hourly aggregate stream will include the maximum number of open file descriptors seen during that hour, the
minimum, the average and so on. When servicing a time-series request, either for the Cloudera Manager UI or
API, the Service Monitor and Host Monitor automatically choose the appropriate data granularity based on the
time-range requested.
Cloudera Operation | 89
Monitoring and Diagnostics
The ten minutely cross-time aggregate point covering the ten-minute window from 9:00 - 9:10 would have the
following statistics and metadata:
The Service Monitor and Host Monitor also produce cross-entity aggregates for a number of entities in the
system. Cross-entity aggregates are produced by considering the metric value of a particular metric across a
number of entities of the same type at a particular time. For each stream considered, two metrics are produced.
The first tracks statistics such as the minimum, maximum, average and standard deviation across all considered
entities as well as the identities of the entities that had the minimum and maximum values. The second tracks
the sum of the metric across all considered entities.
An example of the first type of cross-entity aggregate is the fd_open_across_datanodes metric. For an HDFS
service this metric contains aggregate statistics on the fd_open metric value for all the DataNodes in the service.
For a rack this metric contains statistics for all the DataNodes within that rack, and so on. An example of the
second type of cross-entity aggregate is the total_fd_open_across_datanodes metric. For an HDFS service
this metric contains the total number of file descriptors open by all the DataNodes in the service. For a rack this
metric contains the total number of file descriptors open by all the DataNodes within the rack, and so on. Note
that unlike the first type of cross-entity aggregate, this total type of cross-entity aggregate is a simple timestamp,
value pair and not a bundle of statistics.
The cross-entity aggregate fd_open_across_datanodes point for that HDFS service at that time would have
the following statistics and metadata:
90 | Cloudera Operation
Monitoring and Diagnostics
Just like every other metric, cross-entity aggregates are aggregated across time. For example, a point in the
hourly aggregate of fd_open_across_datanodes for an HDFS service will include the maximum fd_open value
of any DataNode in that service over that hour, the average value over the hour, and so on. A point in the hourly
aggregate of total_fd_open_across_datanodes for an HDFS service will contain statistics on the value of
the total_fd_open_across_datanodes for that service over the hour.
{
"timestamp" : "2014-02-24T00:00:00.000Z",
"value" : 0.014541698027508003,
"type" : "SAMPLE",
"aggregateStatistics" : {
"sampleTime" : "2014-02-23T23:59:35.000Z",
"sampleValue" : 0.0,
"count" : 360,
"min" : 0.0,
"minTime" : "2014-02-23T18:00:35.000Z",
"max" : 2.9516129032258065,
"maxTime" : "2014-02-23T19:37:36.000Z",
"mean" : 0.014541698027508003,
"stdDev" : 0.17041289765265377
}
}
{
"timestamp" : "2014-03-26T00:50:15.725Z",
"value" : 3288.0,
"type" : "SAMPLE",
"aggregateStatistics" : {
"sampleTime" : "2014-03-26T00:49:19.000Z",
"sampleValue" : 7232.0,
"count" : 4,
"min" : 1600.0,
"minTime" : "2014-03-26T00:49:42.000Z",
"max" : 7232.0,
"maxTime" : "2014-03-26T00:49:19.000Z",
"mean" : 3288.0,
"stdDev" : 2656.7549127961856,
"crossEntityMetadata" : {
"maxEntityDisplayName" : "cleroy-9-1.ent.cloudera.com",
"minEntityDisplayName" : "cleroy-9-4.ent.cloudera.com",
"numEntities" : 4.0
}
}
}
{
"timestamp" : "2014-03-11T00:00:00.000Z",
"value" : 3220.818863879957,
"type" : "SAMPLE",
"aggregateStatistics" : {
"sampleTime" : "2014-03-10T22:28:48.000Z",
"sampleValue" : 7200.0,
"count" : 933,
"min" : 1536.0,
"minTime" : "2014-03-10T21:02:17.000Z",
"max" : 7200.0,
"maxTime" : "2014-03-10T22:28:48.000Z",
"mean" : 3220.818863879957,
"stdDev" : 2188.6143063503378,
Cloudera Operation | 91
Monitoring and Diagnostics
"crossEntityMetadata" : {
"maxEntityDisplayName" : "cleroy-9-1.ent.cloudera.com",
"minEntityDisplayName" : "cleroy-9-4.ent.cloudera.com",
"numEntities" : 3.9787037037037036
}
}
}
These differ from non-aggregate data points by having the aggregateStatistics structure. Note that the value
field in the point structure will always be the same as the aggregteStatistics mean field. The Cloudera Manager
UI presents aggregate statistics in a number of ways. First, aggregate statistics are made available in the hover
detail and chart popover when dealing with aggregate data. Second, it is possible to toggle the display of minimum
and maximum time-series streams in line charts of aggregate data. These streams are displayed using dotted
lines and give a visual indication of the underlying metric values data range over the time considered, entities
considered or both. These lines are displayed by default for single stream line charts of aggregate data. For all
line charts this behavior can be toggled using the chart popover.
Logs
The Logs page presents log information for Hadoop services, filtered by service, role, host, and/or search phrase
as well log level (severity).
To configure logs, see Configuring Log Events on page 18.
Viewing Logs
1. Select Diagnostics > Logs on the top navigation bar.
2. Click Search.
The logs for all roles display. If any of the hosts cannot be searched, an error message notifies you of the error
and the host(s) on which it occurred.
Logs List
Log results are displayed in a list with the following columns:
92 | Cloudera Operation
Monitoring and Diagnostics
• Host - The host where this log entry appeared. Clicking this link will take you to the Host Status page (see
Host Details on page 35).
• Log Level - The log level (severity) associated with this log entry.
• Time - The date and time this log entry was created.
• Source - The class that generated the message.
• Message - The message portion of the log entry. Clicking View Log File displays the Log Details on page 93
page, which presents a display of the full log, showing the selected message (highlighted) and the 100
messages before and after it in the log.
If there are more results than can be shown on one page (per the Results per Page setting you selected), Next
and Prev buttons let you view additional results.
Filtering Logs
You filter logs by selecting a time range and specifying filter parameters.
You can use the Time Range Selector or a duration link ( ) to set the time
range. (See Time Line on page 7 for details). However, logs are, by definition, historical, and are meaningful only
in that context. So the Time Marker, used to pinpoint status at a specific point in time, is not available on this
page. The Now button ( ) is available.
1. Specify any of the log filter parameters:
• Search Phrase - A string to match against the log message content. The search is case-insensitive, and
the string can be a regular expression, such that wildcards and other regular expression primitives are
supported.
• Select Sources - A list of all the service instances and roles currently instantiated in your cluster. By
default, all services and roles are selected to be included in your log search; the All Sources checkbox lets
you select or deselect all services and roles in one operation. You can expand each service and limit the
search to specific roles by selecting or deselecting individual roles.
• Hosts - The hosts to be included in the search. As soon as you start typing a host name, Cloudera Manager
provides a list of hosts that match the partial name. You can add multiple names, separated by commas.
The default is to search all hosts.
• Minimum Log Level - The minimum severity level for messages to be included in the search results.
Results include all log entries at the selected level or higher. This defaults to WARN (that is, a search will
return log entries with severity of WARN, ERROR, or FATAL only.
• Additional Settings
– Search Timeout - A time (in seconds) after which the search will time out. The default is 20 seconds.
– Results per Page - The number of results (log entries) to be displayed per page.
2. Click Search. The Logs list displays the log entries that match the specified filter.
Log Details
The Log Details page presents a portion of the full log, showing the selected message (highlighted), and messages
before and after it in the log. The page shows you:
• The host
• The role
• The full path and name of the log file you are viewing.
• Messages before and after the one you selected.
The log displays the following information for each message:
• Time - the time the entry was logged
• Log Level - the severity of the entry
• Source - the source class that logged the entry
Cloudera Operation | 93
Monitoring and Diagnostics
• Log Message
You can toggle to display only messages or all columns using the buttons.
In addition, from the Log Details page you can:
• View the log entries in either expanded or contracted form using the buttons to the left of the date range at
the top of the log.
• Download the full log using the Download Full Log button at the top right of the page.
• View log details for a different host or for a different role on the current host, by clicking the Change... link
next to the host or role at the top of the page. In either case this shows a pop-up where you can select the
role or host you want to see.
Viewing Cloudera Manager Server and Agent Logs in the Logs Page
1. Select Diagnostics > Logs on the top navigation bar.
2. Click Select Sources to display the log source list.
3. Uncheck the All Sources checkbox.
4. Check the Cloudera Manager checkbox to view both Agent and Server logs, or click to the left of Cloudera
Manager, and check either the Agent or Server checkbox.
5. Click Search.
For more information about the Logs page, see Logs on page 92.
Note: You can also view the Cloudera Manager Server log at
/var/log/cloudera-scm-server/cloudera-scm-server.log on the Server host.
Note: You can also view the Cloudera Manager Agent log at
/var/log/cloudera-scm-agent/cloudera-scm-agent.log on the Agent hosts.
Reports
Important: This feature is available only with a Cloudera Enterprise license; it is not available in
Cloudera Express. For information on Cloudera Enterprise licenses, see Managing Licenses.
The Reports page lets you create reports about the usage of HDFS in your cluster—data size and file count by
user, group, or directory. It also lets you report on the MapReduce activity in your cluster, by user.
To display the Reports page, select Clusters > Cluster name > General > Reports.
94 | Cloudera Operation
Monitoring and Diagnostics
For users with the Administrator role, the Search Files and Manage Directories button on the Reports page
opens a file browser for searching files, managing directories, and setting quotas.
If you are managing multiple clusters, or have multiple nameservices configured (if high availability and/or
federation is configured) there will be separate reports for each cluster and nameservice.
Bytes The logical number of bytes in the files, aggregated by user, group, or directory.
This is based on the actual files sizes, not taking replication into account.
Raw Bytes The physical number of bytes (total disk space in HDFS) used by the files aggregated
by user, group, or directory. This does include replication, and so is actually Bytes
times the number of replicas.
File and Directory Count The number of files aggregated by user, group, or directory.
Bytes and Raw Bytes are shown in IEC binary prefix notation (1 GiB = 1 * 230).
The directories shown in the Current Disk Usage by Directory report are the HDFS directories you have set as
watched directories. You can add or remove directories to or from the watch list from this report; click the Search
Files and Manage Directories button at the top right of the set of reports for the cluster or nameservice (see
Designating Directories to Include in Disk Usage Reports on page 97).
The report data is also shown in chart format:
• Move the cursor over the graph to highlight a specific period on the graph and see the actual value (data size)
for that period.
• You can also move the cursor over the user, group, or directory name (in the graph legend) to highlight the
portion of the graph for that name.
• You can right-click within the chart area to save the whole chart display as a single image (a .PNG file) or as
a PDF file. You can also print to the printer configured for your browser.
Cloudera Operation | 95
Monitoring and Diagnostics
• Select the Start Date and End Date to define the time range of the report.
• Select the Graph Metric you want to graph: bytes, raw bytes, or files and directories count.
• In the Report Period field, select the period over which you want the metrics aggregated. The default is Daily.
This affects both the number of rows in the results table, and the granularity of the data points on the graph.
• Click Generate Report to produce a new report.
As with the current reports, the report data is also presented in chart format, and you can use the cursor to view
the data shown on the charts, as well as save and print them.
For weekly or monthly reports, the Date indicates the date on which disk usage was measured.
The directories shown in the Historical Disk Usage by Directory report are the HDFS directories you have set as
watched directories (see Designating Directories to Include in Disk Usage Reports on page 97).
96 | Cloudera Operation
Monitoring and Diagnostics
the checkpoint interval is (by default) once per hour, but if checkpoints are not being performed as frequently,
the listings may not be up to date.
To search the file system:
1. From the HDFS service page, select the File Browser tab.
2. Click Choose and do one of the following:
• Select a predefined query. Depending on what you select, you may be presented with different fields to
fill in or different views of the file system. For example, selecting Size will provide a choice of arithmetic
operators and fields where you provide the size to be used as the search criteria.
1. Select a property in the Choose... drop-down.
2. Select an operator.
3. Specify a value.
4. Click to add another criteria (all of which must be satisfied for a file to be considered a match) and
repeat the preceding steps.
3. Click the Generate Report button to generate a custom report containing the search results.
If you search within a directory, only files within that directory will be found. For example, if you browse /user
and do a search, you might find /user/foo/file, but you will not find /bar/baz.
Enabling Snapshots
To enable snapshots for an HDFS directory and its contents, see Managing HDFS Snapshots.
Setting Quotas
To set quotas for an HDFS directory and its contents, see Setting HDFS Quotas.
Cloudera Operation | 97
Monitoring and Diagnostics
Logs include APPARENT These deadlock messages There are a variety of ways to react to these log entries.
DEADLOCK entries for c3p0. are cause by the c3p0
• You may ignore these messages if system
process not making
performance is not otherwise affected. Because
progress at the expected
these entries often occur during slow progress, they
rate. This can indicate
may be ignored in some cases.
either that c3p0 is
deadlocked or that its • You may modify the timer triggers. If c3p0 is making
progress is slow enough to slow progress, increasing the period of time during
trigger these messages. In which progress is evaluated stop the log entries
many cases, progress is from occurring. The default time between Timer
occurring and these triggers is 10 seconds and is configurable indirectly
messages should not be by configuring maxAdministrativeTaskTime. For
seen as catastrophic. more information, see maxAdministrativeTaskTime.
• You may increase the number of threads in the c3p0
pool, thereby increasing the resources available to
make progress on tasks. For more information, see
numHelperThreads.
Starting Services
After you click the Start The host is disconnected • Look at the logs for the service for causes of the
button to start a service, from the Server, as will be problem.
the Finished status doesn't indicated by missing • Restart the Agents on the hosts where the
display. heartbeats on the Hosts heartbeats are missing.
tab.
This may not be merely a
case of the status not Subcommands failed • Look at the log file at
getting displayed. It could resulting in errors in the /var/log/cloudera-scm-server/cloudera-scm-server.log
be for a number of reasons log file indicating that for more details on the errors. For example, if the
such as network either the command timed port is already occupied you should see an "Address
connectivity issues or out or the target port was in use" error.
subcommand failures. already occupied • Navigate to the Hosts > Status tab. Click on the
Name of the host you want to inspect. Now go to
98 | Cloudera Operation
Monitoring and Diagnostics
After you click Start to A port specified in the Enter an available port number in the port property
start a service, the Configuration tab of the (such as JobTracker port) in the Configuration tab of
Finished status displays service is already being the service.
but there are error used in your cluster. For
messages. The example, the JobTracker
subcommands to start port is in use by another
service components (such process.
as JobTracker and one or
There are incorrect Enter correct directories in the Configuration tab of the
more TaskTrackers) do not
directories specified in the service.
start.
Configuration tab of the
service (such as the log
directory).
Job is Failing No space left on device. One approach is to use a system monitoring tool such
as Nagios to alert on the disk space or quickly check
disk space across all systems. If you don't have Nagios
or equivalent you can do the following to determine
the source of the space issue:
In the JobTracker Web UI, drill down from the job, to the
map or reduce, to the task attempt details to see which
TaskTracker the task executed and failed on due to disk
space. For example:
http://JTHost:50030/taskdetails.jsp?tipid=TaskID.
You can see on which host the task is failing in the
Machine column.
In the NameNode Web UI, inspect the % used column
on the NameNode Live Nodes page:
http://namenode:50070/dfsnodelist.jsp?whatNodes=LIVE.
Cloudera Operation | 99
Monitoring and Diagnostics