Sunteți pe pagina 1din 91

Apache Kudu (incubating)

User Guide
Important Notice
2010-2016 Cloudera, Inc. All rights reserved.

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 may have patents, patent applications, trademarks, copyrights, or other


intellectual property rights covering subject matter in this document. Except as expressly
provided in any written license agreement from Cloudera, the furnishing of this document
does not give you any license to these patents, trademarks copyrights, or other
intellectual property. For information about patents covering Cloudera products, see
http://tiny.cloudera.com/patents.

The information in this document is subject to change without notice. Cloudera shall
not be liable for any damages resulting from technical errors or omissions which may
be present in this document, or from use of this document.

Cloudera, Inc.
1001 Page Mill Road, Bldg 3
Palo Alto, CA 94304
info@cloudera.com
US: 1-888-789-1488
Intl: 1-650-362-0488
www.cloudera.com

Release Information

Version: Kudu 0.9.0


Date: July 1, 2016
Table of Contents

About Apache Kudu.................................................................................................6


Concepts and Terms.............................................................................................................................................6
Columnar Datastore...............................................................................................................................................................6
Raft Consensus Algorithm......................................................................................................................................................6
Table.......................................................................................................................................................................................7
Tablet.....................................................................................................................................................................................7
Tablet Server..........................................................................................................................................................................7
Master....................................................................................................................................................................................7
Catalog Table.........................................................................................................................................................................7
Logical Replication.................................................................................................................................................................7
Architectural Overview.........................................................................................................................................7
Example Use Cases...............................................................................................................................................8
Next Steps............................................................................................................................................................9

Apache Kudu (incubating) Release Notes...............................................................10


Introducing Apache Kudu (incubating)...............................................................................................................10
About the Kudu Public Beta...............................................................................................................................10
Resources...........................................................................................................................................................11
Installation Options............................................................................................................................................11
Kudu 0.9.0 Release Notes...................................................................................................................................11
New Features in Kudu 0.9.0.................................................................................................................................................11
Other Improvements and Changes in Kudu 0.9.0................................................................................................................11
Issues Fixed in Kudu 0.9.0....................................................................................................................................................12
Incompatible Changes in Kudu 0.9.0....................................................................................................................................12
Limitations of Kudu 0.9.0.....................................................................................................................................................12
Upgrade Notes for Kudu 0.9.0.............................................................................................................................................12
Kudu 0.8.0 Release Notes...................................................................................................................................12
New Features in Kudu 0.8.0.................................................................................................................................................12
Other Improvements in Kudu 0.8.0......................................................................................................................................12
Issues Fixed in Kudu 0.8.0....................................................................................................................................................13
Incompatible Changes in Kudu 0.8.0....................................................................................................................................13
Limitations of Kudu 0.8.0.....................................................................................................................................................13
Upgrade Notes for Kudu 0.8.0.............................................................................................................................................13
Kudu 0.7.1 Release Notes...................................................................................................................................13
Issues Fixed in Kudu 0.7.1....................................................................................................................................................13
Limitations of Kudu 0.7.1.....................................................................................................................................................13
Upgrade Notes For Kudu 0.7.1.............................................................................................................................................14
Kudu 0.7.0 Release Notes...................................................................................................................................14
New Features in Kudu 0.7.0.................................................................................................................................................14
Other Improvements in Kudu 0.7.0......................................................................................................................................14
Issues Fixed in Kudu 0.7.0....................................................................................................................................................14
Incompatible Changes in Kudu 0.7.0....................................................................................................................................14
Limitations of Kudu 0.7.0.....................................................................................................................................................15
Upgrade Notes For Kudu 0.7.0.............................................................................................................................................16
Kudu 0.6 Release Notes......................................................................................................................................16
New Features in Kudu 0.6....................................................................................................................................................16
Issues Fixed in Kudu 0.6.......................................................................................................................................................17
Limitations of Kudu 0.6........................................................................................................................................................17
Upgrade Notes For Kudu 0.6................................................................................................................................................18
Kudu 0.5 Release Notes......................................................................................................................................19
Limitations of Kudu 0.5........................................................................................................................................................19
Next Steps..........................................................................................................................................................20

Installing Apache Kudu...........................................................................................21


Kudu Installation Requirements.........................................................................................................................21
Install Kudu Using Cloudera Manager................................................................................................................21
Install Kudu Using Parcels....................................................................................................................................................21
Install Kudu Using Packages.................................................................................................................................................22
Install Kudu Using the Command Line................................................................................................................23
Upgrading Kudu..................................................................................................................................................24
Upgrading Kudu Using Parcels.............................................................................................................................................24
Upgrade Kudu Using Packages............................................................................................................................................25
Next Steps..........................................................................................................................................................25

Installing and Using Apache Impala (incubating) With Apache Kudu.......................26


Installing Impala_Kudu Using Cloudera Manager..............................................................................................26
Installing Impala_Kudu Parcels Using the deploy.py Script..............................................................................................26
Installing Impala_Kudu Parcels Manually............................................................................................................................30
Installing Impala_Kudu Packages........................................................................................................................................32
Installing Impala_Kudu Using the Command Line..............................................................................................32
Using Impala With Kudu.....................................................................................................................................33
Internal and External Impala Tables....................................................................................................................................33
Querying an Existing Kudu Table In Impala..........................................................................................................................33
Creating a New Kudu Table From Impala.............................................................................................................................34
Understanding SQL Operators and Kudu.............................................................................................................................38
Inserting a Row....................................................................................................................................................................39
Updating a Row...................................................................................................................................................................40
Deleting a Row.....................................................................................................................................................................40
Failures During INSERT, UPDATE, and DELETE Operations................................................................................................40
Altering Table Properties......................................................................................................................................................40
Dropping a Table..................................................................................................................................................................41
Next Steps..........................................................................................................................................................41

Developing With Apache Kudu...............................................................................42


Viewing the API Documentation........................................................................................................................42
Kudu Example Applications................................................................................................................................42
Example Apache Impala Commands With Kudu................................................................................................43
Integration with MapReduce, YARN, and Other Frameworks............................................................................43

Troubleshooting Apache Kudu................................................................................44


Issues Starting or Restarting the Table Server....................................................................................................44
Error during hole punch test.................................................................................................................................44
Clock is not synchronized...........................................................................................................................44
deploy.py script exits with create: error: too few arguments................................................................44
Troubleshooting Performance Issues.................................................................................................................45
Kudu Tracing........................................................................................................................................................................45

Cloudera Manager Metrics and Properties for Kudu...............................................46


Kudu (Beta) Metrics...........................................................................................................................................46
Kudu Replica Metrics..........................................................................................................................................46
Tablet Server Metrics.........................................................................................................................................57
Kudu (Beta) Properties in CDH 5.7.0..................................................................................................................70
Master..................................................................................................................................................................................70
Service-Wide........................................................................................................................................................................78
Tablet Server........................................................................................................................................................................82

More Resources for Apache Kudu...........................................................................91


About Apache Kudu

About Apache Kudu


Apache Kudu is a columnar storage manager developed for the Hadoop platform. Kudu shares the common technical
properties of Hadoop ecosystem applications: It runs on commodity hardware, is horizontally scalable, and supports
highly available operation.
Apache Kudu is undergoing incubation in the Apache Software Foundation.
Kudu's benefits include:
Fast processing of OLAP workloads.
Integration with MapReduce, Spark, Flume, and other Hadoop ecosystem components.
Tight integration with Apache Impala (incubating), making it a good, mutable alternative to using HDFS with
Parquet.
Strong but flexible consistency model, allowing you to choose consistency requirements on a per-request basis,
including the option for strict serialized consistency.
Strong performance for running sequential and random workloads simultaneously.
Easy administration and management through Cloudera Manager.
High availability. Tablet Servers and Master use the Raft consensus algorithm, which ensures availability as long
as more replicas are available than unavailable. Reads can be serviced by read-only follower tablets, even in the
event of a leader tablet failure.
Structured data model.
By combining all of these properties, Kudu targets support for applications that are difficult or impossible to implement
on currently available Hadoop storage technologies. Applications for which Kudu is a viable solution include:
Reporting applications where new data must be immediately available for end users
Time-series applications that must support queries across large amounts of historic data while simultaneously
returning granular queries about an individual entity
Applications that use predictive models to make real-time decisions, with periodic refreshes of the predictive
model based on all historical data
For more details, see Example Use Cases on page 8.

Concepts and Terms


Columnar Datastore
Kudu is a columnar datastore. A columnar datastore stores data in strongly-typed columns. With a proper design, a
columnar store can be superior for analytical or data warehousing workloads for several reasons.
Read Efficiency
For analytical queries, you can read a single column, or a portion of that column, while ignoring other columns. This
means you can fulfill your while reading a minimal number of blocks on disk. With a row-based store, you need to
read the entire row, even if you only return values from a few columns.
Data Compression
Because a given column contains only one type of data, pattern-based compression can be orders of magnitude
more efficient than compressing mixed data types. Combined with the efficiencies of reading data from columns,
compression allows you to fulfill your query while reading even fewer blocks from disk.

Raft Consensus Algorithm


The Raft consensus algorithm provides a way to elect a leader for a distributed cluster from a pool of potential leaders,
or candidates. Other cluster members are followers, who are not candidates or leaders, but always look to the current

6 | Apache Kudu (incubating) User Guide


About Apache Kudu

leader for consensus. Kudu uses the Raft Consensus Algorithm for the election of masters and leader tablets, as well
as determining the success or failure of a given write operation.

Table
A table is where your data is stored in Kudu. A table has a schema and a totally ordered primary key. A table is split
into segments called tablets, by primary key.

Tablet
A tablet is a contiguous segment of a table. A given tablet is replicated on multiple tablet servers, and one of these
replicas is considered the leader tablet. Any replica can service reads, and writes require consensus among the set of
tablet servers serving the tablet.

Tablet Server
A tablet server stores and serves tablets to clients. For a given tablet, one tablet server serves the lead tablet, and the
others serve follower replicas of that tablet. Only leaders service write requests, while leaders or followers each service
read requests. Leaders are elected using Raft consensus. One tablet server can serve multiple tablets, and one tablet
can be served by multiple tablet servers.

Master
The master keeps track of all the tablets, tablet servers, the catalog table, and other metadata related to the cluster.
At a given point in time, there can only be one acting master (the leader). If the current leader disappears, a new master
is elected using Raft consensus.
The master also coordinates metadata operations for clients. For example, when creating a new table, the client
internally sends an RPC to the master. The master writes the metadata for the new table into the catalog table, and
coordinates the process of creating tablets on the tablet servers.
All the master's data is stored in a tablet, which can be replicated to all the other candidate masters.
Tablet servers heartbeat to the master at a set interval (the default is once per second).

Catalog Table
The catalog table is the central location for metadata of Kudu. It stores information about tables and tablets. The
catalog table is accessible to clients through the master, using the client API.
Tables
table schemas, locations, and states
Tablets
the list of existing tablets, which tablet servers have replicas of each tablet, the tablet's current state, and start and
end keys.

Logical Replication
Kudu replicates operations, not on-disk data. This is referred to as logical replication, as opposed to physical replication.
Physical operations, such as compaction, do not need to transmit the data over the network. This results in a substantial
reduction in network traffic for heavy write scenarios.

Architectural Overview
The following diagram shows a Kudu cluster with three masters and multiple tablet servers, each serving multiple
tablets. It illustrates how Raft consensus is used to allow for both leaders and followers for both the masters and tablet
servers. In addition, a tablet server can be a leader for some tablets, and a follower for others. Leaders are shown in
gold, while followers are shown in blue.

Apache Kudu (incubating) User Guide | 7


About Apache Kudu

Figure 1: Kudu Architectural Overview

Example Use Cases


Streaming Input with Near Real Time Availability
A common business challenge is one where new data arrives rapidly and constantly, and the same data needs to be
available in near real time for reads, scans, and updates. Kudu offers the powerful combination of fast inserts and
updates with efficient columnar scans to enable real-time analytics use cases on a single storage layer.

Time-series application with widely varying access patterns


A time-series schema is one in which data points are organized and keyed according to the time at which they occurred.
This can be useful for investigating the performance of metrics over time or attempting to predict future behavior
based on past data. For instance, time-series customer data might be used both to store purchase click-stream history
and to predict future purchases, or for use by a customer support representative. While these different types of analysis
are occurring, inserts and mutations may also be occurring individually and in bulk, and become available immediately
to read workloads. Kudu can handle all of these access patterns simultaneously in a scalable and efficient manner.
Kudu is a good fit for time-series workloads for several reasons. With Kudu's support for hash-based partitioning,
combined with its native support for compound row keys, it is simple to set up a table spread across many servers
without the risk of "hotspotting" that is commonly observed when range partitioning is used. Kudu's columnar storage
engine is also beneficial in this context, because many time-series workloads read only a few columns, as opposed to
the whole row.
In the past, you might have needed to use multiple datastores to handle different data access patterns. This practice
adds complexity to your application and operations, and duplicates storage. Kudu can handle all of these access patterns
natively and efficiently, without the need to off-load work to other datastores.

Predictive Modeling
Data analysts often develop predictive learning models from large sets of data. The model and the data may need to
be updated or modified often as the learning takes place or as the situation being modeled changes. In addition, the
scientist may want to change one or more factors in the model to see what happens over time. Updating a large set
of data stored in files in HDFS is resource-intensive, as each file needs to be completely rewritten. In Kudu, updates
happen in near real time. The scientist can tweak the value, re-run the query, and refresh the graph in seconds or

8 | Apache Kudu (incubating) User Guide


About Apache Kudu

minutes, rather than hours or days. In addition, batch or incremental algorithms can be run across the data at any
time, with near-real-time results.

Combining Data In Kudu With Legacy Systems


Companies generate data from multiple sources and store it in a variety of systems and formats. For instance, some
of your data may be stored in Kudu, some in a traditional RDBMS, and some in files in HDFS. You can access and query
all of these sources and formats using Impala, without the need to change your legacy systems.

Next Steps
Read about installing Kudu.
Learn about using Kudu with Impala.

Apache Kudu (incubating) User Guide | 9


Apache Kudu (incubating) Release Notes

Apache Kudu (incubating) Release Notes

Introducing Apache Kudu (incubating)


Kudu's benefits include:
Fast processing of OLAP workloads.
Integration with MapReduce, Spark, Flume, and other Hadoop ecosystem components.
Tight integration with Apache Impala (incubating), making it a good, mutable alternative to using HDFS with
Parquet.
Strong but flexible consistency model, allowing you to choose consistency requirements on a per-request basis,
including the option for strict serialized consistency.
Strong performance for running sequential and random workloads simultaneously.
Easy administration and management through Cloudera Manager.
High availability. Tablet Servers and Master use the Raft consensus algorithm, which ensures availability as long
as more replicas are available than unavailable. Reads can be serviced by read-only follower tablets, even in the
event of a leader tablet failure.
Structured data model.

Kudu-Impala Integration Features


Impala supports creating and dropping tables using Kudu as the persistence layer. The tables follow the same
internal/external approach as other tables in Impala, allowing flexible data ingestion and querying.
Data can be inserted into Kudu tables from Impala using the same mechanisms as any other table with HDFS or
HBase persistence.
Impala supports the UPDATE and DELETE SQL commands to modify existing data in a Kudu table row-by-row or
as a batch. The syntax of the SQL commands is as compatible as possible with existing solutions. In addition to
simple DELETE or UPDATE commands, you can specify complex joins in the FROM clause of the query, using the
same syntax as a regular SELECT statement.
Similar to partitioning of tables in Hive, Kudu allows you to dynamically pre-split tables by hash or range into a
predefined number of tablets, in order to distribute writes and queries evenly across your cluster. You can partition
by any number of primary key columns, with any number of hashes and an optional list of split rows.
To achieve the highest possible performance, the Kudu client in Impala parallelizes scans to multiple tablets.
Where possible, Impala pushes down predicate evaluation to Kudu, so that predicates are evaluated as close as
to the data as possible. Query performance is comparable to Parquet in many workloads.

About the Kudu Public Beta


Kudu is in public beta. Do not run beta releases on production clusters. During the public beta period, Kudu is supported
through a public JIRA, our Cloudera Community Kudu forum, and a public mailing list monitored by the Kudu development
team and community members. In addition, a public Slack instance is available. Commercial support is not available
at this time.
You can submit any issues or feedback related to your Kudu experience through either the JIRA system or the
mailing list. The Kudu development team and community members will respond and assist as quickly as possible.
The Kudu team will work with early adopters to fix bugs and release new binary drops when fixes or features are
ready. However, the team cannot commit to issue resolution or bug-fix delivery times during the public beta
period, and some fixes or enhancements might not be selected for a release.
The Kudu team cannot guarantee time frames or contents for future beta code drops. Code drops will be announced
to the user group when they occur.

10 | Apache Kudu (incubating) User Guide


Apache Kudu (incubating) Release Notes

No guarantees are made regarding upgrades from this release to follow-on releases. Although multiple drops of
beta code are planned, the team cannot guarantee their schedules or contents.
For more details, and to keep up to date on Kudu, see http://getkudu.io/.

Resources
The official Apache Kudu (Incubating) website
Kudu Github repository
Kudu Documentation

Installation Options
A Quickstart VM is provided to get you up and running quickly.
You can install parcels or packages in clusters managed by Cloudera Manager, or packages in standalone CDH
clusters.
You can build Kudu from source.
See Installing Apache Kudu on page 21 for full details.

Kudu 0.9.0 Release Notes


Kudu 0.9.0 delivers incremental features, improvements, and bug fixes. See also Issues resolved for Kudu 0.9 and Git
changes between 0.8.0 and 0.9.0
To upgrade Kudu to 0.9.0, see Upgrade Parcels or Upgrade Packages

New Features in Kudu 0.9.0


KUDU-1306 Scan token API for creating partition-aware scan descriptors. This API simplifies executing parallel
scans for clients and query engines.
KUDU-1002 Added support for UPSERT operations, whereby a row is inserted if it does not yet exist, but updated
if it does. Support for UPSERT is included in the Java, C++, and Python APIs, but not Impala.
Gerrit 2848 Added a Kudu datasource for Spark. This datasource uses the Kudu client directly instead of using the
MapReduce API. Predicate pushdowns for spark-sql and Spark filters are included, as well as parallel retrieval
for multiple tablets and column projections. See an example of Kudu integration with Spark.
Gerrit 2992 Added the ability to update and insert from Spark using a Kudu datasource.

Other Improvements and Changes in Kudu 0.9.0


All Kudu clients have longer default timeout values, as listed below.
Java
The default operation timeout and the default admin operation timeout are now set to 30 seconds instead of
10.
The default socket read timeout is now 10 seconds instead of 5.
C++
The default admin timeout is now 30 seconds instead of 10.
The default RPC timeout is now 10 seconds instead of 5.
The default scan timeout is now 30 seconds instead of 15.
Some default settings related to I/O behavior during flushes and compactions have been changed:
The default for flush_threshold_mb has been increased from 64 MB to 1000 MB.

Apache Kudu (incubating) User Guide | 11


Apache Kudu (incubating) Release Notes

The default for cfile_do_on_finish has been changed from close to flush. Experiments using YCSB indicate
that these values provide better throughput for write-heavy applications on typical server hardware.
KUDU-1415 Added statistics in the Java client, such as the number of bytes written and the number of operations
applied.
KUDU-1451 Tablet servers take less time to restart when the tablet server must clean up many previously deleted
tablets. Tablets are now cleaned up after they are deleted.

Issues Fixed in Kudu 0.9.0


KUDU-678 Fixed a leak that occurred during DiskRowSet compactions where tiny blocks were still written to disk
even if there were no REDO records. With the default block manager, this often resulted in block containers with
thousands of tiny blocks.
KUDU-1437 Fixed a data corruption issue that occurred after compacting sequences of negative INT32 values in
a column that was configured with RLE encoding.

Incompatible Changes in Kudu 0.9.0


The KuduTableInputFormat command has changed the way in which it handles scan predicates, including how
it serializes predicates to the job configuration object. The new configuration key is
kudu.mapreduce.encoded.predicate. Clients using the TableInputFormatConfigurator are not affected.
The kudu-spark sub-project has been renamed to follow naming conventions for Scala. The new name is
kudu-spark_2.10.
Default table partitioning has been removed. All tables must now be created with explicit partitioning. Existing
tables are unaffected. See the schema design guide for more details.

Limitations of Kudu 0.9.0


Kudu 0.9.0 has the same limitations as Kudu 0.8, listed in Limitations of Kudu 0.7.0 on page 15.

Upgrade Notes for Kudu 0.9.0


Before upgrading to Kudu 0.9.0, see Incompatible Changes in Kudu 0.9.0 on page 12.

Kudu 0.8.0 Release Notes


