VK Cloud logo

Creating a service instance

  1. Go to the VK Cloud management console.

  2. Select the project where you need to create the service instance.

  3. Go to the Data Platform → Service Instances section.

  4. Click the Create Instance button.

  5. At the Configuration step:

    1. Select the service type: Spark.

    2. Select the desired service version.

    3. Click the Next Step button.

  6. At the Parameters step:

    1. Set the instance parameters:

      • Name: specify a name for the service instance.

      • Description: add a description if necessary.

      • Assign External IP: enable the option to make the Spark instance accessible via the internet.

      • Kubernetes Cluster: select the desired cluster from the drop-down list or create a new one by selecting Create a new cluster from the list. When creating a new cluster, set the parameters:

        • Network: select the subnet where the cluster will be available from the list, or create a new one by selecting Create a new network from the list. When creating a new subnet, specify the SDN and the subnet address.
        • Availability Zone: select the cluster availability zone from the list.
    2. Specify the Spark Connect service settings: the number of CPUs and the amount of RAM.

      This service allows you to connect remotely to the Spark cluster and interactively work with Spark jobs.

    3. Specify the Spark History Server parameters: the number of CPUs, the amount of RAM, and the disk type and size.

      This server stores the logs of Spark job execution.

    4. Specify the Sparkjobs container parameters: the number of CPUs, the amount of RAM, and the number of Sparkjobs containers.

      These containers run Spark jobs.

    5. Click the Next Step button.

  7. At the Maintenance step:

    1. Select the days of the week and the start time of maintenance, considering the time zone specified in the block.

      The duration of maintenance, including backup, is 4 hours. During this time, the service may be unavailable.

    2. Click the Next Step button.

  8. At the Settings step:

    1. If necessary, change the Spark version that will be used when running your tasks:

      1. Click the Edit button.
      2. In the Value column, select the desired version from the list.
    2. Click the Next Step button.

  9. At the Connections step, add a PostgreSQL connection and one of the following connections: S3 VK Cloud or External S3. To add a connection to a data source :

    1. Click the Add connection button.

    2. Select the data source:

      • External S3 — connection to an external S3 object storage.
      • S3 VK Cloud — connection to VK Object Storage storage in the same project.
      • PostgreSQL — connection to a PostgreSQL database.
      • Iceberg Metastore with VK Cloud S3 — connection to a Cloud Iceberg Metastore instance in the same VK Cloud project.
      • Iceberg Metastore with external S3 — connection to an external Cloud Iceberg Metastore catalog.
    3. Configure the connection parameters for the source:

      • External S3 connection name: set the connection name. The name can contain only uppercase and lowercase Latin letters, digits, and _ characters.
      • Access Key: unique key ID for storage access.
      • Secret Key: secret key for storage access.
      • S3 URL: URL address of your S3 storage.
      • S3 bucket path: path to a previously created directory in the bucket that will be accessible to the Spark instance.
      • Bucket: name of the bucket in S3 storage that the Spark instance will connect to.
      • Region: region where your S3 storage is located.
  10. Click the Create button.

Was this article helpful?