Google Cloud Dataproc V1 Client - Class Role (2.1.0)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class Role.

Role specifies the tasks that will run on the node pool. Roles can be specific to workloads. Exactly one GkeNodePoolTarget within the virtual cluster must have the DEFAULT role, which is used to run all workloads that are not associated with a node pool.

Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget.Role

Namespace

Google \ Cloud \ Dataproc \ V1 \ GkeNodePoolTarget

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

ROLE_UNSPECIFIED

Value: 0

Role is unspecified.

Generated from protobuf enum ROLE_UNSPECIFIED = 0;

PBDEFAULT

Value: 1

At least one node pool must have the DEFAULT role.

Work assigned to a role that is not associated with a node pool is assigned to the node pool with the DEFAULT role. For example, work assigned to the CONTROLLER role will be assigned to the node pool with the DEFAULT role if no node pool has the CONTROLLER role.

Generated from protobuf enum DEFAULT = 1;

CONTROLLER

Value: 2

Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.

Generated from protobuf enum CONTROLLER = 2;

SPARK_DRIVER

Value: 3

Run work associated with a Spark driver of a job.

Generated from protobuf enum SPARK_DRIVER = 3;

SPARK_EXECUTOR

Value: 4

Run work associated with a Spark executor of a job.

Generated from protobuf enum SPARK_EXECUTOR = 4;