Kudu 0.8.0 delivers incremental features, improvements, and bug fixes over the previous versions. See also Issues
resolved for Kudu 0.8 and Git changes between 0.7.1 and 0.8.0
To upgrade Kudu to 0.8.0, see Upgrade Parcels or Upgrade Packages

New Features in Kudu 0.8.0


KUDU-431 A simple Flume sink has been implemented.

Other Improvements in Kudu 0.8.0


KUDU-839 Java RowError now uses an enum error code.
Gerrit 2138 The handling of column predicates has been re-implemented in the server and clients.
KUDU-1379 Partition pruning has been implemented for C++ clients (but not yet for the Java client). This feature
allows you to avoid reading a tablet if you know it does not serve the row keys you are querying.
Gerrit 2641 Kudu now uses earliest-deadline-first RPC scheduling and rejection. This changes the behavior
of the RPC service queue to prevent unfairness when processing a backlog of RPC threads and to increase the
likelihood that an RPC will be processed before it can time out.
Gerrit 2239 The concept of "feature flags" was introduced in order to manage compatibility between different
Kudu versions. One case where this is helpful is if a newer client attempts to use a feature unsupported by the
currently-running tablet server. Rather than receiving a cryptic error, the user gets an error message that is easier

12 | Apache Kudu (incubating) User Guide


Apache Kudu (incubating) Release Notes

to interpret. This is an internal change for Kudu system developers and requires no action by users of the clients
or API.

Issues Fixed in Kudu 0.8.0


KUDU-1337 Tablets from tables that were deleted might be unnecessarily re-bootstrapped when the leader gets
the notification to delete itself after the replicas do.
KUDU-969 If a tablet server shuts down while compacting a rowset and receiving updates for it, it might immediately
crash upon restart while bootstrapping that rowset's tablet.
KUDU-1354 Due to a bug in the Kudu implementation of MVCC where row locks were released before the MVCC
commit happened, flushed data would include out-of-order transactions, triggering a crash on the next compaction.
KUDU-1322 The C++ client now retries write operations if the tablet it is trying to reach has already been deleted.
Gerrit 2571 Due to a bug in the Java client, users were unable to close the kudu-spark shell because of lingering
non-daemon threads.

Incompatible Changes in Kudu 0.8.0


0.8.0 clients are not fully compatible with servers running Kudu 0.7.1 or lower. In particular, scans that specify column
predicates will fail. To work around this issue, upgrade all Kudu servers before upgrading clients.

Limitations of Kudu 0.8.0


Kudu 0.8.0 has the same limitations as Kudu 0.7.0, listed in Limitations of Kudu 0.7.0 on page 15.

Upgrade Notes for Kudu 0.8.0


Before upgrading to Kudu 0.8.0, see Incompatible Changes in Kudu 0.8.0 on page 13.

Kudu 0.7.1 Release Notes


Kudu 0.7.1 is a bug-fix release for 0.7.0. Users of Kudu 0.7.0 should upgrade to this version. See also Issues resolved
for Kudu 0.7.1 and Git changes between 0.7.0 and 0.7.1.
To upgrade Kudu to 0.7.1, see Upgrade Parcels or Upgrade Packages.

Issues Fixed in Kudu 0.7.1


For a list of issues fixed in Kudu 0.7.1, see this JIRA query. The following notable fixes are included:
KUDU-1325 fixes a tablet server crash that could occur during table deletion. In some cases, while a table was
being deleted, other replicas would attempt to re-replicate tablets to servers that had already processed the
deletion. This could trigger a race condition that caused a crash.
KUDU-1341 fixes a potential data corruption and crash that could happen shortly after tablet server restarts in
workloads that repeatedly delete and re-insert rows with the same primary key. In most cases, this corruption
affected only a single replica and could be repaired by re-replicating from another.
KUDU-1343 fixes a bug in the Java client that occurs when a scanner has to scan multiple batches from one tablet
and then start scanning from another. In particular, this affected any scans using the Java client that read large
numbers of rows from multi-tablet tables.
KUDU-1345 fixes a bug where the hybrid clock could jump backwards, resulting in a crash followed by an inability
to restart the affected tablet server.
KUDU-1360 fixes a bug in the kudu-spark module that prevented reading rows with NULL values.

Limitations of Kudu 0.7.1


Kudu 0.7.1 has the same limitations as Kudu 0.7.0, listed in Limitations of Kudu 0.7.0 on page 15.

Apache Kudu (incubating) User Guide | 13


Apache Kudu (incubating) Release Notes

Upgrade Notes For Kudu 0.7.1


Kudu 0.7.1 has the same upgrade notes as Kudu 0.7.0, listed in Upgrade Notes For Kudu 0.7.0 on page 16.

Kudu 0.7.0 Release Notes


Kudu 0.7.0 is the first release as part of the Apache Incubator and includes a number of changes, new features,
improvements, and fixes. See also Issues resolved for Kudu 0.7.0 and Git changes between 0.6.0 and 0.7.0.
To upgrade Kudu to 0.7, see Upgrade Parcels or Upgrade Packages.

New Features in Kudu 0.7.0


Initial work for Spark integration
With the goal of Spark integration, a new kuduRDD API has been added that wraps newAPIHadoopRDD and includes
a default source for Spark SQL.

Other Improvements in Kudu 0.7.0


Support for RHEL 7, CentOS 7 , and SLES 12 has been added.
The Python client is no longer considered experimental.
The file block manager performance is improved, but it is still not recommended for real-world use.
The master now attempts to spread tablets more evenly across the cluster during table creation. This has no
impact on existing tables, but improves the speed at which under-replicated tablets are re-replicated after a tablet
server failure.
All licensing documents have been modified to adhere to ASF guidelines.
The C++ client library is now explicitly built against the old GCC 5 ABI. If you use gcc5 to build a Kudu application,
your application must use the old ABI as well. This is typically achieved by defining the _GLIBCXX_USE_CXX11_ABI
macro at compile time when building your application. For more information, see GCC 5 and the C++ 11 ABI.

Issues Fixed in Kudu 0.7.0


For a list of issues fixed in Kudu 0.7, see this JIRA query.

Incompatible Changes in Kudu 0.7.0


The C++ client includes a new API, KuduScanBatch, which performs better when a large number of small rows
are returned in a batch. The old API of vector<KuduRowResult> is deprecated.

Note: This change is API-compatible but not ABI-compatible.

The default replication factor has been changed from 1 to 3. Existing tables continue to use the replication factor
they were created with. Applications that create tables may not work properly if they assume a replication factor
of 1 and fewer than 3 replicas are available. To use the previous default replication factor, start the master with
the configuration flag --default_num_replicas=1.
The Python client has been rewritten, with a focus on improving code quality and testing. The read path (scanners)
has been improved by adding many of the features already supported by the C++ and Java clients. The Python
client is no longer considered experimental.

14 | Apache Kudu (incubating) User Guide


Apache Kudu (incubating) Release Notes

Limitations of Kudu 0.7.0

Operating System Limitations


RHEL 7 or 6.4 or newer, CentOS 7 or 6.4 or newer, and Ubuntu Trusty are the only operating systems supported
for installation in the public beta. Others may work but have not been tested. You can build Kudu from source on
SLES 12, but binaries are not provided.

Storage Limitations
Kudu has been tested with up to 4 TB of data per tablet server. More testing is needed for denser storage
configurations.

Schema Limitations
Testing with more than 20 columns has been limited.
Multi-kilobyte rows have not been thoroughly tested.
The columns that make up the primary key must be listed first in the schema.
Key columns cannot be altered. You must drop and re-create a table to change its keys.
Key columns must not be null.
Columns with DOUBLE, FLOAT, or BOOL types are not allowed as part of a primary key definition.
Type and nullability of existing columns cannot be changed by altering the table.
A tables primary key cannot be changed.
Dropping a column does not immediately reclaim space.; compaction must run first. You cannot run compaction
manually. Dropping the table reclaims space immediately.

Ingest Limitations
Ingest through Sqoop or Flume is not supported in the public beta. For bulk ingest, use Impalas CREATE TABLE
AS SELECT functionality or use Kudu's Java or C++ API.
Tables must be manually pre-split into tablets using simple or compound primary keys. Automatic splitting is not
yet possible. Instead, add split rows at table creation.
Tablets cannot currently be merged. Instead, create a new table with the contents of the old tables to be merged.

Cloudera Manager Limitations


Some metrics, such as latency histograms, are not yet available in Cloudera Manager.
Some service and role chart pages are still under development. More charts and metrics will be visible in future
releases.

Replication and Backup Limitations


Replication and failover of Kudu masters is considered experimental. Cloudera recommends running a single
master and periodically perform a manual backup of its data directories.

Impala Limitations
To use Kudu with Impala, you must install a special release of Impala. Obtaining and installing a compatible Impala
release is detailed in Installing and Using Apache Impala (incubating) With Apache Kudu on page 26.
To use Impala_Kudu alongside an existing Impala instance, you must install using parcels.
Updates, inserts, and deletes through Impala are nontransactional. If a query fails, any partial effects are not be
rolled back.
All queries are distributed across all Impala nodes that host a replica of the target table(s), even if a predicate on
a primary key could correctly restrict the query to a single tablet. This limits the maximum concurrency of short
queries made through Impala.
Timestamp and decimal type are not supported.

Apache Kudu (incubating) User Guide | 15


Apache Kudu (incubating) Release Notes

The maximum parallelism of a single query is limited to the number of tablets in a table. To optimize analytic
performance, spread your data across 10 or more tablets per host for a large table.
Impala can push down only predicates involving =, <=, >=, or BETWEEN comparisons between a column and a
literal value. Impala pushes down predicates < and > for integer columns only. For example, for a table with an
integer key ts, and a string key name, the predicate WHERE ts >= 12345 converts to an efficient range scan,
whereas WHERE name > smith currently fetches all data from the table and evaluates the predicate within
Impala.

Security Limitations
Authentication and authorization are not included in the public beta.
Data encryption is not included in the public beta.

Client and API Limitations


Potentially incompatible C++ and Java API changes may be required during the public beta.
ALTER TABLE is not yet fully supported through the client APIs. More ALTER TABLE operations will be available
in future betas.

Application Integration Limitations


The Spark DataFrame implementation is not yet complete.

Other Known Issues


The following are known bugs and issues with the current beta release. They will be addressed in later beta releases.
Building Kudu from source using gcc 4.6 or 4.7 causes runtime and test failures. Be sure you are using a different
version of gcc if you build Kudu from source.
If the Kudu master is configured with the -log_fsync_all option, tablet servers and clients will experience
frequent timeouts, and the cluster may become unusable.
If a tablet server has a very large number of tablets, it may take several minutes to start up. Limit the number of
tablets per server to 100 or fewer, and consider this limitation when pre-splitting your tables. If you notice slow
start-up times, you can monitor the number of tablets per server in the web UI.

Upgrade Notes For Kudu 0.7.0


Kudu 0.7.0 maintains wire compatibility with Kudu 0.6.0. A Kudu 0.7.0 client can communicate with a Kudu 0.6.0
cluster, and vice versa. For that reason, you do not need to upgrade client JARs at the same time the cluster is
upgraded.
The same wire compatibility guarantees apply to the Impala_Kudu fork that was released with Kudu 0.5.0.
Review Incompatible Changes in Kudu 0.7.0 on page 14 before upgrading to Kudu 0.7.

See Upgrading Kudu for instructions.

Kudu 0.6 Release Notes


To upgrade Kudu to 0.6, see Upgrade Parcels or Upgrade Packages.

New Features in Kudu 0.6


Row Error Reporting
The Java client includes new methods countPendingErrors() and getPendingErrors() on KuduSession.
These methods allow you to count and retrieve outstanding row errors when configuring sessions with
AUTO_FLUSH_BACKGROUND.

16 | Apache Kudu (incubating) User Guide


Apache Kudu (incubating) Release Notes

New Server-Side Metrics


New server-level metrics allow you to monitor CPU usage and context switching.

Issues Fixed in Kudu 0.6


For a list of issues addressed in Kudu 0.6, see this JIRA query.

Limitations of Kudu 0.6

Operating System Limitations


RHEL 6.4 or newer, CentOS 6.4 or newer, and Ubuntu Trusty are the only operating systems supported for
installation in the public beta. Others may work but have not been tested.

Storage Limitations
Kudu has been tested with up to 4 TB of data per tablet server. More testing is needed for denser storage
configurations.

Schema Limitations
Testing with more than 20 columns has been limited.
Multi-kilobyte rows have not been thoroughly tested.
The columns which make up the primary key must be listed first in the schema.
Key columns cannot be altered. You must drop and recreate a table to change its keys.
Key columns must not be null.
Columns with DOUBLE, FLOAT, or BOOL types are not allowed as part of a primary key definition.
Type and nullability of existing columns cannot be changed by altering the table.
A tables primary key cannot be changed.
Dropping a column does not immediately reclaim space. Compaction must run first. There is no way to run
compaction manually, but dropping the table will reclaim the space immediately.

Ingest Limitations
Ingest using Sqoop or Flume is not supported in the public beta. The recommended approach for bulk ingest is to
use Impalas CREATE TABLE AS SELECT functionality or use the Kudu's Java or C++ API.
Tables must be manually pre-split into tablets using simple or compound primary keys. Automatic splitting is not
yet possible. Instead, add split rows at table creation.
Tablets cannot currently be merged. Instead, create a new table with the contents of the old tables to be merged.

Cloudera Manager Limitations


Some metrics, such as latency histograms, are not yet available in Cloudera Manager.
Some service and role chart pages are still under development. More charts and metrics will be visible in future
releases.

Replication and Backup Limitatinos


Replication and failover of Kudu masters is considered experimental. It is recommended to run a single master
and periodically perform a manual backup of its data directories.

Impala Limitations
To use Kudu with Impala, you must install a special release of Impala. Obtaining and installing a compatible Impala
release is detailed in Installing and Using Apache Impala (incubating) With Apache Kudu on page 26.
To use Impala_Kudu alongside an existing Impala instance, you must install using parcels.

Apache Kudu (incubating) User Guide | 17


Apache Kudu (incubating) Release Notes

Updates, inserts, and deletes using Impala are non-transactional. If a query fails part of the way through, its partial
effects will not be rolled back.
All queries will be distributed across all Impala nodes which host a replica of the target table(s), even if a predicate
on a primary key could correctly restrict the query to a single tablet. This limits the maximum concurrency of short
queries made using Impala.
No timestamp and decimal type support.
The maximum parallelism of a single query is limited to the number of tablets in a table. For good analytic
performance, aim for 10 or more tablets per host or large tables.
Impala is only able to push down predicates involving =, <=, >=, or BETWEEN comparisons between a column and
a literal value. Impala pushes down predicates < and > for integer columns only. For example, for a table with an
integer key ts, and a string key name, the predicate WHERE ts >= 12345 will convert into an efficient range
scan, whereas WHERE name > smith will currently fetch all data from the table and evaluate the predicate
within Impala.

Security Limitations
Authentication and authorization are not included in the public beta.
Data encryption is not included in the public beta.

Client and API Limitations


Potentially-incompatible C++ and Java API changes may be required during the public beta.
ALTER TABLE is not yet fully supported using the client APIs. More ALTER TABLE operations will become available
in future betas.
The Python API is not supported.

Application Integration Limitations


The Spark DataFrame implementation is not yet complete.

Other Known Issues


The following are known bugs and issues with the current beta release. They will be addressed in later beta releases.
Building Kudu from source using gcc 4.6 or 4.7 causes runtime and test failures. Be sure you are using a different
version of gcc if you build Kudu from source.
If the Kudu master is configured with the -log_fsync_all option, tablet servers and clients will experience
frequent timeouts, and the cluster may become unusable.
If a tablet server has a very large number of tablets, it may take several minutes to start up. It is recommended
to limit the number of tablets per server to 100 or fewer. Consider this limitation when pre-splitting your tables.
If you notice slow start-up times, you can monitor the number of tablets per server in the web UI.

Upgrade Notes For Kudu 0.6


Kudu 0.6.0 maintains wire compatibility with Kudu 0.5.0. This means that a Kudu 0.6.0 client can communicate
with a Kudu 0.5.0 cluster, and vice versa. For that reason, you do not need to upgrade client JARs at the same
time the cluster is upgraded.
The same wire compatibility guarantees apply to the Impala_Kudu fork that was released with Kudu 0.5.0 and
0.6.0.
The Kudu 0.6.0 client API is not compatible with the Kudu 0.5.0 client API. See the
link:release_notes.html#0.6.0[Kudu 0.6.0 release notes] for details.

See Upgrading Kudu for instructions.

18 | Apache Kudu (incubating) User Guide


Apache Kudu (incubating) Release Notes

Kudu 0.5 Release Notes


Limitations of Kudu 0.5

Operating System Limitations


RHEL 6.4 or newer, CentOS 6.4 or newer, and Ubuntu Trusty are the only operating systems supported for
installation in the public beta. Others may work but have not been tested.

Storage Limitations
Kudu has been tested with up to 4 TB of data per tablet server. More testing is needed for denser storage
configurations.

Schema Limitations
Testing with more than 20 columns has been limited.
Multi-kilobyte rows have not been thoroughly tested.
The columns which make up the primary key must be listed first in the schema.
Key columns cannot be altered. You must drop and recreate a table to change its keys.
Key columns must not be null.
Columns with DOUBLE, FLOAT, or BOOL types are not allowed as part of a primary key definition.
Type and nullability of existing columns cannot be changed by altering the table.
A tables primary key cannot be changed.
Dropping a column does not immediately reclaim space. Compaction must run first. There is no way to run
compaction manually, but dropping the table will reclaim the space immediately.

Ingest Limitations
Ingest using Sqoop or Flume is not supported in the public beta. The recommended approach for bulk ingest is to
use Impalas CREATE TABLE AS SELECT functionality or use the Kudu's Java or C++ API.
Tables must be manually pre-split into tablets using simple or compound primary keys. Automatic splitting is not
yet possible. Instead, add split rows at table creation.
Tablets cannot currently be merged. Instead, create a new table with the contents of the old tables to be merged.

Cloudera Manager Limitations


Some metrics, such as latency histograms, are not yet available in Cloudera Manager.
Some service and role chart pages are still under development. More charts and metrics will be visible in future
releases.

Replication and Backup Limitatinos


Replication and failover of Kudu masters is considered experimental. It is recommended to run a single master
and periodically perform a manual backup of its data directories.

Impala Limitations
To use Kudu with Impala, you must install a special release of Impala. Obtaining and installing a compatible Impala
release is detailed in Installing and Using Apache Impala (incubating) With Apache Kudu on page 26.
To use Impala_Kudu alongside an existing Impala instance, you must install using parcels.
Updates, inserts, and deletes using Impala are non-transactional. If a query fails part of the way through, its partial
effects will not be rolled back.

Apache Kudu (incubating) User Guide | 19


Apache Kudu (incubating) Release Notes

All queries will be distributed across all Impala nodes which host a replica of the target table(s), even if a predicate
on a primary key could correctly restrict the query to a single tablet. This limits the maximum concurrency of short
queries made using Impala.
No timestamp and decimal type support.
The maximum parallelism of a single query is limited to the number of tablets in a table. For good analytic
performance, aim for 10 or more tablets per host or large tables.
Impala is only able to push down predicates involving =, <=, >=, or BETWEEN comparisons between a column and
a literal value. Impala pushes down predicates < and > for integer columns only. For example, for a table with an
integer key ts, and a string key name, the predicate WHERE ts >= 12345 will convert into an efficient range
scan, whereas WHERE name > smith will currently fetch all data from the table and evaluate the predicate
within Impala.

Security Limitations
Authentication and authorization are not included in the public beta.
Data encryption is not included in the public beta.

Client and API Limitations


Potentially-incompatible C++ and Java API changes may be required during the public beta.
ALTER TABLE is not yet fully supported using the client APIs. More ALTER TABLE operations will become available
in future betas.
The Python API is not supported.

Application Integration Limitations


The Spark DataFrame implementation is not yet complete.

Other Known Issues


The following are known bugs and issues with the current beta release. They will be addressed in later beta releases.
Building Kudu from source using gcc 4.6 or 4.7 causes runtime and test failures. Be sure you are using a different
version of gcc if you build Kudu from source.
If the Kudu master is configured with the -log_fsync_all option, tablet servers and clients will experience
frequent timeouts, and the cluster may become unusable.
If a tablet server has a very large number of tablets, it may take several minutes to start up. It is recommended
to limit the number of tablets per server to 100 or fewer. Consider this limitation when pre-splitting your tables.
If you notice slow start-up times, you can monitor the number of tablets per server in the web UI.

Next Steps
Kudu Quickstart
Installing Kudu
Configuring Kudu

20 | Apache Kudu (incubating) User Guide


Installing Apache Kudu

Installing Apache Kudu


You can install Apache Kudu in a cluster managed by Cloudera Manager, using either parcels or packages. If you do
not use Cloudera Manager, you can install Kudu using packages.
Tip: To start using Kudu in minutes, without the need to install anything, see the Kudu Quickstart documentation.

