Class: Google::Apis::DataprocV1::ClusterConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

The cluster config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterConfig

Returns a new instance of ClusterConfig.



1421
1422
1423
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1421

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#autoscaling_configGoogle::Apis::DataprocV1::AutoscalingConfig

Autoscaling Policy config associated with the cluster. Corresponds to the JSON property autoscalingConfig



1312
1313
1314
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1312

def autoscaling_config
  @autoscaling_config
end

#auxiliary_node_groupsArray<Google::Apis::DataprocV1::AuxiliaryNodeGroup>

Optional. The node group settings. Corresponds to the JSON property auxiliaryNodeGroups



1317
1318
1319
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1317

def auxiliary_node_groups
  @auxiliary_node_groups
end

#config_bucketString

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 and temp buckets (https://cloud.google. com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket. Corresponds to the JSON property configBucket

Returns:

  • (String)


1330
1331
1332
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1330

def config_bucket
  @config_bucket
end

#dataproc_metric_configGoogle::Apis::DataprocV1::DataprocMetricConfig

Dataproc metric config. Corresponds to the JSON property dataprocMetricConfig



1335
1336
1337
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1335

def dataproc_metric_config
  @dataproc_metric_config
end

#encryption_configGoogle::Apis::DataprocV1::EncryptionConfig

Encryption settings for the cluster. Corresponds to the JSON property encryptionConfig



1340
1341
1342
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1340

def encryption_config
  @encryption_config
end

#endpoint_configGoogle::Apis::DataprocV1::EndpointConfig

Endpoint config for this cluster Corresponds to the JSON property endpointConfig



1345
1346
1347
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1345

def endpoint_config
  @endpoint_config
end

#gce_cluster_configGoogle::Apis::DataprocV1::GceClusterConfig

Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. Corresponds to the JSON property gceClusterConfig



1351
1352
1353
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1351

def gce_cluster_config
  @gce_cluster_config
end

#gke_cluster_configGoogle::Apis::DataprocV1::GkeClusterConfig

The cluster's GKE config. Corresponds to the JSON property gkeClusterConfig



1356
1357
1358
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1356

def gke_cluster_config
  @gke_cluster_config
end

#initialization_actionsArray<Google::Apis::DataprocV1::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/v1/instance/attributes/dataproc-role) if [[ "$ROLE" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi Corresponds to the JSON property initializationActions



1367
1368
1369
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1367

def initialization_actions
  @initialization_actions
end

#lifecycle_configGoogle::Apis::DataprocV1::LifecycleConfig

Specifies the cluster auto-delete schedule configuration. Corresponds to the JSON property lifecycleConfig



1372
1373
1374
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1372

def lifecycle_config
  @lifecycle_config
end

#master_configGoogle::Apis::DataprocV1::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



1378
1379
1380
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1378

def master_config
  @master_config
end

#metastore_configGoogle::Apis::DataprocV1::MetastoreConfig

Specifies a Metastore configuration. Corresponds to the JSON property metastoreConfig



1383
1384
1385
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1383

def metastore_config
  @metastore_config
end

#secondary_worker_configGoogle::Apis::DataprocV1::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



1389
1390
1391
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1389

def secondary_worker_config
  @secondary_worker_config
end

#security_configGoogle::Apis::DataprocV1::SecurityConfig

Security related configuration, including encryption, Kerberos, etc. Corresponds to the JSON property securityConfig



1394
1395
1396
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1394

def security_config
  @security_config
end

#software_configGoogle::Apis::DataprocV1::SoftwareConfig

Specifies the selection and config of software inside the cluster. Corresponds to the JSON property softwareConfig



1399
1400
1401
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1399

def software_config
  @software_config
end

#temp_bucketString

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 (see Dataproc staging and temp buckets ( https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging- bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket. Corresponds to the JSON property tempBucket

Returns:

  • (String)


1413
1414
1415
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1413

def temp_bucket
  @temp_bucket
end

#worker_configGoogle::Apis::DataprocV1::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



1419
1420
1421
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1419

def worker_config
  @worker_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1426

def update!(**args)
  @autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
  @auxiliary_node_groups = args[:auxiliary_node_groups] if args.key?(:auxiliary_node_groups)
  @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
  @dataproc_metric_config = args[:dataproc_metric_config] if args.key?(:dataproc_metric_config)
  @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