Google Cloud Dataproc V1 Client - Class SoftwareConfig (3.10.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getOptionalComponents

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOptionalComponents

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

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this