Class: Google::Apis::DataprocV1beta2::ClusterConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::ClusterConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
The cluster config.
Instance Attribute Summary collapse
-
#autoscaling_config ⇒ Google::Apis::DataprocV1beta2::AutoscalingConfig
Autoscaling Policy config associated with the cluster.
-
#config_bucket ⇒ String
Optional.
-
#encryption_config ⇒ Google::Apis::DataprocV1beta2::EncryptionConfig
Encryption settings for the cluster.
-
#endpoint_config ⇒ Google::Apis::DataprocV1beta2::EndpointConfig
Endpoint config for this cluster Corresponds to the JSON property
endpointConfig
. -
#gce_cluster_config ⇒ Google::Apis::DataprocV1beta2::GceClusterConfig
Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster.
-
#gke_cluster_config ⇒ Google::Apis::DataprocV1beta2::GkeClusterConfig
The GKE config for this cluster.
-
#initialization_actions ⇒ Array<Google::Apis::DataprocV1beta2::NodeInitializationAction>
Optional.
-
#lifecycle_config ⇒ Google::Apis::DataprocV1beta2::LifecycleConfig
Specifies the cluster auto-delete schedule configuration.
-
#master_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as a master or worker group.
-
#metastore_config ⇒ Google::Apis::DataprocV1beta2::MetastoreConfig
Specifies a Metastore configuration.
-
#secondary_worker_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as a master or worker group.
-
#security_config ⇒ Google::Apis::DataprocV1beta2::SecurityConfig
Security related configuration, including encryption, Kerberos, etc.
-
#software_config ⇒ Google::Apis::DataprocV1beta2::SoftwareConfig
Specifies the selection and config of software inside the cluster.
-
#temp_bucket ⇒ String
Optional.
-
#worker_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as a master or worker group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterConfig
constructor
A new instance of ClusterConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterConfig
Returns a new instance of ClusterConfig.
483 484 485 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 483 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling_config ⇒ Google::Apis::DataprocV1beta2::AutoscalingConfig
Autoscaling Policy config associated with the cluster.
Corresponds to the JSON property autoscalingConfig
389 390 391 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 389 def autoscaling_config @autoscaling_config end |
#config_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 (https://cloud.google.com/
dataproc/docs/concepts/configuring-clusters/staging-bucket)).
Corresponds to the JSON property configBucket
400 401 402 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 400 def config_bucket @config_bucket end |
#encryption_config ⇒ Google::Apis::DataprocV1beta2::EncryptionConfig
Encryption settings for the cluster.
Corresponds to the JSON property encryptionConfig
405 406 407 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 405 def encryption_config @encryption_config end |
#endpoint_config ⇒ Google::Apis::DataprocV1beta2::EndpointConfig
Endpoint config for this cluster
Corresponds to the JSON property endpointConfig
410 411 412 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 410 def endpoint_config @endpoint_config end |
#gce_cluster_config ⇒ Google::Apis::DataprocV1beta2::GceClusterConfig
Common config settings for resources of Compute Engine cluster instances,
applicable to all instances in the cluster.
Corresponds to the JSON property gceClusterConfig
416 417 418 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 416 def gce_cluster_config @gce_cluster_config end |
#gke_cluster_config ⇒ Google::Apis::DataprocV1beta2::GkeClusterConfig
The GKE config for this cluster.
Corresponds to the JSON property gkeClusterConfig
421 422 423 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 421 def gke_cluster_config @gke_cluster_config end |
#initialization_actions ⇒ Array<Google::Apis::DataprocV1beta2::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 using curl (you can also use wget): 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
Corresponds to the JSON property initializationActions
432 433 434 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 432 def initialization_actions @initialization_actions end |
#lifecycle_config ⇒ Google::Apis::DataprocV1beta2::LifecycleConfig
Specifies the cluster auto-delete schedule configuration.
Corresponds to the JSON property lifecycleConfig
437 438 439 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 437 def lifecycle_config @lifecycle_config end |
#master_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as
a master or worker group.
Corresponds to the JSON property masterConfig
443 444 445 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 443 def master_config @master_config end |
#metastore_config ⇒ Google::Apis::DataprocV1beta2::MetastoreConfig
Specifies a Metastore configuration.
Corresponds to the JSON property metastoreConfig
448 449 450 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 448 def @metastore_config end |
#secondary_worker_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as
a master or worker group.
Corresponds to the JSON property secondaryWorkerConfig
454 455 456 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 454 def secondary_worker_config @secondary_worker_config end |
#security_config ⇒ Google::Apis::DataprocV1beta2::SecurityConfig
Security related configuration, including encryption, Kerberos, etc.
Corresponds to the JSON property securityConfig
459 460 461 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 459 def security_config @security_config end |
#software_config ⇒ Google::Apis::DataprocV1beta2::SoftwareConfig
Specifies the selection and config of software inside the cluster.
Corresponds to the JSON property softwareConfig
464 465 466 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 464 def software_config @software_config end |
#temp_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.
Corresponds to the JSON property tempBucket
475 476 477 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 475 def temp_bucket @temp_bucket end |
#worker_config ⇒ Google::Apis::DataprocV1beta2::InstanceGroupConfig
The config settings for Compute Engine resources in an instance group, such as
a master or worker group.
Corresponds to the JSON property workerConfig
481 482 483 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 481 def worker_config @worker_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 488 def update!(**args) @autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config) @config_bucket = args[:config_bucket] if args.key?(:config_bucket) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @endpoint_config = args[:endpoint_config] if args.key?(:endpoint_config) @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config) @gke_cluster_config = args[:gke_cluster_config] if args.key?(:gke_cluster_config) @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions) @lifecycle_config = args[:lifecycle_config] if args.key?(:lifecycle_config) @master_config = args[:master_config] if args.key?(:master_config) @metastore_config = args[:metastore_config] if args.key?(:metastore_config) @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) @security_config = args[:security_config] if args.key?(:security_config) @software_config = args[:software_config] if args.key?(:software_config) @temp_bucket = args[:temp_bucket] if args.key?(:temp_bucket) @worker_config = args[:worker_config] if args.key?(:worker_config) end |