Creating virtual clusters

In Cloudera Data Engineering, a virtual cluster is an individual auto-scaling cluster with defined CPU and memory ranges. These virtual clusters are linked to a specific Cloudera Data Engineering Service, which is, in turn, associated with an environment. You can create any number of virtual clusters, which allows you to execute jobs and other artifacts.

To create a virtual cluster, you must have an environment with Cloudera Data Engineering enabled.

  1. In the Cloudera console, click the Data Engineering tile. The Cloudera Data Engineering Home page displays.
  2. In the left navigation menu, click Administration, and then select the Cloudera Data Engineering Service for which you want to create a virtual cluster.
  3. In the Virtual Clusters column, click at the top right to create a new virtual cluster.
    If the environment has no virtual clusters associated with it, the page displays a Create a Virtual Cluster button that launches the same wizard.
  4. Enter a Cluster Name.
    Cluster names must include the following:
    • Begin with a letter
    • Be between 3 and 30 characters (inclusive)
    • Contain only alphanumeric characters and hyphens
  5. Select the Cloudera Data Engineering Service to create the virtual cluster in.
    The environment you selected before launching the wizard is selected by default, but you can use the wizard to create a virtual cluster in a different Cloudera Data Engineering service.
  6. Select the Spark Version to use in the virtual cluster. You cannot use Spark 2 and Spark 3 in the same virtual cluster, but you can have separate Spark 2 and Spark 3 virtual clusters within the same Cloudera Data Engineering service. While you can have virtual clusters with different Spark 3.x versions, a single virtual cluster can only use one Spark version.

    On the Cloudera Data Engineering UI, you can view the supported Apache Airflow runtime component version and Spark runtime component version on the VC creation and details pages.

    The following screenshot illustrates creating a new Virtual Cluster, where you can select the required runtime component versions from a drop-down menu on the UI.

    For more information, see Compatibility for Cloudera Data Engineering and Cloudera Runtime components.

  7. Select one of the following Cloudera Data Engineering cluster types:
    • Core (Tier 1): Batch-based transformation and engineering options include:
      • Autoscaling Cluster
      • Cloudera Shared Data Experience/Lakehouse
      • Job Lifecycle management
      • Monitoring
      • Workflow Orchestration
    • All Purpose (Tier 2) - Develop using interactive sessions and deploy both batch and streaming workloads. This option includes all options in Tier 1 with the following:
      • Shell Sessions - CLI and Web
      • JDBC/SparkSQL (Coming soon)
      • Integrated Development Environment (IDE) (Coming Soon)
  8. In Rescource Capacity, specify the guaranteed and the maximum number of CPU cores, GPU cores, and Memory in gigabytes to configure elastic quota. The cluster can utilize resources up to the maximum set capacity to run the submitted Spark applications.

    You can get a minimum guaranteed and maximum capacity of resources (CPU and memory) using guaranteed quota and maximum quota. The guaranteed quota dictates the minimum amount of resources available for allocation for a Virtual Cluater at all times. The resources above the guaranteed quota and within the Virtual Cluster’s maximum quota can be used by any Virtual Cluster on demand if the cluster capacity allows for it.

    GPU (Technical Preview): You can set the guaranteed and maximum GPU resource quota for this virtual cluster for Spark 3 jobs to use.

    Elastic quotas allow the Virtual Cluster to acquire unused capacity in the cluster when their guaranteed quota limit gets exhausted. This ensures efficient use of resources in the cluster. At the same time, the maximum quota limits the threshold amount of resources a Virtual Cluster can claim in the cluster at any given time.

    For information about configuring resource pool and capacity, see Managing cluster resources using Quota Management.
  9. Under Privacy Settings , select the Restrict sharing by default check box to enable the privacy settings for artifact sharing in the Virtual Cluster. For more information about Privacy Settings, see Privacy Settings and about artifact sharing, see Artifact access management.
  10. Click Create Virtual Cluster. This process takes 20 minutes approximately. Monitor the progress by checking the logs and refreshing them every five minutes. You can view logs for the virtual cluster by clicking on the vertical ellipsis (three dots) menu, and then clicking View Logs.
The Cloudera Data Engineering virtual cluster is created and all the pods in the dex-app-XXXX virtual cluster are running.

For more information about the virtual cluster, navigate to Cloudera Data Engineering > Administration. Click on the Cloudera Data Engineering Service in which the virtual cluster is created and click the icon for the respective Virtual Cluster.

  • By default, Cloudera Data Engineering automatically sets up the virtual cluster with a self-signed certificate. To replace this with an updated certificate, see Updating the Control Plane certificates in Cloudera Data Engineering virtual clusters.
  • To allow users or groups to access the virtual cluster , the required roles must be assigned. For more information, see User Access Management.
  • (Optional) To configure email alerts for notifications, do the following steps:
    1. In the Cloudera console, click the Data Engineering tile. The Cloudera Data Engineering Home page displays.
    2. Click Administration in the left navigation menu. The Administration page displays.
    3. In the Services column, select the environment containing the virtual cluster for which you want to configure the email alerts.
    4. In the Virtual Clusters column on the right, click the icon for the virtual cluster for which you want to configure the email alerts..
    5. On the Configuration tab, select Enable Email Alerts check box and provide the following email configuration information:
      • Sender Email Address: Enter the email address to which you want to receive the alerts.
      • SMTP Username: The username of the email user who will be logged into the mail server as the sender of the alert emails.
      • SMTP Password: The password of the email user who will be logged into the mail server as the sender of the alert emails.
      • SMTP Host: Your mail server hostname.
      • Email Encryption: Select a secure connection method to be used when communicating with the SMTP server.
      • SMTP Port: Your mail server port number.
    6. Click Test SMTP Configs to test the configurations set for SMTP. This allows you to test the SMTP configuration before creating the cluster.
  • (Optional) After successfully completing all the steps, you can load and run example jobs to verify the proper functioning of the system. For more information, see Cloudera Data Engineering example jobs and sample data.