class Google::Apis::DataprocV1::SoftwareConfig

Specifies the selection and config of software inside the cluster.

Attributes

image_version[RW]

Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (cloud.google.com/dataproc/docs/concepts/ versioning/dataproc-versions#supported_dataproc_versions), such as “1.2” ( including a subminor version, such as “1.2.29”), or the “preview” version ( 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` @return [String]

optional_components[RW]

Optional. The set of components to activate on the cluster. Corresponds to the JSON property `optionalComponents` @return [Array<String>]

properties[RW]

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 (cloud.google.com/dataproc/docs/concepts/cluster- properties). Corresponds to the JSON property `properties` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 3209
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 3214
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