Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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
      • Information about existing clusters
      • Creating a cluster
      • Creating an autoscaling cluster in another folder's network
        • Connecting to a cluster
        • Configuring security groups
        • Getting an FQDN of a host
        • Connecting to a host over SSH
        • Connecting to a host via OS Login
        • Connecting to a host from graphical IDEs
      • Updating a cluster
      • Migrating a lightweight cluster to a different availability zone
      • Managing cluster access
      • Deleting a cluster
    • Creating and using Python virtual environments
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • FAQ
  1. Step-by-step guides
  2. Yandex Data Processing clusters
  3. Connection
  4. Configuring security groups

Configuring security groups

Written by
Yandex Cloud
Updated at June 29, 2026
View in Markdown

Cluster access depends on the security group configuration. Make sure the rules allow the required traffic.

Alert

When setting up security groups, do not change the rules for control plane traffic. This may cause the cluster to fail.

Rule settings depends on the connection method you select:

SSH
UI Proxy
Connecting with port forwarding
  • To connect to subcluster hosts with public access from cloud networks and the internet, configure cluster security groups to allow inbound traffic from any IP address on port 22. To do this, create the following inbound rule:

    • Port range: 22.
    • Protocol: TCP.
    • Source: Address range.
    • IPv4 CIDR: 0.0.0.0/0.
  • To connect to a cluster from a jump host VM:

    1. Configure the VM security group to allow connections to the VM and traffic between the VM and subcluster hosts. To do this, create the following rules:

      • For inbound traffic:

        • Port range: 22.
        • Protocol: TCP.
        • Source: Address range.
        • IPv4 CIDR: 0.0.0.0/0.
      • For outbound traffic:

        • Port range: 22.
        • Protocol: TCP.
        • Destination name: Address range.
        • IPv4 CIDR: Address range of the subnet where the cluster hosts reside. If subclusters are in different subnets, create this rule for each subnet.
    2. Configure the cluster security groups to allow inbound traffic from the VM security group on port 22. To do this, create the following rule for inbound traffic:

      • Port range: 22.
      • Protocol: TCP.
      • Source: Security group.
      • Security group: VM security group.

To use UI Proxy, add rules to the subcluster host's security group to allow inbound traffic on port 443:

  • Port range: 443.
  • Protocol: TCP.
  • Source: Address range.
  • IPv4 CIDR: 0.0.0.0/0.

If the connection is established via a jump host VM, add rules to the subcluster host's security group that allow connections via this VM:

  • For inbound traffic:

    • Port range: 443.
    • Protocol: TCP.
    • Source: Address range.
    • IPv4 CIDR: 0.0.0.0/0.
  • For outbound traffic:

    • Port range: 443.
    • Protocol: TCP.
    • Destination name: Address range.
    • IPv4 CIDR: Address range of the subnet where the subcluster host resides.

If using port forwarding, add rules to the jump host VM security group that allow inbound and outbound traffic on the ports of the required components:

  • Port range: <component_port>.

    Port numbers for the Yandex Data Processing components are shown in the table:

    Service Port
    HBase Master 16010
    HBase REST 8085
    HDFS Name Node 9870
    Hive Server2 10002
    Livy 8998
    MapReduce Application History 19888
    Oozie 11000
    Spark History 18080
    YARN Application History 8188
    YARN Resource Manager 8088
    Zeppelin 8890
  • Protocol: TCP.

  • Source: Address range.

  • IPv4 CIDR: 0.0.0.0/0.

Note

You can specify more granular rules for your security groups, such as allowing traffic only within specific subnets.

Make sure to properly configure security groups for all subnets where the subclusters will reside.

For more information about security groups, see Security groups.

Was the article helpful?

Previous
Connecting to a cluster
Next
Getting an FQDN of a host
© 2026 Direct Cursus Technology L.L.C.