Create Dataproc Serverless for Spark interactive sessions and session templates

This page shows you how to create Dataproc Serverless interactive sessions and session templates. A session template can be used to create multiple interactive sessions based on the session template configuration.

Create a Dataproc Serverless session

You can use the Google Cloud console, the Google Cloud CLI, or the Dataproc API to create a Dataproc Serverless interactive session.

Console

To create a Dataproc Serverless session using the Google Cloud console, complete the following steps:

  1. In the Google Cloud console, go to the Interactive Sessions page.

    Go to Interactive Sessions

    1. Click Create.
  2. In the Add an interactive session (Preview) page, input or confirm session configuration settings. Note the following:

  3. Click Submit to create the session.

gcloud

You can use the gcloud beta dataproc sessions create command SESSION_NAME to create a Dataproc Serverless interactive session.

Command flag notes:

REST

You can use the Dataproc sessions.create API to create a Dataproc Serverless interactive session.

Notes:

Create a Dataproc Serverless session template

A Dataproc Serverless session template defines the configuration settings for creating one or more Dataproc Serverless interactive sessions.

You can use the Google Cloud console, the gcloud CLI, or the Dataproc API to create a Dataproc Serverless session template.

Console

To create a Dataproc Serverless session template using the Google Cloud console, complete the following steps:

  1. In the Google Cloud console, go to the Interactive Session Templates page.

    Go to Interactive Session Templates

    1. Click Create.
  2. In the Create session template page, input or confirm the template configuration settings. Note the following:

  3. Click Submit to create the session template.

gcloud

You can't directly create a Dataproc Serverless session template using the gcloud CLI, but you can use the gcloud beta dataproc session-templates import command to import an existing session template. You can edit the imported template, and then export it using the gcloud beta dataproc session-templates export command.

REST

You can use the Dataproc sessionTemplates.create API to create a Dataproc Serverless session template.

Notes: