Interface JobRun.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<JobRun.Builder,JobRun>,SdkBuilder<JobRun.Builder,JobRun>,SdkPojo
- Enclosing class:
- JobRun
public static interface JobRun.Builder extends SdkPojo, CopyableBuilder<JobRun.Builder,JobRun>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description JobRun.BuilderallocatedCapacity(Integer allocatedCapacity)Deprecated.This property is deprecated, use MaxCapacity instead.JobRun.Builderarguments(Map<String,String> arguments)The job arguments associated with this run.JobRun.Builderattempt(Integer attempt)The number of the attempt to run this job.JobRun.BuildercompletedOn(Instant completedOn)The date and time that this job run completed.JobRun.BuilderdpuSeconds(Double dpuSeconds)This field can be set for either job runs with execution classFLEXor when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 forG.1X, 2 forG.2X, or 0.25 forG.025Xworkers).JobRun.BuildererrorMessage(String errorMessage)An error message associated with this job run.JobRun.BuilderexecutionClass(String executionClass)Indicates whether the job is run with a standard or flexible execution class.JobRun.BuilderexecutionClass(ExecutionClass executionClass)Indicates whether the job is run with a standard or flexible execution class.JobRun.BuilderexecutionTime(Integer executionTime)The amount of time (in seconds) that the job run consumed resources.JobRun.BuilderglueVersion(String glueVersion)In Spark jobs,GlueVersiondetermines the versions of Apache Spark and Python that Glue available in a job.JobRun.Builderid(String id)The ID of this job run.JobRun.BuilderjobMode(String jobMode)A mode that describes how a job was created.JobRun.BuilderjobMode(JobMode jobMode)A mode that describes how a job was created.JobRun.BuilderjobName(String jobName)The name of the job definition being used in this run.JobRun.BuilderjobRunQueuingEnabled(Boolean jobRunQueuingEnabled)Specifies whether job run queuing is enabled for the job run.JobRun.BuilderjobRunState(String jobRunState)The current state of the job run.JobRun.BuilderjobRunState(JobRunState jobRunState)The current state of the job run.JobRun.BuilderlastModifiedOn(Instant lastModifiedOn)The last time that this job run was modified.JobRun.BuilderlogGroupName(String logGroupName)The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS.JobRun.BuildermaintenanceWindow(String maintenanceWindow)This field specifies a day of the week and hour for a maintenance window for streaming jobs.JobRun.BuildermaxCapacity(Double maxCapacity)For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs.default JobRun.BuildernotificationProperty(Consumer<NotificationProperty.Builder> notificationProperty)Specifies configuration properties of a job run notification.JobRun.BuildernotificationProperty(NotificationProperty notificationProperty)Specifies configuration properties of a job run notification.JobRun.BuildernumberOfWorkers(Integer numberOfWorkers)The number of workers of a definedworkerTypethat are allocated when a job runs.JobRun.BuilderpredecessorRuns(Collection<Predecessor> predecessorRuns)A list of predecessors to this job run.JobRun.BuilderpredecessorRuns(Consumer<Predecessor.Builder>... predecessorRuns)A list of predecessors to this job run.JobRun.BuilderpredecessorRuns(Predecessor... predecessorRuns)A list of predecessors to this job run.JobRun.BuilderpreviousRunId(String previousRunId)The ID of the previous run of this job.JobRun.BuilderprofileName(String profileName)The name of an Glue usage profile associated with the job run.JobRun.BuildersecurityConfiguration(String securityConfiguration)The name of theSecurityConfigurationstructure to be used with this job run.JobRun.BuilderstartedOn(Instant startedOn)The date and time at which this job run was started.JobRun.BuilderstateDetail(String stateDetail)This field holds details that pertain to the state of a job run.JobRun.Buildertimeout(Integer timeout)TheJobRuntimeout in minutes.JobRun.BuildertriggerName(String triggerName)The name of the trigger that started this job run.JobRun.BuilderworkerType(String workerType)The type of predefined worker that is allocated when a job runs.JobRun.BuilderworkerType(WorkerType workerType)The type of predefined worker that is allocated when a job runs.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
JobRun.Builder id(String id)
The ID of this job run.
- Parameters:
id- The ID of this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attempt
JobRun.Builder attempt(Integer attempt)
The number of the attempt to run this job.
- Parameters:
attempt- The number of the attempt to run this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousRunId
JobRun.Builder previousRunId(String previousRunId)
The ID of the previous run of this job. For example, the
JobRunIdspecified in theStartJobRunaction.- Parameters:
previousRunId- The ID of the previous run of this job. For example, theJobRunIdspecified in theStartJobRunaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerName
JobRun.Builder triggerName(String triggerName)
The name of the trigger that started this job run.
- Parameters:
triggerName- The name of the trigger that started this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobName
JobRun.Builder jobName(String jobName)
The name of the job definition being used in this run.
- Parameters:
jobName- The name of the job definition being used in this run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobMode
JobRun.Builder jobMode(String jobMode)
A mode that describes how a job was created. Valid values are:
-
SCRIPT- The job was created using the Glue Studio script editor. -
VISUAL- The job was created using the Glue Studio visual editor. -
NOTEBOOK- The job was created using an interactive sessions notebook.
When the
JobModefield is missing or null,SCRIPTis assigned as the default value.- Parameters:
jobMode- A mode that describes how a job was created. Valid values are:-
SCRIPT- The job was created using the Glue Studio script editor. -
VISUAL- The job was created using the Glue Studio visual editor. -
NOTEBOOK- The job was created using an interactive sessions notebook.
When the
JobModefield is missing or null,SCRIPTis assigned as the default value.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobMode,JobMode
-
-
jobMode
JobRun.Builder jobMode(JobMode jobMode)
A mode that describes how a job was created. Valid values are:
-
SCRIPT- The job was created using the Glue Studio script editor. -
VISUAL- The job was created using the Glue Studio visual editor. -
NOTEBOOK- The job was created using an interactive sessions notebook.
When the
JobModefield is missing or null,SCRIPTis assigned as the default value.- Parameters:
jobMode- A mode that describes how a job was created. Valid values are:-
SCRIPT- The job was created using the Glue Studio script editor. -
VISUAL- The job was created using the Glue Studio visual editor. -
NOTEBOOK- The job was created using an interactive sessions notebook.
When the
JobModefield is missing or null,SCRIPTis assigned as the default value.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobMode,JobMode
-
-
jobRunQueuingEnabled
JobRun.Builder jobRunQueuingEnabled(Boolean jobRunQueuingEnabled)
Specifies whether job run queuing is enabled for the job run.
A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.
- Parameters:
jobRunQueuingEnabled- Specifies whether job run queuing is enabled for the job run.A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedOn
JobRun.Builder startedOn(Instant startedOn)
The date and time at which this job run was started.
- Parameters:
startedOn- The date and time at which this job run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedOn
JobRun.Builder lastModifiedOn(Instant lastModifiedOn)
The last time that this job run was modified.
- Parameters:
lastModifiedOn- The last time that this job run was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedOn
JobRun.Builder completedOn(Instant completedOn)
The date and time that this job run completed.
- Parameters:
completedOn- The date and time that this job run completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobRunState
JobRun.Builder jobRunState(String jobRunState)
The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.
- Parameters:
jobRunState- The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobRunState,JobRunState
-
jobRunState
JobRun.Builder jobRunState(JobRunState jobRunState)
The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.
- Parameters:
jobRunState- The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobRunState,JobRunState
-
arguments
JobRun.Builder arguments(Map<String,String> arguments)
The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.
You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.
Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.
For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.
For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.
For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.
- Parameters:
arguments- The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.
Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.
For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.
For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.
For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
JobRun.Builder errorMessage(String errorMessage)
An error message associated with this job run.
- Parameters:
errorMessage- An error message associated with this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predecessorRuns
JobRun.Builder predecessorRuns(Collection<Predecessor> predecessorRuns)
A list of predecessors to this job run.
- Parameters:
predecessorRuns- A list of predecessors to this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predecessorRuns
JobRun.Builder predecessorRuns(Predecessor... predecessorRuns)
A list of predecessors to this job run.
- Parameters:
predecessorRuns- A list of predecessors to this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predecessorRuns
JobRun.Builder predecessorRuns(Consumer<Predecessor.Builder>... predecessorRuns)
A list of predecessors to this job run.
This is a convenience method that creates an instance of thePredecessor.Builderavoiding the need to create one manually viaPredecessor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#predecessorRuns(List.) - Parameters:
predecessorRuns- a consumer that will call methods onPredecessor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#predecessorRuns(java.util.Collection)
-
allocatedCapacity
@Deprecated JobRun.Builder allocatedCapacity(Integer allocatedCapacity)
Deprecated.This property is deprecated, use MaxCapacity instead.This field is deprecated. Use
MaxCapacityinstead.The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
- Parameters:
allocatedCapacity- This field is deprecated. UseMaxCapacityinstead.The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionTime
JobRun.Builder executionTime(Integer executionTime)
The amount of time (in seconds) that the job run consumed resources.
- Parameters:
executionTime- The amount of time (in seconds) that the job run consumed resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
JobRun.Builder timeout(Integer timeout)
The
JobRuntimeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and entersTIMEOUTstatus. This value overrides the timeout value set in the parent job.Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.
When the value is left blank, the timeout is defaulted to 2880 minutes.
Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.
For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.
- Parameters:
timeout- TheJobRuntimeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and entersTIMEOUTstatus. This value overrides the timeout value set in the parent job.Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.
When the value is left blank, the timeout is defaulted to 2880 minutes.
Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.
For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxCapacity
JobRun.Builder maxCapacity(Double maxCapacity)
For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
For Glue version 2.0+ jobs, you cannot specify a
Maximum capacity. Instead, you should specify aWorker typeand theNumber of workers.Do not set
MaxCapacityif usingWorkerTypeandNumberOfWorkers.The value that can be allocated for
MaxCapacitydepends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:-
When you specify a Python shell job (
JobCommand.Name="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU. -
When you specify an Apache Spark ETL job (
JobCommand.Name="glueetl") or Apache Spark streaming ETL job (JobCommand.Name="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.
- Parameters:
maxCapacity- For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.For Glue version 2.0+ jobs, you cannot specify a
Maximum capacity. Instead, you should specify aWorker typeand theNumber of workers.Do not set
MaxCapacityif usingWorkerTypeandNumberOfWorkers.The value that can be allocated for
MaxCapacitydepends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:-
When you specify a Python shell job (
JobCommand.Name="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU. -
When you specify an Apache Spark ETL job (
JobCommand.Name="glueetl") or Apache Spark streaming ETL job (JobCommand.Name="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
workerType
JobRun.Builder workerType(String workerType)
The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, G.8X or G.025X for Spark jobs. Accepts the value Z.2X for Ray jobs.
-
For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.4Xworker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm). -
For the
G.8Xworker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for theG.4Xworker type. -
For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs. -
For the
Z.2Xworker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.
- Parameters:
workerType- The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, G.8X or G.025X for Spark jobs. Accepts the value Z.2X for Ray jobs.-
For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.4Xworker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm). -
For the
G.8Xworker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for theG.4Xworker type. -
For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs. -
For the
Z.2Xworker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkerType,WorkerType
-
-
workerType
JobRun.Builder workerType(WorkerType workerType)
The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, G.8X or G.025X for Spark jobs. Accepts the value Z.2X for Ray jobs.
-
For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.4Xworker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm). -
For the
G.8Xworker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for theG.4Xworker type. -
For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs. -
For the
Z.2Xworker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.
- Parameters:
workerType- The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, G.8X or G.025X for Spark jobs. Accepts the value Z.2X for Ray jobs.-
For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs. -
For the
G.4Xworker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm). -
For the
G.8Xworker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for theG.4Xworker type. -
For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs. -
For the
Z.2Xworker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkerType,WorkerType
-
-
numberOfWorkers
JobRun.Builder numberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined
workerTypethat are allocated when a job runs.- Parameters:
numberOfWorkers- The number of workers of a definedworkerTypethat are allocated when a job runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityConfiguration
JobRun.Builder securityConfiguration(String securityConfiguration)
The name of the
SecurityConfigurationstructure to be used with this job run.- Parameters:
securityConfiguration- The name of theSecurityConfigurationstructure to be used with this job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupName
JobRun.Builder logGroupName(String logGroupName)
The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be
/aws-glue/jobs/, in which case the default encryption isNONE. If you add a role name andSecurityConfigurationname (in other words,/aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.- Parameters:
logGroupName- The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be/aws-glue/jobs/, in which case the default encryption isNONE. If you add a role name andSecurityConfigurationname (in other words,/aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationProperty
JobRun.Builder notificationProperty(NotificationProperty notificationProperty)
Specifies configuration properties of a job run notification.
- Parameters:
notificationProperty- Specifies configuration properties of a job run notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationProperty
default JobRun.Builder notificationProperty(Consumer<NotificationProperty.Builder> notificationProperty)
Specifies configuration properties of a job run notification.
This is a convenience method that creates an instance of theNotificationProperty.Builderavoiding the need to create one manually viaNotificationProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotificationProperty(NotificationProperty).- Parameters:
notificationProperty- a consumer that will call methods onNotificationProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
notificationProperty(NotificationProperty)
-
glueVersion
JobRun.Builder glueVersion(String glueVersion)
In Spark jobs,
GlueVersiondetermines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.Ray jobs should set
GlueVersionto4.0or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by theRuntimeparameter of the Job command.For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Jobs that are created without specifying a Glue version default to Glue 0.9.
- Parameters:
glueVersion- In Spark jobs,GlueVersiondetermines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.Ray jobs should set
GlueVersionto4.0or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by theRuntimeparameter of the Job command.For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Jobs that are created without specifying a Glue version default to Glue 0.9.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dpuSeconds
JobRun.Builder dpuSeconds(Double dpuSeconds)
This field can be set for either job runs with execution class
FLEXor when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 forG.1X, 2 forG.2X, or 0.25 forG.025Xworkers). This value may be different than theexecutionEngineRuntime*MaxCapacityas in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than theMaxCapacity. Therefore, it is possible that the value ofDPUSecondsis less thanexecutionEngineRuntime*MaxCapacity.- Parameters:
dpuSeconds- This field can be set for either job runs with execution classFLEXor when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 forG.1X, 2 forG.2X, or 0.25 forG.025Xworkers). This value may be different than theexecutionEngineRuntime*MaxCapacityas in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than theMaxCapacity. Therefore, it is possible that the value ofDPUSecondsis less thanexecutionEngineRuntime*MaxCapacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionClass
JobRun.Builder executionClass(String executionClass)
Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.
The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
Only jobs with Glue version 3.0 and above and command type
glueetlwill be allowed to setExecutionClasstoFLEX. The flexible execution class is available for Spark jobs.- Parameters:
executionClass- Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
Only jobs with Glue version 3.0 and above and command type
glueetlwill be allowed to setExecutionClasstoFLEX. The flexible execution class is available for Spark jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionClass,ExecutionClass
-
executionClass
JobRun.Builder executionClass(ExecutionClass executionClass)
Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.
The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
Only jobs with Glue version 3.0 and above and command type
glueetlwill be allowed to setExecutionClasstoFLEX. The flexible execution class is available for Spark jobs.- Parameters:
executionClass- Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
Only jobs with Glue version 3.0 and above and command type
glueetlwill be allowed to setExecutionClasstoFLEX. The flexible execution class is available for Spark jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionClass,ExecutionClass
-
maintenanceWindow
JobRun.Builder maintenanceWindow(String maintenanceWindow)
This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.
Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.
- Parameters:
maintenanceWindow- This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
profileName
JobRun.Builder profileName(String profileName)
The name of an Glue usage profile associated with the job run.
- Parameters:
profileName- The name of an Glue usage profile associated with the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateDetail
JobRun.Builder stateDetail(String stateDetail)
This field holds details that pertain to the state of a job run. The field is nullable.
For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.
- Parameters:
stateDetail- This field holds details that pertain to the state of a job run. The field is nullable.For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-