Creating a Cluster

Before You Deploy Cloudera Manager and CDH

This topic describes how to set up Cloudera Manager and a CDH cluster in Microsoft Azure using the Cloudera Director web UI. The following resources must be created and prerequisites must be met before beginning the deployment:
  • An AD application and a service principal for the AD application. The AD application must have the contributor or similar role so that it has permission to create and delete resources in the subscription.
  • A virtual network and network security group that is readily available for the cluster to use.
  • The virtual network configured to use a customer-provided DNS service that supports reverse lookup. If using the provided DNS service setup guide, the VM that provides the DNS service must be created and running.
  • Resource group to house cluster VMs.
  • An Availability Set created in corresponding resource groups to house cluster VMs.
  • Cloudera Director server VM.
  • Cloudera Director server installed and running.
  • Cloudera Director server access to the Azure virtual network (VNet).
  • Database server that is readily available and reachable from the VNet to be used by cluster nodes.

Details of setting up individual items above is covered in earlier sections.

Deploying Cloudera Manager and CDH on Microsoft Azure

To deploy Cloudera Manager and CDH on an Azure VM instance, begin by creating an environment. The environment defines common settings, like region and key pair, that Cloudera Director uses with Azure. While creating an environment, you are also prompted to deploy its first cluster.

To create an environment:
  1. Open a web browser and go to the private IP address of the instance you created running Cloudera Director server. Include port 7189 in the address, for example: http://192.0.2.0:7189.
  2. In the Cloudera Director login screen, enter admin in both the Username and the Password fields.
  3. In the Cloudera Director Welcome screen, click Let's get started. This opens a wizard for adding an environment, Cloudera Manager, and a CDH cluster.
  4. In the Add Environment screen:
    1. Enter a name in the Environment Name field.
    2. In the Cloud provider field, select Azure Cloud Platform.
    3. In the Azure Cloud Environment field, select which Azure Cloud to use.
    4. In the Subscription ID field, enter the Azure subscription ID.
    5. In the AAD URL field, enter the Azure Active Directory (AAD) URL provided by Microsoft. You do not need to change the default value unless you are in an Azure region that uses a different URL.
    6. In the Tenant ID field, enter the ID of your ADD tenant. See Obtain Obtaining Credentials for Cloudera Director for details on obtaining the AAD tenant ID.
    7. In the Client ID field, enter the client ID of the Azure service principal you created earlier. See Obtaining Credentials for Cloudera Director for details on obtaining the client ID.
    8. In the Client Secret field, enter the client secret of the Azure service principal you created earlier. See Obtaining Credentials for Cloudera Director for details on obtaining the client secret.
    9. In the Region field, select which location to use.
    10. In the SSH Credentials section:
      1. Enter a username in the Username field. Azure creates the user specified here.
      2. Create an SSH key with the following command:
        ssh-keygen -f ~/.ssh/my_azure_vm_keyname -t rsa
      3. Copy the SSH private key into the Private key field. Cloudera Director uses the SSH key pairs to create and access VMs in Azure.


  5. Click Continue to add Cloudera Manager.
  6. In the Add Cloudera Manager screen:
    1. Enter a name for this deployment of Cloudera Manager in the Cloudera Manager name field.
    2. In the Instance Template field, select Create New Instance Template.
    3. The Instance Template model screen displays.
  7. In the Instance Template model screen:
    1. In the Instance Template name field, enter a name for the template.
    2. In the VirtualMachine Size field, select one of the available sizes.
    3. In the Image field, select one of the available images or use this format to define any Azure Marketplace VM image inline (replace the italicized values with the actual names for the publisher, offer, sku, and version):
      /publisher/publisher/offer/offer/sku/sku/version/version
    4. In the Tags field, add one or more tags to associate with the instance.
    5. In the Compute Resource Group field, enter the name of the resource group you created earlier to house the VM.
    6. In the Virtual Network Resource Group field, enter the name where the virtual network resource resides.
    7. In the Virtual Network field, enter the name of the virtual network.
    8. In the Subnet Name field, enter the name of the subnet you want to use.
    9. In the Host FQDN suffix field, enter the name of the host FQDN suffix you want your cluster host to use. This is the DNS domain of your cluster hosts.
    10. In the Network Security Group Resource Group field, enter the name of the resource group where the network security group resource resides.
    11. In the Network Security Group field, enter the name of the network security group.
    12. Select Yes in the Public IP field if you want to assign a public IP address to the VM. The default value is No.
    13. In the Availability Set field, enter the name of the availability set you created in earlier steps. Note that there are two types of Availability Sets: managed (aligned) and unmanaged (classic). For more information see How to Use Availability Sets in the Microsoft Azure documentation.
    14. In the Use Managed Disks field, select Yes to use Managed Disks, or No to use Storage Accounts. Note the following considerations:
      • Azure Managed Disks are an improvement over Azure Storage Accounts. They simplify storage, provide better reliability for availability sets, and improve scalability. See Azure Managed Disks Overview in the Microsoft Azure documentation for more information.
      • A VM with Managed Disks can only be deployed into a managed Availability Set. For more information see How to Use Availability Sets in the Microsoft Azure documentation.
    15. In the Instance name prefix field under Advanced Options, enter the desired instance name prefix.
    16. In the Storage Account Type field, select PremiumLRS. For instance templates intended for worker nodes, you can select StandardLRS. See the Cloudera Reference Architecture for Microsoft Azure Deployments for details on supported storage account types and configurations.
    17. In the Data Disk Count field in Advanced Options, enter the number of data disks to attach for the VM.
    18. In the Data Disk Size in GiB field, leave the value at 1024 or pick from the dropdown of available sizes.
    19. Leave the SSH username field blank to use the username you set at step 4.k above.
    20. In the Bootstrap script field in Advanced Options, paste or upload the desired custom bootstrap script.



  8. In the Desired License Type field, select one of the following license types:
    • Cloudera Enterprise: Includes the core CDH services (HDFS, Hive, Hue, MapReduce, Oozie, Sqoop, YARN, and ZooKeeper) and, depending on the license edition, one or more additional services (Accumulo, HBase, Impala, Navigator, Solr, or Spark). For more information on Cloudera Enterprise licenses, see Managing Licenses in the Cloudera Manager documentation.
    • Cloudera Enterprise Trial: A 60-day trial license that includes all CDH services.
    • Cloudera Express: No license required.


    To enable usage-based billing, you must have a Cloudera Enterprise license and a billing ID provided by Cloudera. In the Add Cloudera Manager screen:
    1. In the Desired License Type field, select Cloudera Enterprise.
    2. In the License Key field, either select a Cloudera Enterprise license file to upload or select Direct Input and input the license file text directly into the text area.
    3. To enable usage-based billing, in the Billing ID field, enter the billing ID provided by Cloudera.
  9. By default, the version of Cloudera Manager installed depends on the version of Cloudera Director you are using:
    Cloudera Director version Cloudera Manager version installed
    Cloudera Director 2.0 Latest released version of Cloudera Manager 5.5
    Cloudera Director 2.1 Latest released version of Cloudera Manager 5.7
    Cloudera Director 2.2 Latest released version of Cloudera Manager 5.8
    Cloudera Director 2.3 Latest released version of Cloudera Manager 5.10
    Cloudera Director 2.4 Latest released version of Cloudera Manager 5.11
    Cloudera Director 2.5 Latest released version of Cloudera Manager 5.12
    Cloudera Director 2.6 Latest released version of Cloudera Manager 5.13
    To install a version of Cloudera Manager higher or lower than the default version, perform the following steps:
    1. In the Configurations section, check Override default Cloudera Manager repository.
    2. In the Repository URL field, enter the repository URL for the version of Cloudera Manager to install. Repository URLs for versions of Cloudera Manager 5 have the form http://archive.cloudera.com/cm5/ followed by the operating system, operating system major version, processor architecture, cm (for Cloudera Manager), and the Cloudera Manager major, minor, and (if applicable) maintenance release number. For example, for Cloudera Manager 5.5.4, the repository URL is http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.5.4/.
    3. In the Repository Key URL field, enter the URL for the repository key. Repository key URLs have the same form as repository URLs except they end with the name of the key file instead of the Cloudera Manager version. For example, the repository key URL for any version of Cloudera Manager 5 on any supported version of Red Hat 7 is http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera.
  10. In the Add Cloudera Manager screen, click Continue.
  11. At the Confirmation prompt, click OK to begin adding a cluster.
  12. On the Add Cluster screen:
    1. Enter a name for the cluster in the Cluster name field.
    2. Enter the version of CDH to deploy in the Version field, or leave the default value. By default, the version of CDH installed depends on the version of Cloudera Director you are using:
      Cloudera Director version CDH version installed
      Cloudera Director 2.0 Latest released version of CDH 5.5
      Cloudera Director 2.1 Latest released version of CDH 5.7
      Cloudera Director 2.2 Latest released version of CDH 5.9
      Cloudera Director 2.3 Latest released version of CDH 5.10
      Cloudera Director 2.4 Latest released version of CDH 5.11
      Cloudera Director 2.5 Latest released version of CDH 5.12
      Cloudera Director 2.6 Latest released version of CDH 5.13
      To install a version of CDH higher or lower than the default version, perform the following steps:
      1. Enter the desired CDH version in the Version field of the Products section. For example, for CDH 5.4.8, enter 5.4.8.
      2. Scroll down to Configurations (optional) and expand the section.
      3. Click Override default parcel repositories.
      4. Enter the repository parcel URL for the version of CDH you want to install. Parcel URLs for versions of CDH 5 have the form http://archive.cloudera.com/cdh5/parcels/, followed by the major, minor, and (if applicable) maintenance release number. For example, the URL for CDH 5.4.8 is http://archive.cloudera.com/cdh5/parcels/5.4.8.
    3. In the Services section, select the services you want to install.
    4. In the Instance groups area, create a new template for the groups or for each group and the number of instances you want.


  13. Click Continue.
  14. At the confirmation prompt, click OK to deploy the cluster. Cloudera Director displays a status screen.

  15. When the cluster is ready, click Continue.

Terminating Your Azure Deployment

When you are done testing or using Cloudera Director, terminate your instances to stop incurring charges to your Azure account.

  1. In Cloudera Director, terminate each instance in your clusters.
    1. Click an environment name.
    2. In the Actions column, select Terminate Cluster.
    3. Repeat for each environment you configured.
  2. To save anything in Cloudera Director (the configuration file or database, for example), back it up.
  3. In the Azure web UI, terminate the Cloudera Director instance and any other instance Cloudera Director was unable to terminate.
  4. If applicable, terminate any external database you configured Cloudera Director to use.