Google Cloud Dataproc V1 Client - Class SoftwareConfig (3.13.2)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class SoftwareConfig.

Specifies the selection and config of software inside the cluster.

Generated from protobuf message google.cloud.dataproc.v1.SoftwareConfig

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image_version string

Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version.

↳ properties array|Google\Protobuf\Internal\MapField

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.xml For more information, see Cluster properties.

↳ optional_components array

Optional. The set of components to activate on the cluster.

getImageVersion

Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version.

If unspecified, it defaults to the latest Debian version.

Returns
Type Description
string

setImageVersion

Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version.

If unspecified, it defaults to the latest Debian version.

Parameter
Name Description
var string
Returns
Type Description
$this

getProperties

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.xml For more information, see Cluster properties.
Returns
Type Description
Google\Protobuf\Internal\MapField

setProperties

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.xml For more information, see Cluster properties.
Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getOptionalComponents

Optional. The set of components to activate on the cluster.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setOptionalComponents

Optional. The set of components to activate on the cluster.

Parameter
Name Description
var int[]
Returns
Type Description
$this