Kudu Installation Requirements


An operating system and version supported by Cloudera.
To manage Kudu with Cloudera Manager, Cloudera Manager 5.4.3 or later and CDH 5.4 or later are required.
Cloudera Manager 5.4.7 is recommended, as it adds support for collecting metrics from Kudu.
A kernel version and filesystem that support hole punching. See Error during hole punch test on page 44. If you
cannot meet this requirement, see this workaround.
If solid state storage is available, storing Kudu WALs on such high-performance media may significantly improve
latency when Kudu is configured for its highest durability levels.

Install Kudu Using Cloudera Manager


To install and manage Kudu using Cloudera Manager, first download the Custom Service Descriptor (CSD) file for Kudu
and upload it to /opt/cloudera/csd/ on the Cloudera Manager server. Restart the Cloudera Manager server using
the following operating system command.

$ sudo service cloudera-scm-server restart

Next, follow the instructions in either Install Kudu Using Parcels on page 21 or Install Kudu Using Packages on page
22.

Install Kudu Using Parcels


After uploading the CSD file for Kudu and restarting the Cloudera Manager server, follow these steps to install Kudu
using parcels.
1. In Cloudera Manager, go to Hosts > Parcels. Find KUDU in the list, and click Download.
2. When the download is complete, select your cluster from the Locations selector, and click Distribute. If you only
have one cluster, it is selected automatically.
3. When distribution is complete, click Activate to activate the parcel. Restart the cluster when prompted. This may
take several minutes.
4. Install the Kudu (Beta) service on your cluster. Go to the cluster where you want to install Kudu. Click Actions >
Add a Service. Select Kudu (Beta) from the list, and click Continue.
5. Select a host for the master role and one or more hosts for the tablet server roles. A host can act as both a master
and a tablet server, but this may cause performance problems on a large cluster. The Kudu master process is not
resource-intensive and can be collocated with other similar processes such as the HDFS Namenode or YARN
ResourceManager. After selecting hosts, click Continue.
6. Configure the storage locations for Kudu data and write-ahead log (WAL) files on masters and tablet servers.
Cloudera Manager will create the directories.
You can use the same directory to store data and WALs.
You cannot store WALs in a subdirectory of the data directory.
If any host is both a master and tablet server, configure different directories for master and tablet server.
For instance, /data/kudu/master and /data/kudu/tserver.

Apache Kudu (incubating) User Guide | 21


Installing Apache Kudu

If you choose a filesystem that does not support hole punching, service start-up will fail. Only if service start-up
fails for this reason, exit the wizard by clicking the Cloudera logo at the top left, and enable the file block
manager. This is not appropriate for production. See Enabling the File Block Manager on page 22.
7. If your filesystem does support hole punching, do not exit the wizard. Click Continue. Kudu masters and tablet
servers are started. Otherwise, go to the Kudu (Beta) service, and click Actions > Start.
8. Verify that services are running using one of the following methods:
Examine the output of the ps command on servers to verify one or both of kudu-master or kudu-tserver
processes is running.
Access the master or tablet server web UI by opening the URL in your web browser. The URL is
http://<_host_name_>:8051/ for masters or http://<_host_name_>:8050/ for tablet servers.

9. Restart the Service Monitor to begin generating health checks and charts for Kudu. Go to the Cloudera Manager
service and click Service Monitor. Choose Actions > Restart.
10. To manage roles, go to the Kudu (Beta) service and use the Actions menu to stop, start, restart, or otherwise
manage the service.

Enabling the File Block Manager


If your underlying filesystem does not support hole punching, Kudu will not start unless you enable the file block
manager. This is not appropriate for production systems. If your filesystem does support hole punching, there is no
reason to use the file block manager.

Note: The file block manager does not perform well at scale and should only be used for small-scale
development and testing.

1. If you are still in the Cloudera configuration wizard, exit the configuration wizard by clicking the Cloudera logo at
the top of the Cloudera Manager interface.
2. Go to the Kudu (Beta) service.
3. Go to Configuration and search for the Kudu (Beta) Service Advanced Configuration Snippet (Safety Valve) for
gflagfile configuration option.
4. Add the following line to it, and save your changes:

--block_manager=file

Install Kudu Using Packages


If you use packages with Cloudera Manager, follow these instructions after uploading the CSD file for Kudu and restarting
the Cloudera Manager server.

Table 1: Kudu Repository and Package Links

Operating System Repository Package Individual Packages


RHEL RHEL 6 or RHEL 7 RHEL 6
Ubuntu Trusty Trusty

1. Cloudera recommends installing the Kudu repositories for your operating system. Use the links in Table 1: Kudu
Repository and Package Links on page 22 to download the appropriate repository installer. Save the repository
installer to /etc/yum.repos.d/ for RHEL or /etc/apt/sources.list.d/ for Ubuntu.

22 | Apache Kudu (incubating) User Guide


Installing Apache Kudu

If you use Cloudera Manager, you only need to install the kudu package:

$ sudo yum install kudu

$ sudo apt-get install kudu

If you need the C++ client development libraries or the Kudu SDK, install kudu-client and
kudu-client-devel packages for RHEL, or libkuduclient0 and libkuduclient-dev packages for
Ubuntu.
If you use Cloudera Manager, do not install the kudu-master and kudu-tserver packages, which provide
operating system startup scripts for using Kudu without Cloudera Manager.
2. Install the Kudu (Beta) service on your cluster. Go to the cluster where you want to install Kudu. Click Actions >
Add a Service. Select Kudu (Beta) from the list, and click Continue.
3. Select a host for the master role and one or more hosts for the tablet server roles. A host can act as both a master
and a tablet server, but this may cause performance problems on a large cluster. The Kudu master process is not
resource-intensive and can be collocated with other similar processes such as the HDFS Namenode or YARN
ResourceManager. After selecting hosts, click Continue.
4. Configure the storage locations for Kudu data and write-ahead log (WAL) files on masters and tablet servers.
Cloudera Manager will create the directories.
You can use the same directory to store data and WALs.
You cannot store WALs in a subdirectory of the data directory.
If any host is both a master and tablet server, configure different directories for master and tablet server.
For instance, /data/kudu/master and /data/kudu/tserver.
If you choose a filesystem that does not support hole punching, service start-up will fail. Only if service start-up
fails for this reason, exit the wizard by clicking the Cloudera logo at the top left, and enable the file block
manager. This is not appropriate for production. See Enabling the File Block Manager on page 22.
5. If your filesystem does support hole punching, do not exit the wizard. Click Continue. Kudu masters and tablet
servers are started. Otherwise, go to the Kudu (Beta) service, and click Actions > Start.
6. Verify that services are running using one of the following methods:
Examine the output of the ps command on servers to verify one or both of kudu-master or kudu-tserver
processes is running.
Access the master or tablet server web UI by opening the URL in your web browser. The URL is
http://<_host_name_>:8051/ for masters or http://<_host_name_>:8050/ for tablet servers.

7. To manage roles, go to the Kudu (Beta) service and use the Actions menu to stop, start, restart, or otherwise
manage the service.
8. Restart the Service Monitor to begin generating health checks and charts for Kudu. Go to the Cloudera Manager
service and click Service Monitor. Choose Actions > Restart.

Install Kudu Using the Command Line


Important: If you use Cloudera Manager, do not use these command-line instructions.

Follow these steps on each node which will participate in your Kudu cluster.
1. Cloudera recommends installing the Kudu repositories for your operating system. Use the links in Table 1: Kudu
Repository and Package Links on page 22 to download the appropriate repository installer.

Apache Kudu (incubating) User Guide | 23


Installing Apache Kudu

Install the kudu package, using the appropriate commands for your operating system:

$ sudo yum install kudu

$ sudo apt-get install kudu

If you need the C++ client development libraries or the Kudu SDK, install kudu-client and
kudu-client-devel packages for RHEL, or libkuduclient0 and libkuduclient-dev packages for
Ubuntu.
Install the kudu-master and kudu-tserver packages, which provide operating system start-up scripts for
the Kudu master and tablet servers.
2. The packages create a kudu-conf entry in the operating system's alternatives database, and they ship the built-in
conf.dist alternative. To adjust your configuration, you can either edit the files in /etc/kudu/conf/ directly,
or create a new alternative using the operating system utilities. If you create a new alternative, make sure the
alternative is the directory pointed to by the /etc/kudu/conf/ symbolic link, and create custom configuration
files there. Some parts of the configuration are configured in /etc/default/kudu-master and
/etc/default/kudu-tserver files as well. You should include or duplicate these configuration options if you
create custom configuration files.
Review the configuration, including the default WAL and data directory locations, and adjust them according to
your requirements.
3. Start Kudu services using the following commands on the appropriate nodes:

$ sudo service kudu-master start


$ sudo service kudu-tserver start

4. To stop Kudu services, use the following commands:

$ sudo service kudu-master stop


$ sudo service kudu-tserver stop

5. Configure the Kudu services to start automatically when the server starts, by adding them to the default runlevel.

$ sudo chkconfig kudu-master on # RHEL / CentOS


$ sudo chkconfig kudu-tserver on # RHEL / CentOS

$ sudo update-rc.d kudu-master defaults # Ubuntu


$ sudo update-rc.d kudu-tserver defaults # Ubuntu

Upgrading Kudu
Before upgrading Kudu, see the Upgrade Notes.

Upgrading Kudu Using Parcels


To upgrade Kudu, use the following instructions if you use Cloudera Manager. If you do not use Cloudera Manager,
see the instructions for upgrading Kudu packages.
1. First, download the Custom Service Descriptor (CSD) file for Kudu and upload it to /opt/cloudera/csd/ on the
Cloudera Manager server. Restart the Cloudera Manager server using the following operating system command.

$ sudo service cloudera-scm-server restart

2. Go to Hosts. Click Parcels.


3. Click Check For New Parcels.
4. Find the new version of Kudu in the list of parcels. Download, distribute, and activate it on your cluster.

24 | Apache Kudu (incubating) User Guide


Installing Apache Kudu

Upgrade Kudu Using Packages


To upgrade Kudu, use the following instructions if you use Cloudera Manager. If you do not use Cloudera Manager,
see the instructions for upgrading Kudu packages.
Using RHEL:
1. First, download the Custom Service Descriptor (CSD) file for Kudu and upload it to /opt/cloudera/csd/ on the
Cloudera Manager server. Restart the Cloudera Manager server using the following operating system command.

$ sudo service cloudera-scm-server restart

2. Stop the Kudu service in Cloudera Manager. Go to the Kudu service and select Actions > Stop.
3. Issue the following commands at the command line on each Kudu host:

$ sudo yum -y clean all


$ sudo yum -y upgrade kudu

4. Start the Kudu service in Cloudera Manager. Go to the Kudu service and select Actions > Start.
Using Ubuntu:
1. First, download the Custom Service Descriptor (CSD) file for Kudu and upload it to /opt/cloudera/csd/ on the
Cloudera Manager server. Restart the Cloudera Manager server using the following operating system command.

$ sudo service cloudera-scm-server restart

2. If you use a repository, re-download the repository list file to ensure that you have the latest information. See
Table 1: Kudu Repository and Package Links on page 22.
3. Stop the Kudu service in Cloudera Manager. Go to the Kudu service and select Actions > Stop.
4. Issue the following commands at the command line on each Kudu host:

$ sudo apt-get update


$ sudo apt-get install kudu

5. Start the Kudu service in Cloudera Manager. Go to the Kudu service and select Actions > Start.

Next Steps
Read about Installing and Using Apache Impala (incubating) With Apache Kudu on page 26.
For more information about using Kudu, go to the Kudu project page, where you can find official documentation, links
to the Github repository and examples, and other resources.
For a reading list and other helpful links, refer to More Resources for Apache Kudu on page 91.

Apache Kudu (incubating) User Guide | 25


Installing and Using Apache Impala (incubating) With Apache Kudu

Installing and Using Apache Impala (incubating) With Apache Kudu


Apache Kudu has tight integration with Apache Impala (incubating), allowing you to use Impala to insert, query, update,
and delete data from Kudu tablets using Impala's SQL syntax, as an alternative to using the Kudu APIs to build a custom
Kudu application. In addition, you can use JDBC or ODBC to connect existing or new applications written in any language,
framework, or business intelligence tool to your Kudu data, using Impala as the broker.
This integration relies on features that released versions of Impala do not have yet, as of Impala 2.3, which is expected
to ship in CDH 5.5. In the interim, you need to install a fork of Impala, which this document will refer to as Impala_Kudu.

Prerequisites
You can install Impala_Kudu using parcels or packages.
Impala_Kudu depends upon CDH 5.4 or later. To use Cloudera Manager with Impala_Kudu, you need Cloudera
Manager 5.4.3 or later. Cloudera Manager 5.4.7 is recommended, as it adds support for collecting metrics from
Kudu.
If you have an existing Impala instance on your cluster, you can install Impala_Kudu alongside the existing Impala
instance if you use parcels. The new instance does not share configurations with the existing instance and is
completely independent. A script is provided to automate this type of installation
It is especially important that the cluster has adequate unreserved RAM for the Impala_Kudu instance.
Consider shutting down the original Impala service when testing Impala_Kudu if you want to be sure it is not
impacted.
Before installing Impala_Kudu, you must have already installed and configured services for HDFS, Hive, and Kudu.
You may need HBase, YARN, Sentry, and ZooKeeper services as well.

Installing Impala_Kudu Using Cloudera Manager


If you use Cloudera Manager, you can install Impala_Kudu using parcels (recommended) or packages. To use Impala_Kudu
alongside an existing Impala instance in the same cluster, you must use parcels. Cloudera recommends using the
deploy.py script to deploy Impala_Kudu, especially if you have an existing Impala service in your cluster.

Installing Impala_Kudu Parcels Using the deploy.py Script


If you use parcels, Cloudera recommends using the included deploy.py script to install and deploy the Impala_Kudu
service into your cluster. If your cluster does not have an existing Impala instance, the script is optional. However, if
you do have an existing Impala instance, you must use the script.
Prerequisites
The script depends upon the Cloudera Manager API Python bindings. Install the bindings using the following
command:

sudo pip install cm-api

The pip command also supports installing packages as as an unprivileged user, with the --user option. For more
information or other installation methods for the Cloudera Manager API, see
http://cloudera.github.io/cm_api/docs/python-client/.
You need the following information to run the script:
A name for the new Impala_Kudu service.
The hostname of the Cloudera Manager server.
The name of the cluster. This is the display name of the cluster, including spaces. It may be something like
Cluster 1.
A username and password with Full Administrator privileges in Cloudera Manager.
Your Cloudera Manager server needs network access to reach the parcel repository hosted on cloudera.com.

26 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

For creating a new Impala_Kudu service:


The hostname of the host where the new Impala_Kudu service's master role should be deployed, if not
the Cloudera Manager server.
If your cluster has more than one instance of a HBase, HDFS, Hive, Sentry, YARN, or ZooKeeper service,
the name of the instance that the new Impala_Kudu service should depend upon.
A comma-separated list of scratch directories which the new Impala_Kudu service should use.
For cloning an existing Impala service:
The name of the existing service to clone.
Currently, the deploy.py script creates the cloned services with ports offset by 7 from the default
Impala ports, regardless of what ports your Impala service uses. If a port collision occurs, the new service
will be unable to start until you configure its ports.

deploy.py Configuration Options

Generic configuration flags and their arguments should go before the create or clone statement. Positional arguments
are discussed in the order that they should go in the command. Each option's value is case sensitive.

Table 2: Generic Configuration Flags

Flag Description Default Value Example Value


--host The hostname of the localhost my-host.example.com
Cloudera Manager server.
--cluster The name of the cluster to There is no static default Cluster 1
which the new service value. If --cluster is not
should be added. The value specified and there is only
is case-sensitive. one cluster in the
deployment, that cluster is
used. If --cluster is not
specified and more than one
cluster exists in the
deployment, the script will
exit with an error.
--user The ID of a Cloudera admin jdoe
Manager user with full
administrator privileges.
--password The password of the user No default. b@dp@ssw0rd
specified using the --user
flag.

Table 3: Flags for create Operations

Flag Description Default Value Example Value


--master_host The hostname where the If not specified, uses the my-host.example.com
new service's master roles Cloudera Manager Server
should be placed. host or raises an exception
if that host is not managed.
--hbase_dependency The name of the HBase There is no static default My-HBase
service the new value. If
Impala_Kudu service should --hbase_dependency is
not specified and there is

Apache Kudu (incubating) User Guide | 27


Installing and Using Apache Impala (incubating) With Apache Kudu

Flag Description Default Value Example Value


depend on, if more than one only one HBase service in
exists. the deployment, that cluster
is used. If
--hbase_dependency is
not specified and more than
one HBase service exists in
the deployment, the script
will exit with an error.
--hdfs_dependency The name of the HDFS There is no static default My-HDFS
service the new value. If
Impala_Kudu service should --hdfs_dependency is not
depend on, if more than one specified and there is only
exists. one cluster in the
deployment, that HDFS
service is used. If
--hdfs_dependency is not
specified and more than one
HDFS service exists in the
deployment, the script will
exit with an error.
--hive_dependency The name of the Hive service There is no static default My-Hive
the new Impala_Kudu value. If
service should depend on, if --hive_dependency is not
more than one exists. specified and there is only
one Hive service in the
deployment, that cluster is
used. If
--hive_dependency is not
specified and more than one
Hive service exists in the
deployment, the script will
exit with an error.
--sentry_dependency The name of the Sentry There is no static default My-Sentry
service the new value. If
Impala_Kudu service should --sentry_dependency is
depend on, if more than one not specified and there is
exists. only one Sentry service in
the deployment, that cluster
is used. If
--sentry_dependency is
not specified and more than
one Sentry service exists in
the deployment, the script
will exit with an error.
--yarn_dependency The name of the Yarn There is no static default My-Yarn
service the new value. If
Impala_Kudu service should --yarn_dependency is not
depend on, if more than one specified and there is only
exists. one Yarn service in the
deployment, that cluster is
used. If
--yarn_dependency is not

28 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

Flag Description Default Value Example Value


specified and more than one
Yarn service exists in the
deployment, the script will
exit with an error.
--zookeeper_dependency The name of the ZooKeeper There is no static default My-ZooKeeper
service the new value. If
Impala_Kudu service should --zookeeper_dependency
depend on, if more than one is not specified and there is
exists. only one cluster in the
deployment, that cluster is
used. If
--zookeeper_dependency
is not specified and more
than one ZooKeeper service
exists in the deployment,
the script will exit with an
error.

Warning: Positional arguments for a given operation are required, and have no default values. If you
omit them, the command will fail.

Table 4: Positional Arguments for create Operations

Argument Description Example Value


NEW_SERVICE_NAME The name of the new Impala_Kudu IMPALA_KUDU
service.
SCRATCH_DIRS A quoted comma-separated list of '/data/1/kudu_impala,/data/2/kudu_impala'
scratch directories the new service
should use.

Table 5: Positional Arguments for clone Operations

Argument Description Example Value


NEW_SERVICE_NAME The name of the new Impala_Kudu IMPALA_KUDU
service.
EXISTING_SERVICE_NAME The name of the existing Impala IMPALA
service to clone.

deploy.py Use and Examples

Note: Some arguments to deploy.py are positional. Others have flags. The ones that have flags
should always come before the positional arguments. Please use the examples for guidance.

Download the deploy.py script.


Review deploy.py Configuration Options on page 27 for available options and syntax.
Run the deploy.py script with either the create or clone option. The following examples illustrate the usage
of some of the script's options.
To create a new Impala_Kudu service:

Apache Kudu (incubating) User Guide | 29


Installing and Using Apache Impala (incubating) With Apache Kudu

The general syntax to create a new Impala_Kudu service is:

$ python deploy.py [generic flags] create [flags specific to create] NEW_SERVICE_NAME


SCRATCH_DIRS

The example below creates a standalone Impala_Kudu service called IMPALA_KUDU-1 on a cluster called
Cluster 1. The new service will use /data/1/kudu_impala,/data/2/kudu_impala as its scratch
directories. The Impala master roles will be run on the Cloudera Manager host. The default HBase, HDFS,
Hive, Sentry, Yarn, and ZooKeeper services will be depended upon. This example uses the fictitious admin
user with the password demo.

$ python deploy.py \
--user admin \
--password demo \
--cluster 'Cluster 1' \
--host <FQDN_of_cloudera_manager_server> \
create IMPALA_KUDU-1 '/data/1/kudu_impala,/data/2/kudu_impala'

In this example, two HDFS services are available, called HDFS-1 and HDFS-2. This command creates a
new service called IMPALA_KUDU-1 which depends upon HDFS-2.

$ python deploy.py \
--user admin \
--password demo \
--cluster 'Cluster 1' \
--host <FQDN_of_cloudera_manager_server> \
create --hdfs_dependency HDFS-2 IMPALA_KUDU-1 '/data/1/kudu_impala,/data/2/kudu_impala'

