Reference documentation and code samples for the Cloud Dataproc V1beta2 API class Google::Cloud::Dataproc::V1beta2::ClusterConfig.
The cluster config.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#autoscaling_config
def autoscaling_config() -> ::Google::Cloud::Dataproc::V1beta2::AutoscalingConfig
- (::Google::Cloud::Dataproc::V1beta2::AutoscalingConfig) — Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
#autoscaling_config=
def autoscaling_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::AutoscalingConfig
- value (::Google::Cloud::Dataproc::V1beta2::AutoscalingConfig) — Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
- (::Google::Cloud::Dataproc::V1beta2::AutoscalingConfig) — Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
#config_bucket
def config_bucket() -> ::String
- (::String) — Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket).
#config_bucket=
def config_bucket=(value) -> ::String
- value (::String) — Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket).
- (::String) — Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket).
#encryption_config
def encryption_config() -> ::Google::Cloud::Dataproc::V1beta2::EncryptionConfig
- (::Google::Cloud::Dataproc::V1beta2::EncryptionConfig) — Optional. Encryption settings for the cluster.
#encryption_config=
def encryption_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::EncryptionConfig
- value (::Google::Cloud::Dataproc::V1beta2::EncryptionConfig) — Optional. Encryption settings for the cluster.
- (::Google::Cloud::Dataproc::V1beta2::EncryptionConfig) — Optional. Encryption settings for the cluster.
#endpoint_config
def endpoint_config() -> ::Google::Cloud::Dataproc::V1beta2::EndpointConfig
- (::Google::Cloud::Dataproc::V1beta2::EndpointConfig) — Optional. Port/endpoint configuration for this cluster
#endpoint_config=
def endpoint_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::EndpointConfig
- value (::Google::Cloud::Dataproc::V1beta2::EndpointConfig) — Optional. Port/endpoint configuration for this cluster
- (::Google::Cloud::Dataproc::V1beta2::EndpointConfig) — Optional. Port/endpoint configuration for this cluster
#gce_cluster_config
def gce_cluster_config() -> ::Google::Cloud::Dataproc::V1beta2::GceClusterConfig
- (::Google::Cloud::Dataproc::V1beta2::GceClusterConfig) — Optional. The shared Compute Engine config settings for all instances in a cluster.
#gce_cluster_config=
def gce_cluster_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::GceClusterConfig
- value (::Google::Cloud::Dataproc::V1beta2::GceClusterConfig) — Optional. The shared Compute Engine config settings for all instances in a cluster.
- (::Google::Cloud::Dataproc::V1beta2::GceClusterConfig) — Optional. The shared Compute Engine config settings for all instances in a cluster.
#gke_cluster_config
def gke_cluster_config() -> ::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig
-
(::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig) — Optional. The Kubernetes Engine config for Dataproc clusters deployed to
Kubernetes. Setting this is considered mutually exclusive with Compute
Engine-based options such as
gce_cluster_config
,master_config
,worker_config
,secondary_worker_config
, andautoscaling_config
.
#gke_cluster_config=
def gke_cluster_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig
-
value (::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig) — Optional. The Kubernetes Engine config for Dataproc clusters deployed to
Kubernetes. Setting this is considered mutually exclusive with Compute
Engine-based options such as
gce_cluster_config
,master_config
,worker_config
,secondary_worker_config
, andautoscaling_config
.
-
(::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig) — Optional. The Kubernetes Engine config for Dataproc clusters deployed to
Kubernetes. Setting this is considered mutually exclusive with Compute
Engine-based options such as
gce_cluster_config
,master_config
,worker_config
,secondary_worker_config
, andautoscaling_config
.
#initialization_actions
def initialization_actions() -> ::Array<::Google::Cloud::Dataproc::V1beta2::NodeInitializationAction>
-
(::Array<::Google::Cloud::Dataproc::V1beta2::NodeInitializationAction>) —
Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's
role
metadata to run an executable on a master or worker node, as shown below usingcurl
(you can also usewget
):ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
#initialization_actions=
def initialization_actions=(value) -> ::Array<::Google::Cloud::Dataproc::V1beta2::NodeInitializationAction>
-
value (::Array<::Google::Cloud::Dataproc::V1beta2::NodeInitializationAction>) —
Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's
role
metadata to run an executable on a master or worker node, as shown below usingcurl
(you can also usewget
):ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
-
(::Array<::Google::Cloud::Dataproc::V1beta2::NodeInitializationAction>) —
Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's
role
metadata to run an executable on a master or worker node, as shown below usingcurl
(you can also usewget
):ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
#lifecycle_config
def lifecycle_config() -> ::Google::Cloud::Dataproc::V1beta2::LifecycleConfig
- (::Google::Cloud::Dataproc::V1beta2::LifecycleConfig) — Optional. The config setting for auto delete cluster schedule.
#lifecycle_config=
def lifecycle_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::LifecycleConfig
- value (::Google::Cloud::Dataproc::V1beta2::LifecycleConfig) — Optional. The config setting for auto delete cluster schedule.
- (::Google::Cloud::Dataproc::V1beta2::LifecycleConfig) — Optional. The config setting for auto delete cluster schedule.
#master_config
def master_config() -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for the master instance in a cluster.
#master_config=
def master_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- value (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for the master instance in a cluster.
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for the master instance in a cluster.
#secondary_worker_config
def secondary_worker_config() -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for additional worker instances in a cluster.
#secondary_worker_config=
def secondary_worker_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- value (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for additional worker instances in a cluster.
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for additional worker instances in a cluster.
#security_config
def security_config() -> ::Google::Cloud::Dataproc::V1beta2::SecurityConfig
- (::Google::Cloud::Dataproc::V1beta2::SecurityConfig) — Optional. Security related configuration.
#security_config=
def security_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::SecurityConfig
- value (::Google::Cloud::Dataproc::V1beta2::SecurityConfig) — Optional. Security related configuration.
- (::Google::Cloud::Dataproc::V1beta2::SecurityConfig) — Optional. Security related configuration.
#software_config
def software_config() -> ::Google::Cloud::Dataproc::V1beta2::SoftwareConfig
- (::Google::Cloud::Dataproc::V1beta2::SoftwareConfig) — Optional. The config settings for software inside the cluster.
#software_config=
def software_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::SoftwareConfig
- value (::Google::Cloud::Dataproc::V1beta2::SoftwareConfig) — Optional. The config settings for software inside the cluster.
- (::Google::Cloud::Dataproc::V1beta2::SoftwareConfig) — Optional. The config settings for software inside the cluster.
#temp_bucket
def temp_bucket() -> ::String
- (::String) — Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket.
#temp_bucket=
def temp_bucket=(value) -> ::String
- value (::String) — Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket.
- (::String) — Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket.
#worker_config
def worker_config() -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for worker instances in a cluster.
#worker_config=
def worker_config=(value) -> ::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig
- value (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for worker instances in a cluster.
- (::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig) — Optional. The Compute Engine config settings for worker instances in a cluster.