Creating a service instance
-
Go to the VK Cloud management console.
-
Select the project where you need to create the service instance.
-
Go to the Data Platform → Service Instances section.
-
Click the Create Instance button.
-
At the Configuration step:
-
Select the service type:
Spark. -
Select the desired service version.
-
Click the Next Step button.
-
-
At the Parameters step:
-
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 clusterfrom 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 networkfrom the list. When creating a new subnet, specify the SDN and the subnet address. - Availability Zone: select the cluster availability zone from the list.
- Network: select the subnet where the cluster will be available from the list, or create a new one by selecting
-
-
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.
-
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.
-
Specify the Sparkjobs container parameters: the number of CPUs, the amount of RAM, and the number of Sparkjobs containers.
These containers run Spark jobs.
-
Click the Next Step button.
-
-
At the Maintenance step:
-
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.
-
Click the Next Step button.
-
-
At the Settings step:
-
If necessary, change the Spark version that will be used when running your tasks:
- Click the Edit button.
- In the Value column, select the desired version from the list.
-
Click the Next Step button.
-
-
At the Connections step, add a
PostgreSQLconnection and one of the following connections:S3 VK CloudorExternal S3. To add a connection to a data source :-
Click the Add connection button.
-
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.
-
Configure the connection parameters for the source:
External S3S3 VK CloudPostgreSQLIceberg Metastore with VK Cloud S3Iceberg Metastore with external S3- 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.
- External S3 connection name: set the connection name. The name can contain only uppercase and lowercase Latin letters, digits, and
-
-
Click the Create button.