To clone an existing Impala service:


The general syntax to clone an existing Impala service is:

$ python deploy.py [generic flags] clone NEW_SERVICE_NAME EXISTING_IMPALA_SERVICE

The example below clones an existing Impala service called IMPALA-1 to a new IMPALA_KUDU service
called IMPALA_KUDU-1. The role assignments from the original service are used in the new service as
well. This example uses the fictitious admin user with the password demo.

$ python deploy.py \
--user admin \
--password demo \
--cluster 'Cluster 1' \
--host <FQDN_of_cloudera_manager_server> \
clone IMPALA_KUDU-1 IMPALA-1

The service is created but not started. Review the configuration in Cloudera Manager and start the service.
Currently, the deploy.py script creates the cloned services with ports offset by 7 from the default Impala ports,
regardless of what ports your Impala service uses. If a port collision occurs, the new service will be unable to start
until you configure its ports.

Installing Impala_Kudu Parcels Manually


Manual installation of Impala_Kudu is only supported where there is no other Impala service already running in the
cluster, and when you use parcels.
1. Obtain the Impala_Kudu parcel either by using the parcel repository or downloading it manually.
To use the parcel repository:
1. Go to Hosts > Parcels.

30 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

2. Click Edit Settings. Add http://archive.cloudera.com/beta/impala-kudu/parcels/latest/ as a Remote


Parcel Repository URL. Click Save Changes.
To download the parcel manually:
1. Download the parcel for your operating system from
http://archive.cloudera.com/beta/impala-kudu/parcels/latest/ and upload it to
/opt/cloudera/parcel-repo/ on the Cloudera Manager server.
2. Create a SHA1 file for the parcel. Cloudera Manager expects the SHA1 to be named with the exact same
name as the parcel, with a .sha ending added, and to only contain the SHA1 itself, not the name of the
parcel. The following example is one way to get this result.

$ sha1sum <name_of_parcel_file> | awk {'print $1'} > <name_of_parcel_file>.sha

2. Go to Hosts > Parcels. Click Check for New Parcels. Verify that Impala_Kudu is in the list.
3. Download (if necessary), distribute, and activate the Impala_Kudu parcel.
4. Add a new Impala service. This service will use the Impala_Kudu parcel.
a. Go to the cluster and click Actions > Add a Service.
b. Choose one host to run the Catalog Server, one to run the StateServer, and at least three to run Impala
Daemon instances. Click Continue.
c. Choose one or more Impala scratch directories. Click Continue. The Impala service starts. However, the
features that Impala needs in order to work with Kudu are not enabled yet.
5. Enable the features that allow Impala to work with Kudu.
a. Go to the new Impala service.
b. Click Configuration.
c. Search for the Impala Service Environment Advanced Configuration Snippet (Safety Valve) configuration
item. Add the following to the text field and save your changes:

IMPALA_KUDU=1

d. Restart the Impala service.


6. You can verify that the Kudu features are available to Impala by running the following query in Impala Shell, after
starting impala-shell and connecting to the correct hostname and port for the new Impala-Kudu service:

$ impala-shell -i localhost:21007

select if(version() like '%KUDU%', "all set to go!", "check your configs")
as s;

