X

Cloudera Tutorials

Optimize your time with detailed tutorials that clearly explain the best way to deploy, use, and manage Cloudera products. Login or register below to access all Cloudera tutorials.

By registering or submitting your data, you acknowledge, understand, and agree to Cloudera's Terms and Conditions, including our Privacy Statement.
By checking this box, you consent to receive marketing and promotional communications about Cloudera’s products and services and/or related offerings from us, or sent on our behalf, in accordance with our Privacy Statement. You may withdraw your consent by using the unsubscribe or opt-out link in our communications.

Cloudera acquires Octopai's platform to enhance metadata management capabilities

Read the press release

Introduction

 

This tutorial walks you through the process of creating, resizing, and terminating Data Hubs on the Cloudera Data Platform (CDP) Public Cloud.

In order to save the end user time and cost, Data Hubs can be provisioned, resized, or disposed of quickly in response to rapidly changing workloads.

 

Prerequisites

 

  • Must have administrator access to an already created environment on Cloudera Data Platform (CDP) Public Cloud.

 

Outline

 

 

The videos below provide a brief overview of what this tutorial covers:

 

 

Concepts

 

The following concepts are key to understanding Data Hub:

 

Workload clusters

All Data Hub clusters are workload clusters. These clusters are created for running specific workloads such as data engineering or data analytics.

Cluster definitions

A cluster definition is a reusable cluster template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings.

Cluster templates

Data Hub uses cluster templates for defining cluster topology: defining host groups and components installed on each host group.

Recipes

A recipe is a script that runs on all nodes of a selected host group at a specific time. You can use recipes for tasks such as installing additional software or performing advanced cluster configuration. For example, you can use a recipe to put a JAR file on the Hadoop classpath.

Custom properties

Custom properties are configuration properties that can be set on a Cloudera Runtime cluster, but Data Hub allows you to conveniently set these during cluster creation.

 

 

Create Data Hub

 

Select Management Console from Cloudera Data Platform (CDP) home page.

 

cdp-home-management-console

 

In the Environments section, search for the environment you want to create a Data Hub and click on its name:

 

environment-list

 

  1. Select Data Hubs to see all the data hub clusters created in the environment
  2. Since we are creating a new data hub, click on Create Data Hub

 

data-hub-list

 

You need to choose from two(2) options for provisioning this Data Hub:

  • Cluster Definition

               Choose one of the prescriptive cluster definitions predefined by CDP
  • Custom

            Choose a previously created, custom cluster definition

In this tutorial, we will choose Cluster Definition, which provides a large selection of predefined cluster definitions:

 

datahub-provision-cluster-definition

 

Note: Your CDP environment may have different cluster definitions.

 

Let's complete the data hub provisioning form:

  1. Selected Environment:

    usermarketing

  2. Choose the radio button: Cluster Definition
  3. Cluster Definition:

    7.2.0 - Flow Management Light Duty for AWS

  4. Cluster Name:

    um-nifi-demo

 

At this point, you may do step 5. Provision Cluster to complete the provisioning.
We suggest to review Advanced Options prior to provisioning.

 

datahub-provisioning-form

 

Advanced Options

 

There are 5 tabs to interact with in Advanced Options:

  1. Image Catalog: Data Hub uses the image catalog provided by default, which include Cloudera Manager and Cloudera Runtime.

 

datahub-advanced-image-catalog

 

  1. Network And Availability: Allows you to customize the networking settings of your cluster. If your environment includes more than one subnet, you can select the subnet in which your cluster will be provisioned. 

 

datahub-advanced-network

 

  1. Hardware And Storage: Allows you to customize the cloud provider specific clusters hardware and storage.

 

datahub-advanced-hardware-storage

 

  1. Cloud Storage: Allows you to optionally specify the base storage location. By default, it inherits storage location settings from when the environment was created.

 

datahub-advanced-cloud-storage

 

  1. Cluster Extensions

Recipes are scripts that run on all nodes of a selected host group at a specific time. Available recipe execution times are:

  • Before Cloudera Manager server starts
  • Before cluster termination
  • After Cloudera Manager server starts
  • After cluster installation

All registered recipes are located in:

Environments > Shared Resources > Recipes.

 

Custom Properties: Allows you to configure properties that can be set on a Cloudera Runtime cluster, but Data Hub allows you to conveniently set it during cluster creation.

 

datahub-advanced-cluster-extensions

 

Click on - after a few minutes, the newly created data hub will be Running and available for use.

 

Access Services on Data Hub

 

Now that our Data Hub is created and running, click on the data hub name, um-nifi-demo.

 

environment-list-new-datahub

 

The list of services available depend on the Cluster Definition chosen. As you recall, we chose Cluster Definition: 7.2.0 - Flow Management Light Duty for AWS, which provides three(3) services:

  1. Cloudera Manager
  2. NiFi
  3. NiFi Registry

 

datahub-nifi-demo-services

 

There are nine (9) tabs to explore:

  1. Event History:

Shows events logged for the cluster, with the most recent event at the top. The Download option allows you to download the event history.

  1. Hardware:

Displays information about your cluster instances: instance names, instance IDs, instance types, their status, fully qualified domain names (FQDNs), and private and public IPs.

  1. Cloud Storage:

Displays cloud storage locations for certain properties.

  1. Tags:

Displays key and value pair(s) of the user-defined tags.

  1. Endpoints:

Displays the URL for all cluster API endpoints.

  1. Recipes:

Displays recipe-related information. For each recipe, you can see the host group on which a recipe was executed, recipe name, and recipe type.

  1. Repository Details:

Displays Cloudera Manager and Cloudera Runtime repository information, as you provided when creating a cluster.

  1. Image Details:

Displays information about the image catalog used and its location.

  1. Network:

Displays information about the names of the network and subnet in which the cluster is running and the links to related cloud provider console.

 

datahub-nifi-demo-explore-tabs

 

Resize Data Hub Cluster

 

Resizing the Data Hub cluster is very easy - we can add or remove the number of nodes by clicking ACTIONS > RESIZE.

 

datahub-nifi-demo-resize

 

Terminate Data Hub Cluster

 

When you decide that this Data Hub is no longer needed, you may either STOP or DELETE the Data Hub cluster:

  • To STOP the Data Hub cluster, click on STOP

    When you are ready to restart, click on START

  • To terminate/delete/destroy the Data Hub cluster, click ACTIONS > DELETE

    Once initiated, there’s no way to undo

 

datahub-nifi-demo-terminate

 

Summary

 

Congratulations on completing the tutorial.

As you've now experienced, it is simple to create, resize, stop or delete a Data Hub on Cloudera Data Platform (CDP) Public Cloud. The real fun begins when using the services created by the cluster definition you chose.

 

 

Further Reading

 

Videos

Other

 

Your form submission has failed.

This may have been caused by one of the following:

  • Your request timed out
  • A plugin/browser extension blocked the submission. If you have an ad blocking plugin please disable it and close this message to reload the page.