Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Data Processing
  • Getting started
    • All guides
      • Managing subclusters
      • Updating subclusters
    • Creating and using Python virtual environments
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • FAQ

In this article:

  • Getting a list of subclusters in a cluster
  • Creating a subcluster
  • Deleting a subcluster
  1. Step-by-step guides
  2. Yandex Data Processing subclusters
  3. Managing subclusters

Managing subclusters Yandex Data Processing

Written by
Yandex Cloud
Updated at January 29, 2026
  • Getting a list of subclusters in a cluster
  • Creating a subcluster
  • Deleting a subcluster

In addition to updating the settings of a particular subcluster, you can create new and delete existing subclusters.

Warning

Each cluster may only have one subcluster with a master host, which is why you cannot create or delete subclusters with this role. You cannot delete data storage subclusters either.

Getting a list of subclusters in a clusterGetting a list of subclusters in a cluster

Management console
CLI
  1. Open the folder dashboard.
  2. Go to Yandex Data Processing.
  3. Click the name of your cluster and select the Subclusters tab.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To request a list of Yandex Data Processing subclusters in a cluster, run the following command:

yc dataproc subcluster list --cluster-name=<cluster_name>

You can get the cluster name with the list of clusters in the folder.

Creating a subclusterCreating a subcluster

The number of hosts in Yandex Data Processing clusters is limited by quotas regarding the number of vCPUs and the amount of RAM that VMs in your cloud can use. To view the available resources, navigate to the Quotas section and find Compute Cloud.

Management console
CLI
Terraform
  1. In the management console, select the folder you need.
  2. Go to Yandex Data Processing and select the cluster.
  3. Go to Subclusters.
  4. Click Create subcluster.
  5. Specify the subcluster settings:
    1. Hosts: Select the number of hosts.

    2. Roles: Select the subcluster roles depending on the services to deploy on the hosts:

      • COMPUTENODE: Role for processing data. In subclusters with this role, you can deploy YARN NodeManager and Spark libraries.
      • DATANODE: Role for storing data. In subclusters with this role, you can deploy YARN NodeManager, Spark libraries, HBase RegionServer, and HDFS Datanode.
    3. Under Host class, select a platform and computing resources available to the host.

    4. Under Storage size, specify the storage type and size.

    5. Under Network settings:

      • Select Network ID format.

      • Specify Subnet (subnet of the network hosting the cluster).

      • Optionally, enable Public access for online access to subcluster hosts.

        You will not be able to edit this setting after creating the subcluster.

        Tip

        You can delete data processing subclusters and recreate them with the required configuration.

    6. Optionally, enable Autoscaling.

  6. Click Add subcluster.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To create a subcluster:

  1. View the description of the CLI command for creating a subcluster:

    yc dataproc subcluster create --help
    
  2. Specify the subcluster settings in the create command properties in this command (the example does not show all that are available):

    yc dataproc subcluster create <subcluster_name> \
      --cluster-name=<cluster_name> \
      --role=<subcluster_role> \
      --resource-preset=<host_class> \
      --disk-type=<storage_type> \
      --disk-size=<storage_size_in_GB> \
      --subnet-name=<subnet_name> \
      --hosts-count=<number_of_hosts>
    

    Where:

    • --cluster-name: Cluster name. You can get the cluster name with the list of clusters in the folder.
    • --role: subcluster role, which can be either datanode or computenode.
    • --resource-preset: Host class.
    • --disk-type: Storage type, which can be network-ssd, network-hdd, or network-ssd-nonreplicated.
    • --disk-size: Storage size in GB.
    • --subnet-name: Subnet name.
    • --hosts-count: Subcluster host count. The minimum value is 1, and the maximum value is 32.
  1. Open the current Terraform configuration file describing your infrastructure.

    To learn how to create this file, see Creating a cluster.

  2. In the Yandex Data Processing cluster description, add a subcluster_spec section containing the settings for the new subcluster:

    resource "yandex_dataproc_cluster" "data_cluster" {
      ...
      cluster_config {
        ...
        subcluster_spec {
          name = "<subcluster_name>"
          role = "<subcluster_role>"
          resources {
            resource_preset_id = "<host_class>"
            disk_type_id       = "<storage_type>"
            disk_size          = <storage_size_in_GB>
          }
          subnet_id   = "<subnet_ID>"
          hosts_count = <number_of_hosts_in_subcluster>
          ...
        }
      }
    }
    

    Where role is the subcluster role: COMPUTENODE or DATANODE.

  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

To learn more about resources you can create with Terraform, see this provider guide.

Deleting a subclusterDeleting a subcluster

Warning

You cannot delete data storage subclusters.

Management console
CLI
Terraform

To delete a subcluster:

  1. In the management console, select the folder you need.
  2. Go to Yandex Data Processing and select the cluster.
  3. Go to Subclusters.
  4. Click for the subcluster you need and select Delete.
  5. Optionally, specify the decommissioning timeout.
  6. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To delete a subcluster in a Yandex Data Processing cluster, run this command:

yc dataproc subcluster delete <subcluster_name_or_ID> \
  --cluster-name=<cluster_name>

You can request the subcluster name or ID with the list of cluster subclusters, and the cluster name, with the list of folder clusters.

  1. Open the current Terraform configuration file describing your infrastructure.

    To learn how to create this file, see Creating a cluster.

  2. Delete the subcluster_spec section of the relevant subcluster from the Yandex Data Processing cluster description.

  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Type yes and press Enter.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

To learn more about resources you can create with Terraform, see this provider guide.

Was the article helpful?

Previous
Deleting a cluster
Next
Updating subclusters
© 2026 Direct Cursus Technology L.L.C.