Table of Contents


From Cloudera Manager version 6.0 i.e. API version 30 onwards, this Java API client has been deprecated.

Use new Swagger based Java API client for Cloudera Manager version 6.0 i.e. API version 30 onwards.

Setting Up

Merge the following to your Maven project’s pom.xml:

      <name>Cloudera Repository</name>
      <version>7.2.4</version>  <!-- Or the CM version you have -->

You can also directly download the jar (and sources) from the Cloudera repository.


Here is the last javadoc, for API version 19 (CM 5.14.0)

Basic Usage

The fundamental client handle is a RootResourceV43. (Replace the version number with the version that you are working with.) With the root resource, you can traverse the REST namespace.

RootResourceV43 apiRoot = new ClouderaManagerClientBuilder()
    .withUsernamePassword("admin", "admin")

// Get a list of defined clusters
ApiClusterList clusters = apiRoot.getClustersResource()

To see a full example of cluster deployment using the Java client, see whirr-cm. Specifically, jump straight to CmServerImpl#configure to see the core of the action.