Class: Google::Apis::DataprocV1::SoftwareConfig

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

Specifies the selection and config of software inside the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SoftwareConfig

Returns a new instance of SoftwareConfig.



5304
5305
5306
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5304

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

Instance Attribute Details

#image_versionString

Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/ versioning/dataproc-versions#supported-dataproc-image-versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version ( https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions# other_versions). If unspecified, it defaults to the latest Debian version. Corresponds to the JSON property imageVersion

Returns:

  • (String)


5285
5286
5287
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5285

def image_version
  @image_version
end

#optional_componentsArray<String>

Optional. The set of components to activate on the cluster. Corresponds to the JSON property optionalComponents

Returns:

  • (Array<String>)


5290
5291
5292
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5290

def optional_components
  @optional_components
end

#propertiesHash<String,String>

Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster- properties). Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


5302
5303
5304
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5302

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5309
5310
5311
5312
5313
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5309

def update!(**args)
  @image_version = args[:image_version] if args.key?(:image_version)
  @optional_components = args[:optional_components] if args.key?(:optional_components)
  @properties = args[:properties] if args.key?(:properties)
end