Google Cloud Dataproc V1 Client - Class Job (3.10.1)

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

A Dataproc job resource.

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

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ reference Google\Cloud\Dataproc\V1\JobReference

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id.

↳ placement Google\Cloud\Dataproc\V1\JobPlacement

Required. Job information, including how, when, and where to run the job.

↳ hadoop_job Google\Cloud\Dataproc\V1\HadoopJob

Optional. Job is a Hadoop job.

↳ spark_job Google\Cloud\Dataproc\V1\SparkJob

Optional. Job is a Spark job.

↳ pyspark_job Google\Cloud\Dataproc\V1\PySparkJob

Optional. Job is a PySpark job.

↳ hive_job Google\Cloud\Dataproc\V1\HiveJob

Optional. Job is a Hive job.

↳ pig_job Google\Cloud\Dataproc\V1\PigJob

Optional. Job is a Pig job.

↳ spark_r_job Google\Cloud\Dataproc\V1\SparkRJob

Optional. Job is a SparkR job.

↳ spark_sql_job Google\Cloud\Dataproc\V1\SparkSqlJob

Optional. Job is a SparkSql job.

↳ presto_job Google\Cloud\Dataproc\V1\PrestoJob

Optional. Job is a Presto job.

↳ trino_job Google\Cloud\Dataproc\V1\TrinoJob

Optional. Job is a Trino job.

↳ status Google\Cloud\Dataproc\V1\JobStatus

Output only. The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields.

↳ status_history array<Google\Cloud\Dataproc\V1\JobStatus>

Output only. The previous job status.

↳ yarn_applications array<Google\Cloud\Dataproc\V1\YarnApplication>

Output only. The collection of YARN applications spun up by this job. Beta Feature: This report is available for testing purposes only. It may be changed before final release.

↳ driver_output_resource_uri string

Output only. A URI pointing to the location of the stdout of the job's driver program.

↳ driver_control_files_uri string

Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a job.

↳ scheduling Google\Cloud\Dataproc\V1\JobScheduling

Optional. Job scheduling configuration.

↳ job_uuid string

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.

↳ done bool

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

↳ driver_scheduling_config Google\Cloud\Dataproc\V1\DriverSchedulingConfig

Optional. Driver scheduling configuration.

getReference

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\JobReference|null

hasReference

clearReference

setReference

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\JobReference
Returns
TypeDescription
$this

getPlacement

Required. Job information, including how, when, and where to run the job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\JobPlacement|null

hasPlacement

clearPlacement

setPlacement

Required. Job information, including how, when, and where to run the job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\JobPlacement
Returns
TypeDescription
$this

getHadoopJob

Optional. Job is a Hadoop job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\HadoopJob|null

hasHadoopJob

setHadoopJob

Optional. Job is a Hadoop job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\HadoopJob
Returns
TypeDescription
$this

getSparkJob

Optional. Job is a Spark job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkJob|null

hasSparkJob

setSparkJob

Optional. Job is a Spark job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkJob
Returns
TypeDescription
$this

getPysparkJob

Optional. Job is a PySpark job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\PySparkJob|null

hasPysparkJob

setPysparkJob

Optional. Job is a PySpark job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\PySparkJob
Returns
TypeDescription
$this

getHiveJob

Optional. Job is a Hive job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\HiveJob|null

hasHiveJob

setHiveJob

Optional. Job is a Hive job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\HiveJob
Returns
TypeDescription
$this

getPigJob

Optional. Job is a Pig job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\PigJob|null

hasPigJob

setPigJob

Optional. Job is a Pig job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\PigJob
Returns
TypeDescription
$this

getSparkRJob

Optional. Job is a SparkR job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkRJob|null

hasSparkRJob

setSparkRJob

Optional. Job is a SparkR job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkRJob
Returns
TypeDescription
$this

getSparkSqlJob

Optional. Job is a SparkSql job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkSqlJob|null

hasSparkSqlJob

setSparkSqlJob

Optional. Job is a SparkSql job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkSqlJob
Returns
TypeDescription
$this

getPrestoJob

Optional. Job is a Presto job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\PrestoJob|null

hasPrestoJob

setPrestoJob

Optional. Job is a Presto job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\PrestoJob
Returns
TypeDescription
$this

getTrinoJob

Optional. Job is a Trino job.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\TrinoJob|null

hasTrinoJob

setTrinoJob

Optional. Job is a Trino job.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\TrinoJob
Returns
TypeDescription
$this

getStatus

Output only. The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\JobStatus|null

hasStatus

clearStatus

setStatus

Output only. The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\JobStatus
Returns
TypeDescription
$this

getStatusHistory

Output only. The previous job status.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatusHistory

Output only. The previous job status.

Parameter
NameDescription
var array<Google\Cloud\Dataproc\V1\JobStatus>
Returns
TypeDescription
$this

getYarnApplications

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setYarnApplications

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Parameter
NameDescription
var array<Google\Cloud\Dataproc\V1\YarnApplication>
Returns
TypeDescription
$this

getDriverOutputResourceUri

Output only. A URI pointing to the location of the stdout of the job's driver program.

Returns
TypeDescription
string

setDriverOutputResourceUri

Output only. A URI pointing to the location of the stdout of the job's driver program.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDriverControlFilesUri

Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.

Returns
TypeDescription
string

setDriverControlFilesUri

Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Optional. The labels to associate with this job.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a job.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. The labels to associate with this job.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a job.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getScheduling

Optional. Job scheduling configuration.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\JobScheduling|null

hasScheduling

clearScheduling

setScheduling

Optional. Job scheduling configuration.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\JobScheduling
Returns
TypeDescription
$this

getJobUuid

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.

Returns
TypeDescription
string

setJobUuid

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDone

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

Returns
TypeDescription
bool

setDone

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDriverSchedulingConfig

Optional. Driver scheduling configuration.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\DriverSchedulingConfig|null

hasDriverSchedulingConfig

clearDriverSchedulingConfig

setDriverSchedulingConfig

Optional. Driver scheduling configuration.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\DriverSchedulingConfig
Returns
TypeDescription
$this

getTypeJob

Returns
TypeDescription
string