Query: select if(version() like '%KUDU%', "all set to go!", "check your
configs") as s

+----------------+
| s |
+----------------+
| all set to go! |
+----------------+
Fetched 1 row(s) in 0.02s
----

If you do not see all set to go!, carefully review the previous instructions to be sure that you have not missed
a step. Verify that you connected to Impala using the correct host and port.

Apache Kudu (incubating) User Guide | 31


Installing and Using Apache Impala (incubating) With Apache Kudu

Installing Impala_Kudu Packages

Warning: Before installing Impala_Kudu packages, you need to uninstall any existing Impala packages,
using operating system utilities. For this reason, you cannot use Impala_Kudu alongside another Impala
instance if you use packages.

1. Obtain the Impala_Kudu packages for your operating system from one of the following locations:
RHEL 6: http://archive.cloudera.com/beta/impala-kudu/redhat/6/x86_64/impala-kudu/
Ubuntu Trusty: http://archive.cloudera.com/beta/impala-kudu/ubuntu/trusty/amd64/impala-kudu/
2. Install the packages on each host which will run a role in the Impala_Kudu service, using your operating system's
utilities.
3. Add a new Impala service in Cloudera Manager.
Go to the cluster and click Actions > Add a Service.
Choose one host to run the Catalog Server, one to run the StateServer, and at least three to run Impala
Daemon instances. Click Continue.
Choose one or more Impala scratch directories. Click Continue.
4. The Impala_Kudu service starts.
5. You can verify that the Kudu features are available to Impala by running the following query in Impala Shell, after
starting impala-shell and connecting to the correct hostname and port for the new Impala-Kudu service:

$ impala-shell -i localhost:21007

select if(version() like '%KUDU%', "all set to go!", "check your configs")
as s;

Query: select if(version() like '%KUDU%', "all set to go!", "check your
configs") as s

+----------------+
| s |
+----------------+
| all set to go! |
+----------------+
Fetched 1 row(s) in 0.02s
----

If you do not see all set to go!, carefully review the previous instructions to be sure that you have not missed
a step. Verify that you connected to Impala using the correct host and port.

Installing Impala_Kudu Using the Command Line


Before installing Impala_Kudu packages, you need to uninstall any existing Impala packages, using operating system
utilities. For this reason, you cannot use Impala_Kudu alongside another Impala instance if you use packages.

Important:
Do not use these command-line instructions if you use Cloudera Manager. Instead, follow Installing
Impala_Kudu Packages on page 32.

1. Obtain the Impala_Kudu packages for your operating system from one of the following locations:
RHEL 6: http://archive.cloudera.com/beta/impala-kudu/redhat/6/x86_64/impala-kudu/
Ubuntu Trusty: http://archive.cloudera.com/beta/impala-kudu/ubuntu/trusty/amd64/impala-kudu/

32 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

2. Use the Impala start-up scripts to start each service on the relevant hosts:

$ sudo service impala-state-store start


$ sudo service impala-catalog start
$ sudo service impala-server start

Using Impala With Kudu


Neither Kudu nor Impala need special configuration in order for you to use the Impala Shell or the Impala API to insert,
update, delete, or query Kudu data using Impala. However, you do need to create a mapping between the Impala and
Kudu tables. Kudu provides the Impala query to map to an existing Kudu table in the web UI.
Be sure you are using the impala-shell binary provided by the Impala_Kudu package, rather than the default
CDH Impala binary. The following shows how to verify this using the alternatives command on a RHEL 6 host.
Do not copy and paste the alternatives --set command directly, because the file names are likely to differ.

$ sudo alternatives --display impala-shell

impala-shell - status is auto. link currently points to


/opt/cloudera/parcels/CDH-5.4.6-1.cdh5.4.6.p0.1007/bin/impala-shell
/opt/cloudera/parcels/CDH-5.4.6-1.cdh5.4.6.p0.1007/bin/impala-shell - priority 10
/opt/cloudera/parcels/IMPALA_KUDU-2.3.0-1.cdh5.4.6.p0.119/bin/impala-shell - priority
5
Current `best' version is
/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.6.0.p0.1007/bin/impala-shell.

$ sudo alternatives --set impala-shell


/opt/cloudera/parcels/IMPALA_KUDU-2.3.0-1.cdh5.4.6.p0.119/bin/impala-shell

Start Impala Shell using the impala-shell command. By default, impala-shell attempts to connect to the
Impala daemon on localhost on port 21000. To connect to a different host, use the -i <host:port> option.
To automatically connect to a specific Impala database, use the -d <database> option. For instance, if all your
Kudu tables are in Impala in the database impala_kudu, use -d impala_kudu to use this database.
To quit the Impala Shell, use the following command: quit;

Internal and External Impala Tables


When creating a new Kudu table using Impala, you can create the table as an internal table or an external table.
Internal
An internal table (created by CREATE TABLE) is managed by Impala, and can be dropped by Impala. When you
create a new table using Impala, it is generally a internal table.
External
An external table (created by CREATE EXTERNAL TABLE) is not managed by Impala, and dropping such a table
does not drop the table from its source location (here, Kudu). Instead, it only removes the mapping between Impala
and Kudu. This is the mode used in the syntax provided by Kudu for mapping an existing table to Impala.
See the Impala documentation for more information about internal and external tables.

Querying an Existing Kudu Table In Impala


1. Go to http://kudu-master.example.com:8051/tables/, where kudu-master.example.com is the address
of your Kudu master.
2. Click the table ID link for the relevant table
3. Scroll to the bottom of the page, or search for the text Impala CREATE TABLE statement. Copy the entire
statement.
4. Paste the statement into Impala Shell. Impala now has a mapping to your Kudu table.

Apache Kudu (incubating) User Guide | 33


Installing and Using Apache Impala (incubating) With Apache Kudu

Creating a New Kudu Table From Impala


Creating a new table in Kudu from Impala is similar to mapping an existing Kudu table to an Impala table, except that
you need to write the CREATE statement yourself. Use the following example as a guideline. Impala first creates the
table, then creates the mapping.
In Kudu 0.9 and higher, you must almost always define a schema to pre-split your table. The best partition schema to
use depends upon the structure of your data and your data access patterns. The goal is to maximize parallelism and
use all your tablet servers evenly. See Partitioning Tables on page 35. This example uses a 16-bucket hash, which will
evenly and randomly distribute rows into 16 tablets.

CREATE TABLE `my_first_table` (


`id` BIGINT,
`name` STRING
)
DISTRIBUTE BY HASH (id) INTO 16 BUCKETS
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'my_first_table',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'id'
);

In the CREATE TABLE statement, the columns that comprise the primary key must be listed first. Additionally, primary
key columns are implicitly marked NOT NULL.
The following table properties are required, and the kudu.key_columns property must contain at least one column.
storage_handler
the mechanism used by Impala to determine the type of data source. For Kudu tables, this must be
com.cloudera.kudu.hive.KuduStorageHandler.
kudu.table_name
the name of the table that Impala will create (or map to) in Kudu.
kudu.master_addresses
the list of Kudu masters Impala should communicate with.
kudu.key_columns
the comma-separated list of primary key columns, whose contents should not be nullable.

CREATE TABLE AS SELECT

You can create a table by querying any other table or tables in Impala, using a CREATE TABLE AS SELECT query.
The following example imports all rows from an existing table old_table into a Kudu table new_table. The columns
in new_table will have the same names and types as the columns in old_table, but you need to populate the
kudu.key_columns property. In this example, the primary key columns are ts and name The table uses a partition
schem that divides the table into 16 buckets by hashing the primary key. Again, in Kudu 0.9 and higher, you must
specify a partition schema when creating a new table.

CREATE TABLE new_table


(
ts BIGINT,
name STRING
)
DISTRIBUTE BY HASH (ts) INTO 16 BUCKETS
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'new_table',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'ts, name'
)
AS SELECT * FROM old_table;

34 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

You can refine the SELECT statement to only match the rows and columns you want to be inserted into the new table.
You can also rename the columns by using syntax like SELECT name as new_name.

Partitioning Tables
Tables are partitioned into tablets according to a partition schema on the primary key columns. Each tablet is served
by at least one tablet server. Ideally, a table should be split into tablets that are distributed across a number of tablet
servers to maximize parallel operations. The details of the partitioning schema you use will depend entirely on the
type of data you store and how you access it.
Kudu currently has no mechanism for splitting or merging tablets after the table has been created. Until this feature
has been implemented, you must provide a partition schema for your table when you create it. When designing your
tables, consider using primary keys that will allow you to partition your table into tablets which grow at similar rates
You can partition your table using Impala's DISTRIBUTE BY keyword, which supports distribution by RANGE or HASH.
The partition scheme can contain zero or more HASH definitions, followed by an optional RANGE definition. The RANGE
definition can refer to one or more primary key columns. Examples of basic and advanced partitioning are shown
below.

Note: Impala keywords, such as group, are enclosed by back-tick characters when they are used as
identifiers, rather than as keywords.

Basic Partitioning
DISTRIBUTE BY RANGE

You can specify split rows for one or more primary key columns that contain integer or string values. Range partitioning
in Kudu allows splitting a table based on the lexicographic order of its primary keys. This allows you to balance parallelism
in writes with scan efficiency.
The split row does not need to exist. It defines an exclusive bound in the form of: (START_KEY, SplitRow),
[SplitRow, STOP_KEY) In other words, the split row, if it exists, is included in the tablet after the split point. For
instance, if you specify a split row abc, a row abca would be in the second tablet, while a row abb would be in the
first.
Suppose you have a table that has columns state, name, and purchase_count. The following example creates 50
tablets, one per US state.

Note: Monotonically Increasing Values If you partition by range on a column whose values are
monotonically increasing, the last tablet will grow much larger than the others. Additionally, all data
being inserted will be written to a single tablet at a time, limiting the scalability of data ingest. In that
case, consider distributing by HASH instead of, or in addition to, RANGE.

CREATE TABLE customers


(
state STRING,
name STRING,
purchase_count BIGINT
)
DISTRIBUTE BY RANGE(state)
SPLIT ROWS(('al'),
('ak'),
('ar'),
...
('wv'),
('wy'))
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'customers',
'kudu.master_addresses' = 'kudu-master.example.com:705',
'kudu.key_columns' = 'state, name'
);

Apache Kudu (incubating) User Guide | 35


Installing and Using Apache Impala (incubating) With Apache Kudu

DISTRIBUTE BY HASH

Instead of distributing by an explicit range, or in combination with range distribution, you can distribute into a specific
number of 'buckets' by hash. You specify the primary key columns you want to partition by, and the number of buckets
you want to use. Rows are distributed by hashing the specified key columns. Assuming that the values being hashed
do not themselves exhibit significant skew, this will serve to distribute the data evenly across buckets.
You can specify multiple definitions, and you can specify definitions which use compound primary keys. However, one
column cannot be mentioned in multiple hash definitions. Consider two columns, a and b:
HASH(a), HASH(b) -- will succeed
HASH(a,b) -- will succeed
HASH(a), HASH(a,b) -- will fail

Note: DISTRIBUTE BY HASH with no column specified is a shortcut to create the desired number
of buckets by hashing all primary key columns.

Hash partitioning is a reasonable approach if primary key values are evenly distributed in their domain and no data
skew is apparent, such as timestamps or serial IDs.
The following example creates 16 tablets by hashing the id column. A maximum of 16 tablets can be written to in
parallel. In this example, a query for a range of sku values is likely to need to read from all 16 tablets, so this may not
be the optimum schema for this table. See Advanced Partitioning on page 36 for an extended example.

CREATE TABLE cust_behavior


(
id BIGINT,
sku STRING,
salary STRING,
edu_level INT,
usergender STRING,
`group` STRING,
city STRING,
postcode STRING,
last_purchase_price FLOAT,
last_purchase_date BIGINT,
category STRING,
rating INT,
fulfilled_date BIGINT
)
DISTRIBUTE BY HASH (id) INTO 16 BUCKETS
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'cust_behavior',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'id, sku'
);

Advanced Partitioning
You can use zero or more HASH definitions, followed by zero or one RANGE definitions to partition a table. Each definition
can encompass one or more columns. While every possible distribution schema is out of the scope of this document,
a few demonstrations follow.
DISTRIBUTE BY RANGE Using Compound Split Rows

This example creates 100 tablets, two for each US state. Per state, the first tablet holds names starting with characters
before m, and the second tablet holds names starting with m-z. At least 50 tablets (and up to 100) can be written to
in parallel. A query for a range of names in a given state is likely to only need to read from one tablet, while a query
for a range of names across every state will likely only read from 50 tablets.

CREATE TABLE customers


(
state STRING,

36 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

name STRING,
purchase_count int32,
)
DISTRIBUTE BY RANGE(state, name)
SPLIT ROWS(('al', ''),
('al', 'm'),
('ak', ''),
('ak', 'm'),
...
('wy', ''),
('wy', 'm'))
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'customers',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'state, name'
);

DISTRIBUTE BY HASH and RANGE

Let's go back to the hashing example above. If you often query for a range of sku values, you can optimize the example
by combining hash partitioning with range partitioning. The following example still creates 16 tablets, by first hashing
the `id` column into 4 buckets, and then applying range partitioning to split each bucket into four tablets, based upon
the value of the sku string. At least four tablets (and possibly up to 16) can be written to in parallel, and when you
query for a contiguous range of sku values, you have a good chance of only needing to read from 1/4 of the tablets
to fulfill the query.

CREATE TABLE cust_behavior


(
id BIGINT,
sku STRING,
salary STRING,
edu_level INT,
usergender STRING,
`group` STRING,
city STRING,
postcode STRING,
last_purchase_price FLOAT,
last_purchase_date BIGINT,
category STRING,
rating INT,
fulfilled_date BIGINT
)
DISTRIBUTE BY HASH (id) INTO 4 BUCKETS,
RANGE (sku) SPLIT ROWS(('g'), ('o'), ('u'))
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'cust_behavior',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'id, sku'
);

Multiple DISTRIBUTE BY HASH Definitions


Again expanding the example above, suppose that the query pattern will be unpredictable, but you want to maximize
parallelism of writes. You can achieve even distribution across the entire primary key by hashing on both primary key
columns.

CREATE TABLE cust_behavior


(
id BIGINT,
sku STRING,
salary STRING,
edu_level INT,
usergender STRING,
`group` STRING,
city STRING,
postcode STRING,
last_purchase_price FLOAT,

Apache Kudu (incubating) User Guide | 37


Installing and Using Apache Impala (incubating) With Apache Kudu

last_purchase_date BIGINT,
category STRING,
rating INT,
fulfilled_date BIGINT
)
DISTRIBUTE BY HASH (id) INTO 4 BUCKETS,
HASH (sku) INTO 4 BUCKETS
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'cust_behavior',
'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'id, sku'
);

The example creates 16 buckets. You could also use HASH (id, sku) INTO 16 BUCKETS. However, a scan for sku
values would almost always impact all 16 buckets, rather than possibly being limited to 4.

Impala Database Containment Model


Impala uses a database containment model. You can create a table within a specific scope, referred to as a database.
To create the database, use a CREATE DATABASE statement. To use the database for further Impala operations such
as CREATE TABLE, use the USE statement. For example, to create a table in a database called impala_kudu, use the
following statements:

CREATE DATABASE impala_kudu;


USE impala_kudu;
CREATE TABLE my_first_table (
...

The my_first_table table is created within the impala_kudu database. To refer to this database in the future,
without using a specific USE statement, you can refer to the table using <database>:<table> syntax. For example,
to specify the my_first_table table in database impala_kudu, as opposed to any other table with the same name
in another database, refer to the table as impala_kudu:my_first_table. This also applies to INSERT, UPDATE,
DELETE, and DROP statements.

Warning: Currently, Kudu does not encode the Impala database into the table name in any way. This
means that even though you can create Kudu tables within Impala databases, the actual Kudu tables
need to be unique within Kudu. For example, if you create database_1:my_kudu_table and
database_2:my_kudu_table, you will have a naming collision within Kudu, even though this would
not cause a problem in Impala.

Impala Keywords Not Support for Kudu Tables


The following Impala keywords are not supported for Kudu tables:
PARTITIONED
STORED AS
LOCATION
ROWFORMAT

Understanding SQL Operators and Kudu


If your query includes the operators =, <=, or >=, Kudu evaluates the condition directly and only returns the relevant
results. Kudu does not yet support <, >, !=, or any other operator not listed.
For these unsupported operations, Kudu returns all results regardless of the condition, and Impala performs the filtering.
Since Impala must receive a larger amount of data from Kudu, these operations are less efficient. In some cases, creating
and periodically updating materialized views may be the right solution to work around these inefficiencies.

38 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

Inserting a Row
The syntax for inserting one or more rows using Impala is shown below.

INSERT INTO my_first_table VALUES (99, "sarah");

INSERT INTO my_first_table VALUES (1, "john"), (2, "jane"), (3, "jim");

The primary key must not be null.

Inserting In Bulk
When insert in bulk, there are at least three common choices. Each may have advantages and disadvantages, depending
on your data and circumstances.
Multiple Single INSERT statements
This approach has the advantage of being easy to understand and implement. This approach is likely to be inefficient
because Impala has a high query start-up cost compared to Kudu's insertion performance. This will lead to relatively
high latency and poor throughput.
Single INSERT statement with multiple VALUES subclauses
If you include more than 1024 VALUES statements, Impala batches them into groups of 1024 (or the value of
batch_size) before sending the requests to Kudu. This approach may perform slightly better than multiple
sequential INSERT statements by amortizing the query start-up penalties on the Impala side. To set the batch size
for the current Impala Shell session, use the following syntax:

set batch_size=10000;

Note: Increasing the Impala batch size causes Impala to use more memory. You should verify the
impact on your cluster and tune accordingly.

Batch Insert
The approach that usually performs best, from the standpoint of both Impala and Kudu, is usually to import the
data using a SELECT FROM subclause in Impala.
1. If your data is not already in Impala, one strategy is to import it from a text file, such as a TSV or CSV file.
2. Create the Kudu table, being mindful that the columns designated as primary keys cannot have null values.
3. Insert values into the Kudu table by querying the table containing the original data, as in the following example:

INSERT INTO my_kudu_table


SELECT * FROM legacy_data_import_table;

Ingest using the C++ or Java API


In many cases, the appropriate ingest path is to use the C++ or Java API to insert directly into Kudu tables. Unlike
other Impala tables, data inserted into Kudu tables using the API becomes available for query in Impala without
the need for any INVALIDATE METADATA statements or other statements needed for other Impala storage types.

INSERT and the IGNORE Keyword

Normally, if you try to insert a row that has already been inserted, the insertion will fail because the primary key would
be duplicated (see Failures During INSERT, UPDATE, and DELETE Operations on page 40). If an insert fails part of the
way through, you can re-run the insert, using the IGNORE keyword, which will ignore only those errors returned from
Kudu indicating a duplicate key.
The first example will cause an error if a row with the primary key `99` already exists. The second example will still not
insert the row, but will ignore any error and continue on to the next SQL statement.

INSERT INTO my_first_table VALUES (99, "sarah");


INSERT IGNORE INTO my_first_table VALUES (99, "sarah");

Apache Kudu (incubating) User Guide | 39


Installing and Using Apache Impala (incubating) With Apache Kudu

Updating a Row
The syntax for updating one or more rows using Impala is shown below.

UPDATE my_first_table SET name="bob" where id = 3;

You cannot change or null the primary key value.

Important: The UPDATE statement only works in Impala when the underlying data source is Kudu.

Updating In Bulk
You can update in bulk using the same approaches outlined in Inserting In Bulk on page 39.

UPDATE and the IGNORE Keyword

Similar to INSERT and the IGNORE Keyword on page 39, you can use the IGNORE operation to ignore an UPDATE which
would otherwise fail. For instance, a row may be deleted while you are attempting to update it. In Impala, this would
cause an error. The IGNORE keyword causes the error to be ignored.

UPDATE IGNORE my_first_table SET name="bob" where id = 3;

Deleting a Row
You can delete Kudu rows in near real time using Impala. You can even use more complex joins when deleting.

DELETE FROM my_first_table WHERE id < 3;

DELETE c FROM my_second_table c, stock_symbols s WHERE c.name = s.symbol;

Important: The DELETE statement only works in Impala when the underlying data source is Kudu.

Deleting In Bulk
You can delete in bulk using the same approaches outlined in Inserting In Bulk on page 39.

DELETE and the IGNORE Keyword

Similar to INSERT and the IGNORE Keyword on page 39, you can use the `IGNORE` operation to ignore an `DELETE`
which would otherwise fail. For instance, a row may be deleted by another process while you are attempting to delete
it. In Impala, this would cause an error. The `IGNORE` keyword causes the error to be ignored.

DELETE IGNORE FROM my_first_table WHERE id < 3;

Failures During INSERT, UPDATE, and DELETE Operations


INSERT, UPDATE, and DELETE statements cannot be considered transactional as a whole. If one of these operations
fails part of the way through, the keys may have already been created (in the case of INSERT) or the records may have
already been modified or removed by another process (in the case of UPDATE or DELETE). You should design your
application with this in mind. See INSERT and the IGNORE Keyword on page 39.

Altering Table Properties


You can change Impala's metadata relating to a given Kudu table by altering the table's properties. These properties
include the table name, the list of Kudu master addresses, and whether the table is managed by Impala (internal) or
externally. You cannot modify a table's split rows after table creation.

40 | Apache Kudu (incubating) User Guide


Installing and Using Apache Impala (incubating) With Apache Kudu

Important: Altering table properties only changes Impala's metadata about the table, not the
underlying table itself. These statements do not modify any Kudu data.

Rename a Table

ALTER TABLE my_table RENAME TO my_new_table;

Change the Kudu Master Addresses

ALTER TABLE my_table SET TBLPROPERTIES('kudu.master_addresses' =


'kudu-original-master.example.com:7051,kudu-new-master.example.com:7051');

Change an Internally-Managed Table to External

ALTER TABLE my_table SET TBLPROPERTIES('EXTERNAL' = 'TRUE');

Dropping a Table
If the table was created as an internal table in Impala, using CREATE TABLE, the standard DROP TABLE syntax drops
the underlying Kudu table and all its data. If the table was created as an external table, using CREATE EXTERNAL
TABLE, the mapping between Impala and Kudu is dropped, but the Kudu table is left intact, with all its data. To change
an external table to internal, or vice versa, see Altering Table Properties on page 40.

DROP TABLE my_first_table;

Next Steps
The examples above have only explored a fraction of what you can do with Impala Shell.
Learn about the Impala project.
Read the Impala documentation.
View the Impala SQL Reference.
Read about Impala internals or learn how to contribute to Impala on the Impala Wiki.

Apache Kudu (incubating) User Guide | 41


Developing With Apache Kudu

Developing With Apache Kudu


Apache Kudu provides C++ and Java client APIs, as well as reference examples to illustrate their use. A Python API is
included, but it is currently considered experimental, unstable, and is subject to change at any time.

Warning: Use of server-side or private interfaces is not supported, and interfaces which are not part
of public APIs have no stability guarantees.

To keep up to date on the Kudu project, refer to the official Kudu website, http://getkudu.io/.

Viewing the API Documentation


C++ API Documentation
The documentation for the C++ client APIs is included in the header files in /usr/include/kudu/ if you installed
Kudu using packages or subdirectories of src/kudu/client/ if you built Kudu from source. If you installed Kudu
using parcels, no headers are included in your installation. and you will need to build Kudu from source in order to
have access to the headers and shared libraries.
The following command is a naive approach to finding relevant header files. Use of any APIs other than the client APIs
is unsupported.

$ find /usr/include/kudu -type f -name *.h

Java API Documentation


View the Java API documentation online. Alternatively, after building the Java client, Java API documentation is available
in java/kudu-client/target/apidocs/index.html.

Kudu Example Applications


Several example applications are provided in the kudu-examples Github repository. Each example includes a README
that shows how to compile and run it. These examples illustrate correct usage of the Kudu APIs, as well as how to set
up a virtual machine to run Kudu. The following list includes a few of the examples that are available today.
java-example
A simple Java application which connects to a Kudu instance, creates a table, writes data to it, then drops the table.
collectl
A simple Java application which listens on a TCP socket for time series data corresponding to the Collectl wire
protocol. The commonly-available collectl tool can be used to send example data to the server.
clients/python
An experimental Python client for Kudu.
demo-vm-setup
Scripts to download and run a VirtualBox virtual machine with Kudu already installed. For more information see
the Kudu Quickstart documentation.
These examples should serve as helpful starting points for your own Kudu applications and integrations.

42 | Apache Kudu (incubating) User Guide


Developing With Apache Kudu

Example Apache Impala Commands With Kudu


See Installing and Using Apache Impala (incubating) With Apache Kudu on page 26 for guidance on installing and using
Impala with Kudu, including several impala-shell examples.

Integration with MapReduce, YARN, and Other Frameworks


Kudu was designed to integrate with MapReduce, YARN, Spark, and other frameworks in the Hadoop ecosystem. See
RowCounter.java and ImportCsv.java for examples which you can model your own integrations on. Stay tuned for more
examples using YARN and Spark in the future.

Apache Kudu (incubating) User Guide | 43


Troubleshooting Apache Kudu

Troubleshooting Apache Kudu


This guide covers basic Apache Kudu troubleshooting information. For more details, see the official Kudu documentation
for troubleshooting.

Issues Starting or Restarting the Table Server


Error during hole punch test

On Linux, hole punching is the use of the fallocate() system call with the FALLOC_FL_PUNCH_HOLE option set.
RHEL or CentOS 6.4 or later, patched to kernel version of 2.6.32-358 or later. Unpatched RHEL or CentOS 6.4 does
not include a kernel with support for hole punching.
Ubuntu 14.04 includes version 3.13 of the Linux kernel, which supports hole punching.
Newer versions of the EXT4 or XFS filesystems support hole punching, but EXT3 does not. Older versions of XFS
that do not support hole punching return a EOPNOTSUPP (operation not supported) error. Older versions of either
EXT4 or XFS that do not support hole punching cause Kudu to emit an error message such as the following and to
fail to start:

Error during hole punch test. The log block manager requires a
filesystem with hole punching support such as ext4 or xfs. On el6,
kernel version 2.6.32-358 or newer is required. To run without hole
punching (at the cost of some efficiency and scalability), reconfigure
Kudu with --block_manager=file. Refer to the Kudu documentation for more
details. Raw error message follows.

Without hole punching support, the log block manager is unsafe to use. It wont ever delete blocks, consuming
ever more space on disk.
If you cant use hole punching in your environment, you can still try Kudu. Enable the file block manager instead
of the log block manager by adding the --block_manager=file flag to the commands you use to start the
master and tablet servers. The file block manager does not scale as well as the log block manager.

Clock is not synchronized

A Network Time Protocol (NTP) process is required on each Kudu master and tablet server. If NTP is not installed or is
not running, you may see errors such as the following:

I0929 10:00:26.570979 21371 master_main.cc:52] Initializing master server...


F0929 10:00:26.571107 21371 master_main.cc:53] Check failed: _s.ok() Bad status: Service
unavailable: Clock is not synchronized:
Error reading clock. Clock considered unsynchronized. Errno: Invalid argument

let_server_main.cc:48] Initializing tablet server...


F0929 10:00:26.572041 21370 tablet_server_main.cc:49] Check failed: _s.ok() Bad status:
Service unavailable: Clock is not synchronized:
Error reading clock. Clock considered unsynchronized. Errno: Success

To resolve this type of error, be sure that NTP is installed on each master and tablet server, and that all NTP processes
synchronize to the same time source.

deploy.py script exits with create: error: too few arguments

The deploy.py script, which is used to create a new Impala_Kudu service or clone one from an existing Apache Impala
(incubating) service, takes a different number of required arguments when using the create and clone operations.

44 | Apache Kudu (incubating) User Guide


Troubleshooting Apache Kudu

If you use the create option without specifying scratch directories, the deploy.py script will fail with the error
create: error: too few arguments. Re-run the command, specifying scratch directories:

deploy.py create <scratch_dirs> <service_name> --cluster <cluster_name>

deploy.py create /data/impala IMPALA_KUDU-1 --cluster 'Cluster 1'

Troubleshooting Performance Issues


Kudu Tracing
See Kudu Tracing for details about different types of tracing available in Kudu.

Apache Kudu (incubating) User Guide | 45


Cloudera Manager Metrics and Properties for Kudu

Cloudera Manager Metrics and Properties for Kudu


The following topics list the metrics and properties exposed by Cloudera Manager when a Kudu service is managed by
Cloudera Manager.

Kudu (Beta) Metrics


In addition to these base metrics, many aggregate metrics are available. If an entity type has parents defined, you can
formulate all possible aggregate metrics using the formula base_metric_across_parents.
In addition, metrics for aggregate totals can be formed by adding the prefix total_ to the front of the metric name.
Use the type-ahead feature in the Cloudera Manager chart browser to find the exact aggregate metric name, in case
the plural form does not end in "s".
For example, the following metric names may be valid for Kudu (Beta):
alerts_rate_across_clusters
total_alerts_rate_across_clusters
Some metrics, such as alerts_rate, apply to nearly every metric context. Others only apply to a certain service or
role.

Metric Name Description Unit Parents CDH Version


alerts_rate The number of alerts. events per cluster CDH 4, CDH 5
second
events_critical_rate The number of critical events. events per cluster CDH 4, CDH 5
second
events_important_rate The number of important events. events per cluster CDH 4, CDH 5
second
events_informational_rate The number of informational events per cluster CDH 4, CDH 5
events. second
health_bad_rate Percentage of Time with Bad seconds per cluster CDH 4, CDH 5
Health second
health_concerning_rate Percentage of Time with seconds per cluster CDH 4, CDH 5
Concerning Health second
health_disabled_rate Percentage of Time with seconds per cluster CDH 4, CDH 5
Disabled Health second
health_good_rate Percentage of Time with Good seconds per cluster CDH 4, CDH 5
Health second
health_unknown_rate Percentage of Time with seconds per cluster CDH 4, CDH 5
Unknown Health second

Kudu Replica Metrics


In addition to these base metrics, many aggregate metrics are available. If an entity type has parents defined, you can
formulate all possible aggregate metrics using the formula base_metric_across_parents.
In addition, metrics for aggregate totals can be formed by adding the prefix total_ to the front of the metric name.

46 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Use the type-ahead feature in the Cloudera Manager chart browser to find the exact aggregate metric name, in case
the plural form does not end in "s".
For example, the following metric names may be valid for Kudu Replica:
kudu_all_transactions_inflight_across_clusters
total_kudu_all_transactions_inflight_across_clusters
Some metrics, such as alerts_rate, apply to nearly every metric context. Others only apply to a certain service or
role.

Metric Name Description Unit Parents CDH Version


kudu_all_transactions_inflight Number of transactions currently transactions cluster, kudu, CDH 4, CDH 5
in-flight, including any type. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_alter_schema_transactions_inflight Number of alter schema transactions cluster, kudu, CDH 4, CDH 5
transactions currently in-flight kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_bloom_lookups_per_op_rate Tracks the number of bloom samples per cluster, kudu, CDH 4, CDH 5
filter lookups performed by each second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several bloom filter kudu_tablet,
lookups if the tablet is not fully rack
compacted. High frequency of
high values may indicate that
compaction is falling behind. This
is the total number of recorded
samples.
kudu_bloom_lookups_per_op_sum_rate Tracks the number of bloom message.units.probes cluster, kudu, CDH 4, CDH 5
filter lookups performed by each per second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several bloom filter kudu_tablet,
lookups if the tablet is not fully rack
compacted. High frequency of
high values may indicate that
compaction is falling behind. This
is the total sum of recorded
samples.
kudu_bloom_lookups_rate Number of times a bloom filter message.units.probes cluster, kudu, CDH 4, CDH 5
was consulted per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_bytes_flushed_rate Amount of data that has been bytes per cluster, kudu, CDH 4, CDH 5
flushed to disk by this tablet. second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack

Apache Kudu (incubating) User Guide | 47


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_commit_wait_duration_rate Time spent waiting for samples per cluster, kudu, CDH 4, CDH 5
COMMIT_WAIT external second kudu-kudu_tserver,
consistency writes for this tablet. kudu_table,
This is the total number of kudu_tablet,
recorded samples. rack
kudu_commit_wait_duration_sum_rate Time spent waiting for message.units.microseconds cluster, kudu, CDH 4, CDH 5
COMMIT_WAIT external per second kudu-kudu_tserver,
consistency writes for this tablet. kudu_table,
This is the total sum of recorded kudu_tablet,
samples. rack
kudu_compact_rs_duration_rate Time spent compacting RowSets. samples per cluster, kudu, CDH 4, CDH 5
This is the total number of second kudu-kudu_tserver,
recorded samples. kudu_table,
kudu_tablet,
rack
kudu_compact_rs_duration_sum_rate Time spent compacting RowSets. message.units.miliseconds cluster, kudu, CDH 4, CDH 5
This is the total sum of recorded per second kudu-kudu_tserver,
samples. kudu_table,
kudu_tablet,
rack
kudu_compact_rs_running Number of RowSet compactions operations cluster, kudu, CDH 4, CDH 5
currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_delta_file_lookups_per_op_rate Tracks the number of delta file samples per cluster, kudu, CDH 4, CDH 5
lookups performed by each second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several delta file kudu_tablet,
lookups if the tablet is not fully rack
compacted. High frequency of
high values may indicate that
compaction is falling behind. This
is the total number of recorded
samples.
kudu_delta_file_lookups_per_op_sum_rate Tracks the number of delta file message.units.probes cluster, kudu, CDH 4, CDH 5
lookups performed by each per second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several delta file kudu_tablet,
lookups if the tablet is not fully rack
compacted. High frequency of
high values may indicate that
compaction is falling behind. This
is the total sum of recorded
samples.
kudu_delta_file_lookups_rate Number of times a delta file was message.units.probes cluster, kudu, CDH 4, CDH 5
consulted per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack

48 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_delta_major_compact_rs_duration_rate Seconds spent major delta samples per cluster, kudu, CDH 4, CDH 5
compacting. This is the total second kudu-kudu_tserver,
number of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_delta_major_compact_rs_duration_sum_rate Seconds spent major delta seconds per cluster, kudu, CDH 4, CDH 5
compacting. This is the total sum second kudu-kudu_tserver,
of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_delta_major_compact_rs_running Number of delta major operations cluster, kudu, CDH 4, CDH 5
compactions currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_delta_minor_compact_rs_duration_rate Time spent minor delta samples per cluster, kudu, CDH 4, CDH 5
compacting. This is the total second kudu-kudu_tserver,
number of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_delta_minor_compact_rs_duration_sum_rate Time spent minor delta message.units.miliseconds cluster, kudu, CDH 4, CDH 5
compacting. This is the total sum per second kudu-kudu_tserver,
of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_delta_minor_compact_rs_running Number of delta minor operations cluster, kudu, CDH 4, CDH 5
compactions currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_flush_dms_duration_rate Time spent flushing samples per cluster, kudu, CDH 4, CDH 5
DeltaMemStores. This is the total second kudu-kudu_tserver,
number of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_flush_dms_duration_sum_rate Time spent flushing message.units.miliseconds cluster, kudu, CDH 4, CDH 5
DeltaMemStores. This is the total per second kudu-kudu_tserver,
sum of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_flush_dms_running Number of delta memstore operations cluster, kudu, CDH 4, CDH 5
flushes currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_flush_mrs_duration_rate Time spent flushing samples per cluster, kudu, CDH 4, CDH 5
MemRowSets. This is the total second kudu-kudu_tserver,
number of recorded samples. kudu_table,

Apache Kudu (incubating) User Guide | 49


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_tablet,
rack
kudu_flush_mrs_duration_sum_rate Time spent flushing message.units.miliseconds cluster, kudu, CDH 4, CDH 5
MemRowSets. This is the total per second kudu-kudu_tserver,
sum of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_flush_mrs_running Number of MemRowSet flushes operations cluster, kudu, CDH 4, CDH 5
currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_follower_memory_pressure_rejections_rate Number of RPC requests rejected requests per cluster, kudu, CDH 4, CDH 5
due to memory pressure while second kudu-kudu_tserver,
FOLLOWER. kudu_table,
kudu_tablet,
rack
kudu_in_progress_ops Number of operations in the operations cluster, kudu, CDH 4, CDH 5
leader queue ack'd by a minority kudu-kudu_tserver,
of peers. kudu_table,
kudu_tablet,
rack
kudu_insertions_failed_dup_key_rate Number of inserts which failed message.units.rows cluster, kudu, CDH 4, CDH 5
because the key already existed per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_key_file_lookups_per_op_rate Tracks the number of key file samples per cluster, kudu, CDH 4, CDH 5
lookups performed by each second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several key file kudu_tablet,
lookups if the tablet is not fully rack
compacted and if bloom filters
are not effectively culling
lookups. This is the total number
of recorded samples.
kudu_key_file_lookups_per_op_sum_rate Tracks the number of key file message.units.probes cluster, kudu, CDH 4, CDH 5
lookups performed by each per second kudu-kudu_tserver,
operation. A single operation kudu_table,
may perform several key file kudu_tablet,
lookups if the tablet is not fully rack
compacted and if bloom filters
are not effectively culling
lookups. This is the total sum of
recorded samples.
kudu_key_file_lookups_rate Number of times a key cfile was message.units.probes cluster, kudu, CDH 4, CDH 5
consulted per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack

50 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_leader_memory_pressure_rejections_rate Number of RPC requests rejected requests per cluster, kudu, CDH 4, CDH 5
due to memory pressure while second kudu-kudu_tserver,
LEADER. kudu_table,
kudu_tablet,
rack
kudu_log_append_latency_rate Microseconds spent on samples per cluster, kudu, CDH 4, CDH 5
appending to the log segment second kudu-kudu_tserver,
file. This is the total number of kudu_table,
recorded samples. kudu_tablet,
rack
kudu_log_append_latency_sum_rate Microseconds spent on message.units.microseconds cluster, kudu, CDH 4, CDH 5
appending to the log segment per second kudu-kudu_tserver,
file. This is the total sum of kudu_table,
recorded samples. kudu_tablet,
rack
kudu_log_bytes_logged_rate Number of bytes logged since bytes per cluster, kudu, CDH 4, CDH 5
service start second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_cache_num_ops Number of operations in the log operations cluster, kudu, CDH 4, CDH 5
cache. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_cache_size Amount of memory in use for bytes cluster, kudu, CDH 4, CDH 5
caching the local log. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_entry_batches_per_group_rate Number of log entry batches in samples per cluster, kudu, CDH 4, CDH 5
a group commit group. This is second kudu-kudu_tserver,
the total number of recorded kudu_table,
samples. kudu_tablet,
rack
kudu_log_entry_batches_per_group_sum_rate Number of log entry batches in requests per cluster, kudu, CDH 4, CDH 5
a group commit group. This is second kudu-kudu_tserver,
the total sum of recorded kudu_table,
samples. kudu_tablet,
rack
kudu_log_gc_duration_rate Time spent garbage collecting samples per cluster, kudu, CDH 4, CDH 5
the logs. This is the total number second kudu-kudu_tserver,
of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_log_gc_duration_sum_rate Time spent garbage collecting message.units.miliseconds cluster, kudu, CDH 4, CDH 5
the logs. This is the total sum of per second kudu-kudu_tserver,
recorded samples. kudu_table,

Apache Kudu (incubating) User Guide | 51


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_tablet,
rack
kudu_log_gc_running Number of log GC operations operations cluster, kudu, CDH 4, CDH 5
currently running. kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_group_commit_latency_rate Microseconds spent on samples per cluster, kudu, CDH 4, CDH 5
committing an entire group. This second kudu-kudu_tserver,
is the total number of recorded kudu_table,
samples. kudu_tablet,
rack
kudu_log_group_commit_latency_sum_rate Microseconds spent on message.units.microseconds cluster, kudu, CDH 4, CDH 5
committing an entire group. This per second kudu-kudu_tserver,
is the total sum of recorded kudu_table,
samples. kudu_tablet,
rack
kudu_log_reader_bytes_read_rate Data read from the WAL since bytes per cluster, kudu, CDH 4, CDH 5
tablet start second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_reader_entries_read_rate Number of entries read from the entries per cluster, kudu, CDH 4, CDH 5
WAL since tablet start second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_log_reader_read_batch_latency_rate Microseconds spent reading log samples per cluster, kudu, CDH 4, CDH 5
entry batches. This is the total second kudu-kudu_tserver,
number of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_log_reader_read_batch_latency_sum_rate Microseconds spent reading log bytes per cluster, kudu, CDH 4, CDH 5
entry batches. This is the total second kudu-kudu_tserver,
sum of recorded samples. kudu_table,
kudu_tablet,
rack
kudu_log_roll_latency_rate Microseconds spent on rolling samples per cluster, kudu, CDH 4, CDH 5
over to a new log segment file. second kudu-kudu_tserver,
This is the total number of kudu_table,
recorded samples. kudu_tablet,
rack
kudu_log_roll_latency_sum_rate Microseconds spent on rolling message.units.microseconds cluster, kudu, CDH 4, CDH 5
over to a new log segment file. per second kudu-kudu_tserver,
This is the total sum of recorded kudu_table,
samples. kudu_tablet,
rack

52 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_log_sync_latency_rate Microseconds spent on samples per cluster, kudu, CDH 4, CDH 5
synchronizing the log segment second kudu-kudu_tserver,
file. This is the total number of kudu_table,
recorded samples. kudu_tablet,
rack
kudu_log_sync_latency_sum_rate Microseconds spent on message.units.microseconds cluster, kudu, CDH 4, CDH 5
synchronizing the log segment per second kudu-kudu_tserver,
file. This is the total sum of kudu_table,
recorded samples. kudu_tablet,
rack
kudu_majority_done_ops Number of operations in the operations cluster, kudu, CDH 4, CDH 5
leader queue ack'd by a majority kudu-kudu_tserver,
but not all peers. kudu_table,
kudu_tablet,
rack
kudu_memrowset_size Size of this tablet's memrowset bytes cluster, kudu, CDH 4, CDH 5
kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_mrs_lookups_rate Number of times a MemRowSet message.units.probes cluster, kudu, CDH 4, CDH 5
was consulted. per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_on_disk_size Size of this tablet on disk. bytes cluster, kudu, CDH 4, CDH 5
kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_op_prepare_queue_length_rate Number of operations waiting to samples per cluster, kudu, CDH 4, CDH 5
be prepared within this tablet. second kudu-kudu_tserver,
High queue lengths indicate that kudu_table,
the server is unable to process kudu_tablet,
operations as fast as they are rack
being written to the WAL. This is
the total number of recorded
samples.
kudu_op_prepare_queue_length_sum_rate Number of operations waiting to tasks per cluster, kudu, CDH 4, CDH 5
be prepared within this tablet. second kudu-kudu_tserver,
High queue lengths indicate that kudu_table,
the server is unable to process kudu_tablet,
operations as fast as they are rack
being written to the WAL. This is
the total sum of recorded
samples.
kudu_op_prepare_queue_time_rate Time that operations spent samples per cluster, kudu, CDH 4, CDH 5
waiting in the prepare queue second kudu-kudu_tserver,
before being processed. High kudu_table,
queue times indicate that the

Apache Kudu (incubating) User Guide | 53


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


server is unable to process kudu_tablet,
operations as fast as they are rack
being written to the WAL. This is
the total number of recorded
samples.
kudu_op_prepare_queue_time_sum_rate Time that operations spent message.units.microseconds cluster, kudu, CDH 4, CDH 5
waiting in the prepare queue per second kudu-kudu_tserver,
before being processed. High kudu_table,
queue times indicate that the kudu_tablet,
server is unable to process rack
operations as fast as they are
being written to the WAL. This is
the total sum of recorded
samples.
kudu_op_prepare_run_time_rate Time that operations spent being samples per cluster, kudu, CDH 4, CDH 5
prepared in the tablet. High second kudu-kudu_tserver,
values may indicate that the kudu_table,
server is under-provisioned or kudu_tablet,
that operations are experiencing rack
high contention with one
another for locks. This is the
total number of recorded
samples.
kudu_op_prepare_run_time_sum_rate Time that operations spent being message.units.microseconds cluster, kudu, CDH 4, CDH 5
prepared in the tablet. High per second kudu-kudu_tserver,
values may indicate that the kudu_table,
server is under-provisioned or kudu_tablet,
that operations are experiencing rack
high contention with one
another for locks. This is the
total sum of recorded samples.
kudu_raft_term Current Term of the Raft message.units.units cluster, kudu, CDH 4, CDH 5
Consensus algorithm. This kudu-kudu_tserver,
number increments each time a kudu_table,
leader election is started. kudu_tablet,
rack
kudu_rows_deleted_rate Number of row delete message.units.rows cluster, kudu, CDH 4, CDH 5
operations performed on this per second kudu-kudu_tserver,
tablet since service start kudu_table,
kudu_tablet,
rack
kudu_rows_inserted_rate Number of rows inserted into message.units.rows cluster, kudu, CDH 4, CDH 5
this tablet since service start per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_rows_updated_rate Number of row update message.units.rows cluster, kudu, CDH 4, CDH 5
operations performed on this per second kudu-kudu_tserver,
tablet since service start kudu_table,
kudu_tablet,
rack

54 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_scanner_bytes_returned_rate Number of bytes returned by bytes per cluster, kudu, CDH 4, CDH 5
scanners to clients. This count is second kudu-kudu_tserver,
measured after predicates are kudu_table,
applied and the data is decoded kudu_tablet,
for consumption by clients, and rack
thus is not a reflection of the
amount of work being done by
scanners.
kudu_scanner_bytes_scanned_from_disk_rate Number of bytes read by scan bytes per cluster, kudu, CDH 4, CDH 5
requests. This is measured as a second kudu-kudu_tserver,
raw count prior to application of kudu_table,
predicates, deleted data,or kudu_tablet,
MVCC-based filtering. Thus, this rack
is a better measure of actual IO
that has been caused by scan
operations compared to the
Scanner Bytes Returned metric.
Note that this only counts data
that has been flushed to disk,
and does not include data read
from in-memory stores.
However, itincludes both cache
misses and cache hits.
kudu_scanner_cells_returned_rate Number of table cells returned message.units.cells cluster, kudu, CDH 4, CDH 5
by scanners to clients. This count per second kudu-kudu_tserver,
is measured after predicates are kudu_table,
applied, and thus is not a kudu_tablet,
reflection of the amount of work rack
being done by scanners.
kudu_scanner_cells_scanned_from_disk_rate Number of table cells processed message.units.cells cluster, kudu, CDH 4, CDH 5
by scan requests. This is per second kudu-kudu_tserver,
measured as a raw count prior kudu_table,
to application of predicates, kudu_tablet,
deleted data,or MVCC-based rack
filtering. Thus, this is a better
measure of actual table cells that
have been processed by scan
operations compared to the
Scanner Cells Returned metric.
Note that this only counts data
that has been flushed to disk,
and does not include data read
from in-memory stores.
However, itincludes both cache
misses and cache hits.
kudu_scanner_rows_returned_rate Number of rows returned by message.units.rows cluster, kudu, CDH 4, CDH 5
scanners to clients. This count is per second kudu-kudu_tserver,
measured after predicates are kudu_table,
applied, and thus is not a kudu_tablet,
reflection of the amount of work rack
being done by scanners.

Apache Kudu (incubating) User Guide | 55


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_scanner_rows_scanned_rate Number of rows processed by message.units.rows cluster, kudu, CDH 4, CDH 5
scan requests. This is measured per second kudu-kudu_tserver,
as a raw count prior to kudu_table,
application of predicates, kudu_tablet,
deleted data,or MVCC-based rack
filtering. Thus, this is a better
measure of actual table rows
that have been processed by
scan operations compared to the
Scanner Rows Returned metric.
kudu_scans_started_rate Number of scanners which have message.units.scanners cluster, kudu, CDH 4, CDH 5
been started on this tablet per second kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack
kudu_snapshot_read_inflight_wait_duration_rate Time spent waiting for in-flight samples per cluster, kudu, CDH 4, CDH 5
writes to complete for second kudu-kudu_tserver,
READ_AT_SNAPSHOT scans. This kudu_table,
is the total number of recorded kudu_tablet,
samples. rack
kudu_snapshot_read_inflight_wait_duration_sum_rate Time spent waiting for in-flight message.units.microseconds cluster, kudu, CDH 4, CDH 5
writes to complete for per second kudu-kudu_tserver,
READ_AT_SNAPSHOT scans. This kudu_table,
is the total sum of recorded kudu_tablet,
samples. rack
kudu_transaction_memory_pressure_rejections_rate Number of transactions rejected transactions cluster, kudu, CDH 4, CDH 5
because the tablet's transaction per second kudu-kudu_tserver,
memory limit was reached. kudu_table,
kudu_tablet,
rack
kudu_write_op_duration_client_propagated_consistency_rate Duration of writes to this tablet samples per cluster, kudu, CDH 4, CDH 5
with external consistency set to second kudu-kudu_tserver,
CLIENT_PROPAGATED. This is the kudu_table,
total number of recorded kudu_tablet,
samples. rack
kudu_write_op_duration_client_propagated_consistency_sum_rate Duration of writes to this tablet message.units.microseconds cluster, kudu, CDH 4, CDH 5
with external consistency set to per second kudu-kudu_tserver,
CLIENT_PROPAGATED. This is the kudu_table,
total sum of recorded samples. kudu_tablet,
rack
kudu_write_op_duration_commit_wait_consistency_rate Duration of writes to this tablet samples per cluster, kudu, CDH 4, CDH 5
with external consistency set to second kudu-kudu_tserver,
COMMIT_WAIT. This is the total kudu_table,
number of recorded samples. kudu_tablet,
rack
kudu_write_op_duration_commit_wait_consistency_sum_rate Duration of writes to this tablet message.units.microseconds cluster, kudu, CDH 4, CDH 5
with external consistency set to per second kudu-kudu_tserver,
COMMIT_WAIT. This is the total kudu_table,
sum of recorded samples. kudu_tablet,
rack

56 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_write_transactions_inflight Number of write transactions transactions cluster, kudu, CDH 4, CDH 5
currently in-flight kudu-kudu_tserver,
kudu_table,
kudu_tablet,
rack

Tablet Server Metrics


In addition to these base metrics, many aggregate metrics are available. If an entity type has parents defined, you can
formulate all possible aggregate metrics using the formula base_metric_across_parents.
In addition, metrics for aggregate totals can be formed by adding the prefix total_ to the front of the metric name.
Use the type-ahead feature in the Cloudera Manager chart browser to find the exact aggregate metric name, in case
the plural form does not end in "s".
For example, the following metric names may be valid for Tablet Server:
alerts_rate_across_accumulos
total_alerts_rate_across_accumulos
Some metrics, such as alerts_rate, apply to nearly every metric context. Others only apply to a certain service or
role.

Metric Name Description Unit Parents CDH Version


alerts_rate The number of alerts. events per accumulo, CDH 4, CDH 5
second cluster, rack
cgroup_cpu_system_rate CPU usage of the role's cgroup seconds per accumulo, CDH 4, CDH 5
second cluster, rack
cgroup_cpu_user_rate User Space CPU usage of the seconds per accumulo, CDH 4, CDH 5
role's cgroup second cluster, rack
cgroup_mem_page_cache Page cache usage of the role's bytes accumulo, CDH 4, CDH 5
cgroup cluster, rack
cgroup_mem_rss Resident memory of the role's bytes accumulo, CDH 4, CDH 5
cgroup cluster, rack
cgroup_mem_swap Swap usage of the role's cgroup bytes accumulo, CDH 4, CDH 5
cluster, rack
cgroup_read_bytes_rate Bytes read from all disks by the bytes per accumulo, CDH 4, CDH 5
role's cgroup second cluster, rack
cgroup_read_ios_rate Number of read I/O operations ios per second accumulo, CDH 4, CDH 5
from all disks by the role's cluster, rack
cgroup
cgroup_write_bytes_rate Bytes written to all disks by the bytes per accumulo, CDH 4, CDH 5
role's cgroup second cluster, rack
cgroup_write_ios_rate Number of write I/O operations ios per second accumulo, CDH 4, CDH 5
to all disks by the role's cgroup cluster, rack
cpu_system_rate Total System CPU seconds per accumulo, CDH 4, CDH 5
second cluster, rack

Apache Kudu (incubating) User Guide | 57


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


cpu_user_rate Total CPU user time seconds per accumulo, CDH 4, CDH 5
second cluster, rack
events_critical_rate The number of critical events. events per accumulo, CDH 4, CDH 5
second cluster, rack
events_important_rate The number of important events. events per accumulo, CDH 4, CDH 5
second cluster, rack
events_informational_rate The number of informational events per accumulo, CDH 4, CDH 5
events. second cluster, rack
fd_max Maximum number of file file descriptors accumulo, CDH 4, CDH 5
descriptors cluster, rack
fd_open Open file descriptors. file descriptors accumulo, CDH 4, CDH 5
cluster, rack
health_bad_rate Percentage of Time with Bad seconds per accumulo, CDH 4, CDH 5
Health second cluster, rack
health_concerning_rate Percentage of Time with seconds per accumulo, CDH 4, CDH 5
Concerning Health second cluster, rack
health_disabled_rate Percentage of Time with seconds per accumulo, CDH 4, CDH 5
Disabled Health second cluster, rack
health_good_rate Percentage of Time with Good seconds per accumulo, CDH 4, CDH 5
Health second cluster, rack
health_unknown_rate Percentage of Time with seconds per accumulo, CDH 4, CDH 5
Unknown Health second cluster, rack
kudu_active_scanners Number of scanners that are message.units.scanners cluster, kudu, CDH 4, CDH 5
currently active rack
kudu_block_cache_evictions_rate Number of blocks evicted from blocks per cluster, kudu, CDH 4, CDH 5
the cache second rack
kudu_block_cache_hits_caching_rate Number of lookups that were blocks per cluster, kudu, CDH 4, CDH 5
expecting a block that found second rack
one.Use this number instead of
cache_hits when trying to
determine how efficient the
cache is
kudu_block_cache_hits_rate Number of lookups that found a blocks per cluster, kudu, CDH 4, CDH 5
block second rack
kudu_block_cache_inserts_rate Number of blocks inserted in the blocks per cluster, kudu, CDH 4, CDH 5
cache second rack
kudu_block_cache_lookups_rate Number of blocks looked up blocks per cluster, kudu, CDH 4, CDH 5
from the cache second rack
kudu_block_cache_misses_caching_rate Number of lookups that were blocks per cluster, kudu, CDH 4, CDH 5
expecting a block that didn't second rack
yield one.Use this number
instead of cache_misses when
trying to determine how efficient
the cache is

58 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_block_cache_misses_rate Number of lookups that didn't blocks per cluster, kudu, CDH 4, CDH 5
yield a block second rack
kudu_block_cache_usage Memory consumed by the block bytes cluster, kudu, CDH 4, CDH 5
cache rack
kudu_block_manager_blocks_open_reading Number of data blocks currently blocks cluster, kudu, CDH 4, CDH 5
open for reading rack
kudu_block_manager_blocks_open_writing Number of data blocks currently blocks cluster, kudu, CDH 4, CDH 5
open for writing rack
kudu_block_manager_total_bytes_read_rate Number of bytes of block data bytes per cluster, kudu, CDH 4, CDH 5
read since service start second rack
kudu_block_manager_total_bytes_written_rate Number of bytes of block data bytes per cluster, kudu, CDH 4, CDH 5
written since service start second rack
kudu_block_manager_total_readable_blocks_rate Number of data blocks opened blocks per cluster, kudu, CDH 4, CDH 5
for reading since service start second rack
kudu_block_manager_total_writable_blocks_rate Number of data blocks opened blocks per cluster, kudu, CDH 4, CDH 5
for writing since service start second rack
kudu_code_cache_hits_rate Number of codegen cache hits hits per second cluster, kudu, CDH 4, CDH 5
since start rack
kudu_code_cache_queries_rate Number of codegen cache queries per cluster, kudu, CDH 4, CDH 5
queries (hits + misses) since start second rack
kudu_cpu_stime_rate Total system CPU time of the message.units.miliseconds cluster, kudu, CDH 4, CDH 5
process per second rack
kudu_cpu_utime_rate Total user CPU time of the message.units.miliseconds cluster, kudu, CDH 4, CDH 5
process per second rack
kudu_generic_current_allocated_bytes Number of bytes used by the bytes cluster, kudu, CDH 4, CDH 5
application. This will not typically rack
match the memory use reported
by the OS, because it does not
include TCMalloc overhead or
memory fragmentation.
kudu_generic_heap_size Bytes of system memory bytes cluster, kudu, CDH 4, CDH 5
reserved by TCMalloc. rack
kudu_glog_error_messages_rate Number of ERROR-level log messages per cluster, kudu, CDH 4, CDH 5
messages emitted by the second rack
application.
kudu_glog_info_messages_rate Number of INFO-level log messages per cluster, kudu, CDH 4, CDH 5
messages emitted by the second rack
application.
kudu_glog_warning_messages_rate Number of WARNING-level log messages per cluster, kudu, CDH 4, CDH 5
messages emitted by the second rack
application.
kudu_handler_latency_kudu_consensus_consensusservice_changeconfig_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.ChangeConfig() second rack
RPC requests. This is the total
number of recorded samples.

Apache Kudu (incubating) User Guide | 59


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_consensus_consensusservice_changeconfig_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.ChangeConfig() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getconsensusstate_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetConsensusState() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getconsensusstate_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetConsensusState() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getlastopid_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetLastOpId() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getlastopid_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetLastOpId() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getnodeinstance_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetNodeInstance() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_getnodeinstance_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.GetNodeInstance() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_leaderstepdown_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.LeaderStepDown() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_leaderstepdown_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.LeaderStepDown() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_requestconsensusvote_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.RequestConsensusVote() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_requestconsensusvote_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.RequestConsensusVote() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_runleaderelection_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.RunLeaderElection() second rack
RPC requests. This is the total
number of recorded samples.

60 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_consensus_consensusservice_runleaderelection_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.RunLeaderElection() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_startremotebootstrap_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.StartRemoteBootstrap() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_startremotebootstrap_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.StartRemoteBootstrap() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_updateconsensus_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.UpdateConsensus() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_consensus_consensusservice_updateconsensus_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.consensus.ConsensusService.UpdateConsensus() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_altertable_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.AlterTable() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_altertable_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.AlterTable() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_createtable_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.CreateTable() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_createtable_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.CreateTable() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_deletetable_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.DeleteTable() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_deletetable_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.DeleteTable() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_getmasterregistration_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetMasterRegistration() second rack
RPC requests. This is the total
number of recorded samples.

Apache Kudu (incubating) User Guide | 61


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_master_masterservice_getmasterregistration_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetMasterRegistration() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettablelocations_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTableLocations() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettablelocations_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTableLocations() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettableschema_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTableSchema() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettableschema_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTableSchema() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettabletlocations_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTabletLocations() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_gettabletlocations_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.GetTabletLocations() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_isaltertabledone_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.IsAlterTableDone() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_isaltertabledone_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.IsAlterTableDone() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_iscreatetabledone_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.IsCreateTableDone() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_iscreatetabledone_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.IsCreateTableDone() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_listmasters_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListMasters() second rack
RPC requests. This is the total
number of recorded samples.

62 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_master_masterservice_listmasters_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListMasters() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_listtables_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListTables() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_listtables_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListTables() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_listtabletservers_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListTabletServers() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_listtabletservers_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.ListTabletServers() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_ping_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.Ping() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_ping_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.Ping() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_master_masterservice_tsheartbeat_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.TSHeartbeat() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_master_masterservice_tsheartbeat_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.master.MasterService.TSHeartbeat() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_server_genericservice_flushcoverage_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.FlushCoverage() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_server_genericservice_flushcoverage_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.FlushCoverage() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_server_genericservice_getstatus_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.GetStatus() second rack
RPC requests. This is the total
number of recorded samples.

Apache Kudu (incubating) User Guide | 63


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_server_genericservice_getstatus_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.GetStatus() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_server_genericservice_serverclock_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.ServerClock() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_server_genericservice_serverclock_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.ServerClock() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_server_genericservice_setflag_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.SetFlag() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_server_genericservice_setflag_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.SetFlag() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_server_genericservice_setserverwallclockfortests_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.SetServerWallClockForTests() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_server_genericservice_setserverwallclockfortests_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.server.GenericService.SetServerWallClockForTests() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_beginremotebootstrapsession_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudut.server.RemoteBootstrapServcie.Begn
i RemoteBootstrapSesso
i n() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_beginremotebootstrapsession_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudut.server.RemoteBootstrapServcie.Begn
i RemoteBootstrapSesso
i n() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_checksessionactive_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.RemoteBootstrapService.CheckSessionActive() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_checksessionactive_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.RemoteBootstrapService.CheckSessionActive() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_endremotebootstrapsession_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudut.server.RemoteBootstrapServcie.EndRemoteBootstrapSesso
i n() second rack
RPC requests. This is the total
number of recorded samples.

64 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_tserver_remotebootstrapservice_endremotebootstrapsession_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudut.server.RemoteBootstrapServcie.EndRemoteBootstrapSesso
i n() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_fetchdata_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.RemoteBootstrapService.FetchData() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_remotebootstrapservice_fetchdata_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.RemoteBootstrapService.FetchData() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_alterschema_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserverT.abletServerAdminService.AlterSchema() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_alterschema_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserverT.abletServerAdminService.AlterSchema() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_createtablet_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerAdminService.CreateTablet() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_createtablet_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerAdminService.CreateTablet() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_deletetablet_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerAdminService.DeleteTablet() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserveradminservice_deletetablet_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerAdminService.DeleteTablet() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_checksum_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Checksum() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_checksum_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Checksum() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_listtablets_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.ListTablets() second rack
RPC requests. This is the total
number of recorded samples.

Apache Kudu (incubating) User Guide | 65


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_handler_latency_kudu_tserver_tabletserverservice_listtablets_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.ListTablets() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_ping_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Ping() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_ping_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Ping() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_scan_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Scan() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_scan_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Scan() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_scannerkeepalive_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.ScannerKeepAlive() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_scannerkeepalive_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.ScannerKeepAlive() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_write_rate Microseconds spent handling samples per cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Write() second rack
RPC requests. This is the total
number of recorded samples.
kudu_handler_latency_kudu_tserver_tabletserverservice_write_sum_rate Microseconds spent handling message.units.microseconds cluster, kudu, CDH 4, CDH 5
kudu.tserver.TabletServerService.Write() per second rack
RPC requests. This is the total
sum of recorded samples.
kudu_hybrid_clock_error Server clock maximum error. message.units.microseconds cluster, kudu, CDH 4, CDH 5
rack
kudu_hybrid_clock_timestamp Hybrid clock timestamp. message.units.microseconds cluster, kudu, CDH 4, CDH 5
rack
kudu_involuntary_context_switches_rate Total involuntary context message.untis.context_swtiches cluster, kudu, CDH 4, CDH 5
switches per second rack
kudu_log_block_manager_blocks_under_management Number of data blocks currently blocks cluster, kudu, CDH 4, CDH 5
under management rack
kudu_log_block_manager_bytes_under_management Number of bytes of data blocks bytes cluster, kudu, CDH 4, CDH 5
currently under management rack

66 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


kudu_log_block_manager_containers_rate Number of log block containers messageu
.ntisol.g_bolck_contaniers cluster, kudu, CDH 4, CDH 5
per second rack
kudu_log_block_manager_full_containers_rate Number of full log block messageu
.ntisol.g_bolck_contaniers cluster, kudu, CDH 4, CDH 5
containers per second rack
kudu_logical_clock_timestamp Logical clock timestamp. message.units.units cluster, kudu, CDH 4, CDH 5
rack
kudu_op_apply_queue_length_rate Number of operations waiting to samples per cluster, kudu, CDH 4, CDH 5
be applied to the tablet. High second rack
queue lengths indicate that the
server is unable to process
operations as fast as they are
being written to the WAL. This is
the total number of recorded
samples.
kudu_op_apply_queue_length_sum_rate Number of operations waiting to tasks per cluster, kudu, CDH 4, CDH 5
be applied to the tablet. High second rack
queue lengths indicate that the
server is unable to process
operations as fast as they are
being written to the WAL. This is
the total sum of recorded
samples.
kudu_op_apply_queue_time_rate Time that operations spent samples per cluster, kudu, CDH 4, CDH 5
waiting in the apply queue second rack
before being processed. High
queue times indicate that the
server is unable to process
operations as fast as they are
being written to the WAL. This is
the total number of recorded
samples.
kudu_op_apply_queue_time_sum_rate Time that operations spent message.units.microseconds cluster, kudu, CDH 4, CDH 5
waiting in the apply queue per second rack
before being processed. High
queue times indicate that the
server is unable to process
operations as fast as they are
being written to the WAL. This is
the total sum of recorded
samples.
kudu_op_apply_run_time_rate Time that operations spent being samples per cluster, kudu, CDH 4, CDH 5
applied to the tablet. High values second rack
may indicate that the server is
under-provisioned or that
operations consist of very large
batches. This is the total number
of recorded samples.
kudu_op_apply_run_time_sum_rate Time that operations spent being message.units.microseconds cluster, kudu, CDH 4, CDH 5
applied to the tablet. High values per second rack
may indicate that the server is

Apache Kudu (incubating) User Guide | 67


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


under-provisioned or that
operations consist of very large
batches. This is the total sum of
recorded samples.
kudu_rpc_connections_accepted_rate Number of incoming TCP connections cluster, kudu, CDH 4, CDH 5
connections made to the RPC per second rack
server
kudu_rpc_incoming_queue_time_rate Number of microseconds samples per cluster, kudu, CDH 4, CDH 5
incoming RPC requests spend in second rack
the worker queue. This is the
total number of recorded
samples.
kudu_rpc_incoming_queue_time_sum_rate Number of microseconds message.units.microseconds cluster, kudu, CDH 4, CDH 5
incoming RPC requests spend in per second rack
the worker queue. This is the
total sum of recorded samples.
kudu_rpcs_queue_overflow_rate Number of RPCs dropped requests per cluster, kudu, CDH 4, CDH 5
because the service queue was second rack
full.
kudu_rpcs_timed_out_in_queue_rate Number of RPCs whose timeout requests per cluster, kudu, CDH 4, CDH 5
elapsed while waiting in the second rack
service queue, and thus were not
processed.
kudu_scanner_duration_rate Histogram of the duration of samples per cluster, kudu, CDH 4, CDH 5
active scanners on this tablet. second rack
This is the total number of
recorded samples.
kudu_scanner_duration_sum_rate Histogram of the duration of message.units.microseconds cluster, kudu, CDH 4, CDH 5
active scanners on this tablet. per second rack
This is the total sum of recorded
samples.
kudu_scanners_expired_rate Number of scanners that have message.units.scanners cluster, kudu, CDH 4, CDH 5
expired since service start per second rack
kudu_spinlock_contention_time_rate Amount of time consumed by message.units.microseconds cluster, kudu, CDH 4, CDH 5
contention on internal spinlocks per second rack
since the server started. If this
increases rapidly, it may indicate
a performance issue in Kudu
internals triggered by a
particular workload and warrant
investigation.
kudu_tcmalloc_current_total_thread_cache_bytes A measure of some of the bytes cluster, kudu, CDH 4, CDH 5
memory TCMalloc is using (for rack
small objects).
kudu_tcmalloc_max_total_thread_cache_bytes A limit to how much memory bytes cluster, kudu, CDH 4, CDH 5
TCMalloc dedicates for small rack
objects. Higher numbers trade
off more memory use for -- in

68 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


some situations -- improved
efficiency.
kudu_tcmalloc_pageheap_free_bytes Number of bytes in free, mapped bytes cluster, kudu, CDH 4, CDH 5
pages in page heap. These bytes rack
can be used to fulfill allocation
requests. They always count
towards virtual memory usage,
and unless the underlying
memory is swapped out by the
OS, they also count towards
physical memory usage.
kudu_tcmalloc_pageheap_unmapped_bytes Number of bytes in free, bytes cluster, kudu, CDH 4, CDH 5
unmapped pages in page heap. rack
These are bytes that have been
released back to the OS, possibly
by one of the MallocExtension
"Release" calls. They can be used
to fulfill allocation requests, but
typically incur a page fault. They
always count towards virtual
memory usage, and depending
on the OS, typically do not count
towards physical memory usage.
kudu_threads_running Current number of running threads cluster, kudu, CDH 4, CDH 5
threads rack
kudu_threads_started_rate Total number of threads started threads per cluster, kudu, CDH 4, CDH 5
on this server second rack
kudu_voluntary_context_switches_rate Total voluntary context switches message.untis.context_swtiches cluster, kudu, CDH 4, CDH 5
per second rack
mem_rss Resident memory used bytes accumulo, CDH 4, CDH 5
cluster, rack
mem_swap Amount of swap memory used bytes accumulo, CDH 4, CDH 5
by this role's process. cluster, rack
mem_virtual Virtual memory used bytes accumulo, CDH 4, CDH 5
cluster, rack
oom_exits_rate The number of times the role's exits per accumulo, CDH 4, CDH 5
backing process was killed due second cluster, rack
to an OutOfMemory error. This
counter is only incremented if
the Cloudera Manager "Kill
When Out of Memory" option is
enabled.
read_bytes_rate The number of bytes read from bytes per accumulo, CDH 4, CDH 5
the device second cluster, rack
unexpected_exits_rate The number of times the role's exits per accumulo, CDH 4, CDH 5
backing process exited second cluster, rack
unexpectedly.

Apache Kudu (incubating) User Guide | 69


Cloudera Manager Metrics and Properties for Kudu

Metric Name Description Unit Parents CDH Version


uptime For a host, the amount of time seconds accumulo, CDH 4, CDH 5
since the host was booted. For a cluster, rack
role, the uptime of the backing
process.
write_bytes_rate The number of bytes written to bytes per accumulo, CDH 4, CDH 5
the device second cluster, rack

Kudu (Beta) Properties in CDH 5.7.0


Role groups:

Master

Advanced

Display Name Description Related Name Default API Name Required


Value
Master Advanced For advanced use only. A gflagfile_role_safety_valve false
Configuration string to be inserted into
Snippet (Safety gflagfile for this role only.
Valve) for gflagfile
Master Advanced For advanced use only. A kudu-monitoring.properties_role_safety_valve false
Configuration string to be inserted into
Snippet (Safety kudu-monitoring.properties
Valve) for for this role only.
kudu-monitoring.properties
Master Environment For advanced use only, KUDU_MASTER_role_env_safety_valve false
Advanced key-value pairs (one on each
Configuration line) to be inserted into a
Snippet (Safety role's environment. Applies
Valve) to configurations of this role
except client configuration.
Automatically When set, this role's process false process_auto_restart true
Restart Process is automatically (and
transparently) restarted in
the event of an unexpected
failure.

Logs

Display Name Description Related Name Default API Name Required


Value
Master Maximum Log messages logged at this logbuflevel 0 glog_logbuflevel false
Log Level to Buffer level or lower are buffered
in memory.
Master Maximum Approximate maximum log max_log_size 1800 MiB glog_maxlogsize false
Log Size file size in megabytes before
rolling to a new log file.

70 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Master Minimum Messages logged via LOG() minloglevel 0 glog_minloglevel false
Log Level at a lower level than this are
not logged anywhere.
Master Minimum Messages logged via VLOG() v 0 glog_verbose false
Log Verbosity at a lower verbosity than
this are not logged
anywhere.
Master Log Directory The log directory for log files log_dir /var/log/kudu log_dir false
of the role Master.

Monitoring

Display Name Description Related Name Default API Name Required


Value
Enable Health Alerts When set, Cloudera true enable_alerts false
for this Role Manager will send alerts
when the health of this role
reaches the threshold
specified by the EventServer
setting
eventserver_health_events_alert_threshold
Enable Configuration When set, Cloudera false enable_config_alerts false
Change Alerts Manager will send alerts
when this entity's
configuration changes.
File Descriptor The health test thresholds Warning: kudu_master_fd_thresholds false
Monitoring of the number of file 50.0 %,
Thresholds descriptors used. Specified Critical: 70.0
as a percentage of file %
descriptor limit.
Master Host Health When computing the overall true kudu_master_host_health_enabled false
Test Master health, consider the
host's health.
Master Process Enables the health test that true kudu_master_scm_health_enabled false
Health Test the Master's process state
is consistent with the role
configuration
Process Swap The health test thresholds Warning: process_swap_memory_thresholds false
Memory Thresholds on the swap memory usage Any, Critical:
of the process. Never
Role Triggers The configured triggers for [] role_triggers true
this role. This is a JSON
formatted list of triggers.
These triggers are evaluated
as part as the health system.
Every trigger expression is
parsed, and if the trigger
condition is met, the list of

Apache Kudu (incubating) User Guide | 71


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
actions provided in the
trigger expression is
executed.Each trigger has
the following fields:
triggerName
(mandatory) - The
name of the trigger.
This value must be
unique for the specific
role.
triggerExpression
(mandatory) - A
tsquery expression
representing the
trigger.
streamThreshold
(optional) - The
maximum number of
streams that can satisfy
a condition of a trigger
before the condition
fires. By default set to
0, and any stream
returned causes the
condition to fire.
enabled (optional) -
By default set to 'true'.
If set to 'false', the
trigger is not evaluated.
expressionEditorConfig
(optional) - Metadata
for the trigger editor. If
present, the trigger
should only be edited
from the Edit Trigger
page; editing the
trigger here can lead to
inconsistencies.
For example, the following
JSON formatted trigger
configured for a DataNode
fires if the DataNode has
more than 1500 file
descriptors
opened:[{"triggerName":
"sample-trigger",
"triggerExpression":
"IF (SELECT fd_open
WHERE
roleName=$ROLENAME
and last(fd_open) >
1500) DO health:bad",

72 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
"streamThreshold": 0,
"enabled": "true"}]See
the trigger rules
documentation for more
details on how to write
triggers using tsquery.The
JSON format is evolving and
may change and, as a result,
backward compatibility is
not guaranteed between
releases.
Unexpected Exits The health test thresholds Warning: unexpected_exits_thresholds false
Thresholds for unexpected exits Never,
encountered within a recent Critical: Any
period specified by the
unexpected_exits_window
configuration for the role.
Unexpected Exits The period to review when 5 minute(s) unexpected_exits_window false
Monitoring Period computing unexpected exits.

Other

Display Name Description Related Name Default API Name Required


Value
Default Number of Default number of replicas default_num_replicas 3 default_num_replicas true
Replicas for each tablet.
Kudu Master Data Directories where Kudu fs_data_dirs fs_data_dirs true
Directories masters will store data
blocks.
Kudu Master WAL Directory where Kudu fs_wal_dir fs_wal_dir true
Directory masters will store
write-ahead logs. It can be
the same as one of the data
directories, but not a
sub-directory of a data
directory. Master and tablet
servers must use different
directories when co-located
on the same machine.
Kudu Master WAL If true, the Master will use log_force_fsync_all false log_force_fsync_all true
Fsyncs All Entries the fsync system call to
ensure that all modifications
to the catalog table are
durably written to disk.
WARNING: In this release,
enabling this option can
cause serious issues.
Master Address Configuration that's server.address master_address false
automatically set by

Apache Kudu (incubating) User Guide | 73


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Cloudera Manager to
propagate the Master's
address to the Tablet
Servers.
Kudu Master Web UI The interface of the Kudu webserver_interface webserver_interface false
Interface Master Web UI. If blank,
binds to 0.0.0.0.

Performance

Display Name Description Related Name Default API Name Required


Value
Maximum Process If configured, overrides the rlimit_fds false
File Descriptors process soft and hard rlimits
(also called ulimits) for file
descriptors to the
configured value.

Ports and Addresses

Display Name Description Related Name Default API Name Required


Value
Kudu Master Web UI The port of the Kudu Master webserver_port 8051 webserver_port true
Port Web UI.

Resource Management

Display Name Description Related Name Default API Name Required


Value
Cgroup CPU Shares Number of CPU shares to cpu.shares 1024 rm_cpu_shares true
assign to this role. The
greater the number of
shares, the larger the share
of the host's CPUs that will
be given to this role when
the host experiences CPU
contention. Must be
between 2 and 262144.
Defaults to 1024 for
processes not managed by
Cloudera Manager.
Cgroup I/O Weight Weight for the read I/O blkio.weight 500 rm_io_weight true
requests issued by this role.
The greater the weight, the
higher the priority of the
requests when the host
experiences I/O contention.
Must be between 100 and
1000. Defaults to 1000 for

74 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
processes not managed by
Cloudera Manager.
Cgroup Memory Hard memory limit to assign memory.limit_in_bytes -1 MiB rm_memory_hard_limit true
Hard Limit to this role, enforced by the
Linux kernel. When the limit
is reached, the kernel will
reclaim pages charged to the
process. If reclaiming fails,
the kernel may kill the
process. Both anonymous as
well as page cache pages
contribute to the limit. Use
a value of -1 B to specify no
limit. By default processes
not managed by Cloudera
Manager will have no limit.
Cgroup Memory Soft Soft memory limit to assign memory.soft_limit_in_bytes -1 MiB rm_memory_soft_limit true
Limit to this role, enforced by the
Linux kernel. When the limit
is reached, the kernel will
reclaim pages charged to the
process if and only if the
host is facing memory
pressure. If reclaiming fails,
the kernel may kill the
process. Both anonymous as
well as page cache pages
contribute to the limit. Use
a value of -1 B to specify no
limit. By default processes
not managed by Cloudera
Manager will have no limit.

Suppressions

Display Name Description Related Name Default API Name Required


Value
Suppress Whether to suppress false role_config_suppression_cdh_version_validator true
Configuration configuration warnings
Validator: CDH produced by the CDH
Version Validator Version Validator
configuration validator.
Suppress Parameter Whether to suppress false role_config_suppression_default_num_replicas true
Validation: Default configuration warnings
Number of Replicas produced by the built-in
parameter validation for the
Default Number of Replicas
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_fs_data_dirs true
Validation: Kudu configuration warnings
produced by the built-in

Apache Kudu (incubating) User Guide | 75


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Master Data parameter validation for the
Directories Kudu Master Data
Directories parameter.
Suppress Parameter Whether to suppress false role_config_suppression_fs_wal_dir true
Validation: Kudu configuration warnings
Master WAL produced by the built-in
Directory parameter validation for the
Kudu Master WAL Directory
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_gflagfile_role_safety_valve true
Validation: Master configuration warnings
Advanced produced by the built-in
Configuration parameter validation for the
Snippet (Safety Master Advanced
Valve) for gflagfile Configuration Snippet
(Safety Valve) for gflagfile
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_kudu-monitoring.properties_role_safety_valve true
Validation: Master configuration warnings
Advanced produced by the built-in
Configuration parameter validation for the
Snippet (Safety Master Advanced
Valve) for Configuration Snippet
kudu-monitoring.properties (Safety Valve) for
kudu-monitoring.properties
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_kudu_master_role_env_safety_valve true
Validation: Master configuration warnings
Environment produced by the built-in
Advanced parameter validation for the
Configuration Master Environment
Snippet (Safety Advanced Configuration
Valve) Snippet (Safety Valve)
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_log_dir true
Validation: Master configuration warnings
Log Directory produced by the built-in
parameter validation for the
Master Log Directory
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_master_address true
Validation: Master configuration warnings
Address produced by the built-in
parameter validation for the
Master Address parameter.
Suppress Parameter Whether to suppress false role_config_suppression_role_triggers true
Validation: Role configuration warnings
Triggers produced by the built-in
parameter validation for the
Role Triggers parameter.

76 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Suppress Parameter Whether to suppress false role_config_suppression_webserver_interface true
Validation: Kudu configuration warnings
Master Web UI produced by the built-in
Interface parameter validation for the
Kudu Master Web UI
Interface parameter.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_master_file_descriptor true
Test: File Descriptors results of the File
Descriptors heath test. The
results of suppressed health
tests are ignored when
computing the overall health
of the associated host, role
or service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_master_host_health true
Test: Host Health results of the Host Health
heath test. The results of
suppressed health tests are
ignored when computing the
overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_master_scm_health true
Test: Process Status results of the Process Status
heath test. The results of
suppressed health tests are
ignored when computing the
overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_master_swap_memory_usage true
Test: Swap Memory results of the Swap Memory
Usage Usage heath test. The results
of suppressed health tests
are ignored when computing
the overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_master_unexpected_exits true
Test: Unexpected results of the Unexpected
Exits Exits heath test. The results
of suppressed health tests

Apache Kudu (incubating) User Guide | 77


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
are ignored when computing
the overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.

Service-Wide

Advanced

Display Name Description Related Name Default API Name Required


Value
Kudu (Beta) Service For advanced use only, a gflagfile_service_safety_valve false
Advanced string to be inserted into
Configuration gflagfile. Applies to
Snippet (Safety configurations of all roles in
Valve) for gflagfile this service except client
configuration.
Kudu (Beta) Service For advanced use only, a kudu-monitoring.properties_service_safety_valve false
Advanced string to be inserted into
Configuration kudu-monitoring.properties.
Snippet (Safety Applies to configurations of
Valve) for all roles in this service
kudu-monitoring.properties except client configuration.
Kudu (Beta) Service For advanced use only, KUDU_service_env_safety_valve false
Environment key-value pairs (one on each
Advanced line) to be inserted into a
Configuration role's environment. Applies
Snippet (Safety to configurations of all roles
Valve) in this service except client
configuration.
System Group The group that this service's kudu process_groupname true
processes should run as.
System User The user that this service's kudu process_username true
processes should run as.

Monitoring

Display Name Description Related Name Default API Name Required


Value
Enable Service Level When set, Cloudera true enable_alerts false
Health Alerts Manager will send alerts
when the health of this
service reaches the
threshold specified by the
EventServer setting
eventserver_health_events_alert_threshold

78 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Enable Configuration When set, Cloudera false enable_config_alerts false
Change Alerts Manager will send alerts
when this entity's
configuration changes.
Service Triggers The configured triggers for [] service_triggers true
this service. This is a JSON
formatted list of triggers.
These triggers are evaluated
as part as the health system.
Every trigger expression is
parsed, and if the trigger
condition is met, the list of
actions provided in the
trigger expression is
executed.Each trigger has
the following fields:
triggerName
(mandatory) - The
name of the trigger.
This value must be
unique for the specific
service.
triggerExpression
(mandatory) - A
tsquery expression
representing the
trigger.
streamThreshold
(optional) - The
maximum number of
streams that can satisfy
a condition of a trigger
before the condition
fires. By default set to
0, and any stream
returned causes the
condition to fire.
enabled (optional) -
By default set to 'true'.
If set to 'false', the
trigger is not evaluated.
expressionEditorConfig
(optional) - Metadata
for the trigger editor. If
present, the trigger
should only be edited
from the Edit Trigger
page; editing the
trigger here can lead to
inconsistencies.

Apache Kudu (incubating) User Guide | 79


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
For example, the followig
JSON formatted trigger fires
if there are more than 10
DataNodes with more than
500 file descriptors
opened:[{"triggerName":
"sample-trigger",
"triggerExpression":
"IF (SELECT fd_open
WHERE roleType =
DataNode and
last(fd_open) > 500)
DO health:bad",
"streamThreshold":
10, "enabled":
"true"}]See the trigger
rules documentation for
more details on how to
write triggers using
tsquery.The JSON format is
evolving and may change
and, as a result, backward
compatibility is not
guaranteed between
releases.
Service Monitor For advanced use only, a list smon_derived_configs_safety_valve false
Derived Configs of derived configuration
Advanced properties that will be used
Configuration by the Service Monitor
Snippet (Safety instead of the default ones.
Valve)

Other

Display Name Description Related Name Default API Name Required


Value
Core Dump Directory If Enable Core Dump is set, core_dump_directory /var/log/kudu core_dump_directory true
Kudu processes will dump
cores to this location.
Enable Core Dump Used to generate a core enable_core_dump false enable_core_dump true
dump to get more
information about a Kudu
crash. Unless otherwise
configured systemwide
using
/proc/sys/kernel/core_pattern,
the dump is generated in the
configured core dump
directory. The core file can
be very large.

80 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Suppressions

Display Name Description Related Name Default API Name Required


Value
Suppress Parameter Whether to suppress false service_config_suppression_core_dump_directory true
Validation: Core configuration warnings
Dump Directory produced by the built-in
parameter validation for the
Core Dump Directory
parameter.
Suppress Parameter Whether to suppress false service_config_suppression_gflagfile_service_safety_valve true
Validation: Kudu configuration warnings
(Beta) Service produced by the built-in
Advanced parameter validation for the
Configuration Kudu (Beta) Service
Snippet (Safety Advanced Configuration
Valve) for gflagfile Snippet (Safety Valve) for
gflagfile parameter.
Suppress Parameter Whether to suppress false service_config_suppression_kudu-monitoring.properties_service_safety_valve true
Validation: Kudu configuration warnings
(Beta) Service produced by the built-in
Advanced parameter validation for the
Configuration Kudu (Beta) Service
Snippet (Safety Advanced Configuration
Valve) for Snippet (Safety Valve) for
kudu-monitoring.properties kudu-monitoring.properties
parameter.
Suppress Whether to suppress false service_config_suppression_kudu_master_count_validator true
Configuration configuration warnings
Validator: Master produced by the Master
Count Validator Count Validator
configuration validator.
Suppress Parameter Whether to suppress false service_config_suppression_kudu_service_env_safety_valve true
Validation: Kudu configuration warnings
(Beta) Service produced by the built-in
Environment parameter validation for the
Advanced Kudu (Beta) Service
Configuration Environment Advanced
Snippet (Safety Configuration Snippet
Valve) (Safety Valve) parameter.
Suppress Whether to suppress false service_config_suppression_kudu_tserver_count_validator true
Configuration configuration warnings
Validator: Tablet produced by the Tablet
Server Count Server Count Validator
Validator configuration validator.
Suppress Parameter Whether to suppress false service_config_suppression_process_groupname true
Validation: System configuration warnings
Group produced by the built-in
parameter validation for the
System Group parameter.

Apache Kudu (incubating) User Guide | 81


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Suppress Parameter Whether to suppress false service_config_suppression_process_username true
Validation: System configuration warnings
User produced by the built-in
parameter validation for the
System User parameter.
Suppress Parameter Whether to suppress false service_config_suppression_service_triggers true
Validation: Service configuration warnings
Triggers produced by the built-in
parameter validation for the
Service Triggers parameter.
Suppress Parameter Whether to suppress false service_config_suppression_smon_derived_configs_safety_valve true
Validation: Service configuration warnings
Monitor Derived produced by the built-in
Configs Advanced parameter validation for the
Configuration Service Monitor Derived
Snippet (Safety Configs Advanced
Valve) Configuration Snippet
(Safety Valve) parameter.

Tablet Server

Advanced

Display Name Description Related Name Default API Name Required


Value
Tablet Server For advanced use only. A gflagfile_role_safety_valve false
Advanced string to be inserted into
Configuration gflagfile for this role only.
Snippet (Safety
Valve) for gflagfile
Tablet Server For advanced use only. A kudu-monitoring.properties_role_safety_valve false
Advanced string to be inserted into
Configuration kudu-monitoring.properties
Snippet (Safety for this role only.
Valve) for
kudu-monitoring.properties
Tablet Server For advanced use only, KUDU_TSERVER_role_env_safety_valve false
Environment key-value pairs (one on each
Advanced line) to be inserted into a
Configuration role's environment. Applies
Snippet (Safety to configurations of this role
Valve) except client configuration.
Automatically When set, this role's process false process_auto_restart true
Restart Process is automatically (and
transparently) restarted in
the event of an unexpected
failure.

82 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Logs

Display Name Description Related Name Default API Name Required


Value
Tablet Server Log messages logged at this logbuflevel 0 glog_logbuflevel false
Maximum Log Level level or lower are buffered
to Buffer in memory.
Tablet Server Approximate maximum log max_log_size 1800 MiB glog_maxlogsize false
Maximum Log Size file size in megabytes before
rolling to a new log file.
Tablet Server Messages logged via LOG() minloglevel 0 glog_minloglevel false
Minimum Log Level at a lower level than this are
not logged anywhere.
Tablet Server Messages logged via VLOG() v 0 glog_verbose false
Minimum Log at a lower verbosity than
Verbosity this are not logged
anywhere.
Tablet Server Log The log directory for log files log_dir /var/log/kudu log_dir false
Directory of the role Tablet Server.

Monitoring

Display Name Description Related Name Default API Name Required


Value
Enable Health Alerts When set, Cloudera true enable_alerts false
for this Role Manager will send alerts
when the health of this role
reaches the threshold
specified by the EventServer
setting
eventserver_health_events_alert_threshold
Enable Configuration When set, Cloudera false enable_config_alerts false
Change Alerts Manager will send alerts
when this entity's
configuration changes.
File Descriptor The health test thresholds Warning: kudu_tserver_fd_thresholds false
Monitoring of the number of file 50.0 %,
Thresholds descriptors used. Specified Critical: 70.0
as a percentage of file %
descriptor limit.
Tablet Server Host When computing the overall true kudu_tserver_host_health_enabled false
Health Test Tablet Server health,
consider the host's health.
Tablet Server Enables the health test that true kudu_tserver_scm_health_enabled false
Process Health Test the Tablet Server's process
state is consistent with the
role configuration
Process Swap The health test thresholds Warning: process_swap_memory_thresholds false
Memory Thresholds on the swap memory usage Any, Critical:
of the process. Never

Apache Kudu (incubating) User Guide | 83


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Role Triggers The configured triggers for [] role_triggers true
this role. This is a JSON
formatted list of triggers.
These triggers are evaluated
as part as the health system.
Every trigger expression is
parsed, and if the trigger
condition is met, the list of
actions provided in the
trigger expression is
executed.Each trigger has
the following fields:
triggerName
(mandatory) - The
name of the trigger.
This value must be
unique for the specific
role.
triggerExpression
(mandatory) - A
tsquery expression
representing the
trigger.
streamThreshold
(optional) - The
maximum number of
streams that can satisfy
a condition of a trigger
before the condition
fires. By default set to
0, and any stream
returned causes the
condition to fire.
enabled (optional) -
By default set to 'true'.
If set to 'false', the
trigger is not evaluated.
expressionEditorConfig
(optional) - Metadata
for the trigger editor. If
present, the trigger
should only be edited
from the Edit Trigger
page; editing the
trigger here can lead to
inconsistencies.
For example, the following
JSON formatted trigger
configured for a DataNode
fires if the DataNode has
more than 1500 file

84 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
descriptors
opened:[{"triggerName":
"sample-trigger",
"triggerExpression":
"IF (SELECT fd_open
WHERE
roleName=$ROLENAME
and last(fd_open) >
1500) DO health:bad",
"streamThreshold": 0,
"enabled": "true"}]See
the trigger rules
documentation for more
details on how to write
triggers using tsquery.The
JSON format is evolving and
may change and, as a result,
backward compatibility is
not guaranteed between
releases.
Unexpected Exits The health test thresholds Warning: unexpected_exits_thresholds false
Thresholds for unexpected exits Never,
encountered within a recent Critical: Any
period specified by the
unexpected_exits_window
configuration for the role.
Unexpected Exits The period to review when 5 minute(s) unexpected_exits_window false
Monitoring Period computing unexpected exits.

Other

Display Name Description Related Name Default API Name Required


Value
Kudu Tablet Server Maximum amount of block_cache_capacity_mb 512 MiB block_cache_capacity_mb true
Block Cache Capacity memory allocated to the
Kudu Tablet Server's block
cache.
Kudu Tablet Server Directories where Kudu fs_data_dirs fs_data_dirs true
Data Directories tablet servers will store data
blocks.
Kudu Tablet Server Directory where Kudu tablet fs_wal_dir fs_wal_dir true
WAL Directory servers will store
write-ahead logs. It can be
the same as one of the data
directories, but not a
sub-directory of a data
directory. Master and tablet
servers must use different
directories when co-located
on the same machine.

Apache Kudu (incubating) User Guide | 85


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Kudu Tablet Server If true, the Tablet Server will log_force_fsync_all false log_force_fsync_all true
WAL Fsyncs All use the fsync system call to
Entries ensure that all writes are
durably written to to the
write-ahead log (WAL)
before responding. If false,
edits will be written to the
Linux buffer cache on a
majority of replicas before
responding.
Kudu Tablet Server The number of threads maintenance_manager_num_threads 1 maintenance_manager_num_threads true
Maintenance devoted to background
Threads maintenance operations
such as flushes and
compactions. If the tablet
server appears to be falling
behind on write operations
(inserts, updates, and
deletes) but CPU and disk
resources are not saturated,
increasing this thread count
will devote more resources
to these background
operations.
Kudu Tablet Server Maximum amount of memory_limit_hard_bytes 4 GiB memory_limit_hard_bytes true
Hard Memory Limit memory that the Kudu
Tablet Server will use before
it starts rejecting all
incoming writes.
Kudu Tablet Server The interface of the Kudu webserver_interface webserver_interface false
Web UI Interface Tablet Server Web UI. If
blank, binds to 0.0.0.0.

Performance

Display Name Description Related Name Default API Name Required


Value
Maximum Process If configured, overrides the rlimit_fds false
File Descriptors process soft and hard rlimits
(also called ulimits) for file
descriptors to the
configured value.

Ports and Addresses

Display Name Description Related Name Default API Name Required


Value
Kudu Tablet Server The port of the Kudu Tablet webserver_port 8050 webserver_port true
Web UI Port Server Web UI.

86 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Resource Management

Display Name Description Related Name Default API Name Required


Value
Cgroup CPU Shares Number of CPU shares to cpu.shares 1024 rm_cpu_shares true
assign to this role. The
greater the number of
shares, the larger the share
of the host's CPUs that will
be given to this role when
the host experiences CPU
contention. Must be
between 2 and 262144.
Defaults to 1024 for
processes not managed by
Cloudera Manager.
Cgroup I/O Weight Weight for the read I/O blkio.weight 500 rm_io_weight true
requests issued by this role.
The greater the weight, the
higher the priority of the
requests when the host
experiences I/O contention.
Must be between 100 and
1000. Defaults to 1000 for
processes not managed by
Cloudera Manager.
Cgroup Memory Hard memory limit to assign memory.limit_in_bytes -1 MiB rm_memory_hard_limit true
Hard Limit to this role, enforced by the
Linux kernel. When the limit
is reached, the kernel will
reclaim pages charged to the
process. If reclaiming fails,
the kernel may kill the
process. Both anonymous as
well as page cache pages
contribute to the limit. Use
a value of -1 B to specify no
limit. By default processes
not managed by Cloudera
Manager will have no limit.
Cgroup Memory Soft Soft memory limit to assign memory.soft_limit_in_bytes -1 MiB rm_memory_soft_limit true
Limit to this role, enforced by the
Linux kernel. When the limit
is reached, the kernel will
reclaim pages charged to the
process if and only if the
host is facing memory
pressure. If reclaiming fails,
the kernel may kill the
process. Both anonymous as
well as page cache pages
contribute to the limit. Use
a value of -1 B to specify no
limit. By default processes

Apache Kudu (incubating) User Guide | 87


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
not managed by Cloudera
Manager will have no limit.

Suppressions

Display Name Description Related Name Default API Name Required


Value
Suppress Parameter Whether to suppress false role_config_suppression_block_cache_capacity_mb true
Validation: Kudu configuration warnings
Tablet Server Block produced by the built-in
Cache Capacity parameter validation for the
Kudu Tablet Server Block
Cache Capacity parameter.
Suppress Whether to suppress false role_config_suppression_cdh_version_validator true
Configuration configuration warnings
Validator: CDH produced by the CDH
Version Validator Version Validator
configuration validator.
Suppress Parameter Whether to suppress false role_config_suppression_fs_data_dirs true
Validation: Kudu configuration warnings
Tablet Server Data produced by the built-in
Directories parameter validation for the
Kudu Tablet Server Data
Directories parameter.
Suppress Parameter Whether to suppress false role_config_suppression_fs_wal_dir true
Validation: Kudu configuration warnings
Tablet Server WAL produced by the built-in
Directory parameter validation for the
Kudu Tablet Server WAL
Directory parameter.
Suppress Parameter Whether to suppress false role_config_suppression_gflagfile_role_safety_valve true
Validation: Tablet configuration warnings
Server Advanced produced by the built-in
Configuration parameter validation for the
Snippet (Safety Tablet Server Advanced
Valve) for gflagfile Configuration Snippet
(Safety Valve) for gflagfile
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_kudu-monitoring.properties_role_safety_valve true
Validation: Tablet configuration warnings
Server Advanced produced by the built-in
Configuration parameter validation for the
Snippet (Safety Tablet Server Advanced
Valve) for Configuration Snippet
kudu-monitoring.properties (Safety Valve) for
kudu-monitoring.properties
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_kudu_tserver_role_env_safety_valve true
Validation: Tablet configuration warnings

88 | Apache Kudu (incubating) User Guide


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Server Environment produced by the built-in
Advanced parameter validation for the
Configuration Tablet Server Environment
Snippet (Safety Advanced Configuration
Valve) Snippet (Safety Valve)
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_log_dir true
Validation: Tablet configuration warnings
Server Log Directory produced by the built-in
parameter validation for the
Tablet Server Log Directory
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_maintenance_manager_num_threads true
Validation: Kudu configuration warnings
Tablet Server produced by the built-in
Maintenance parameter validation for the
Threads Kudu Tablet Server
Maintenance Threads
parameter.
Suppress Parameter Whether to suppress false role_config_suppression_role_triggers true
Validation: Role configuration warnings
Triggers produced by the built-in
parameter validation for the
Role Triggers parameter.
Suppress Parameter Whether to suppress false role_config_suppression_webserver_interface true
Validation: Kudu configuration warnings
Tablet Server Web UI produced by the built-in
Interface parameter validation for the
Kudu Tablet Server Web UI
Interface parameter.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_tserver_file_descriptor true
Test: File Descriptors results of the File
Descriptors heath test. The
results of suppressed health
tests are ignored when
computing the overall health
of the associated host, role
or service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_tserver_host_health true
Test: Host Health results of the Host Health
heath test. The results of
suppressed health tests are
ignored when computing the
overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.

Apache Kudu (incubating) User Guide | 89


Cloudera Manager Metrics and Properties for Kudu

Display Name Description Related Name Default API Name Required


Value
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_tserver_scm_health true
Test: Process Status results of the Process Status
heath test. The results of
suppressed health tests are
ignored when computing the
overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_tserver_swap_memory_usage true
Test: Swap Memory results of the Swap Memory
Usage Usage heath test. The results
of suppressed health tests
are ignored when computing
the overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.
Suppress Health Whether to suppress the false role_health_suppression_kudu_kudu_tserver_unexpected_exits true
Test: Unexpected results of the Unexpected
Exits Exits heath test. The results
of suppressed health tests
are ignored when computing
the overall health of the
associated host, role or
service, so suppressed
health tests will not
generate alerts.

90 | Apache Kudu (incubating) User Guide


More Resources for Apache Kudu

More Resources for Apache Kudu


The following is a list of resources that may help you to understand some of the architectural features of Apache
Kuduand columnar data storage. The links further down tend toward the academic and are not required reading in
order to understand how to install, use, and administer Kudu.
Kudu Project
Read the official Kudu documentation and learn how you can get involved.
Kudu Documentation
Read the official Kudu documentation, which includes more in-depth information about schema design, Kudu's
architecture, and additional installation and configuration choices.
Kudu Github Repository
Examine the Kudu source code and contribute to the project.
Kudu-Examples Github Repository
View and run several Kudu code examples, as well as the Kudu Quickstart VM.
Kudu White Paper
Read draft of the white paper discussing Kudu's architecture, written by the Kudu development team.
In Search Of An Understandable Consensus Algorithm, Diego Ongaro and John Ousterhout, Stanford University.
2014.
The original whitepaper describing the Raft consensus algorithm.
Column-Stores vs. Row-Stores: How Different Are They Really? Abadi, Madden, Hachem. 2008.
A discussion of the characteristics of column-based and row-based datastores and their characteristics under
different workloads and schemas.

Apache Kudu (incubating) User Guide | 91

S-ar putea să vă placă și