class GlueVersion
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.Alpha.GlueVersion |
![]() | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#GlueVersion |
![]() | software.amazon.awscdk.services.glue.alpha.GlueVersion |
![]() | aws_cdk.aws_glue_alpha.GlueVersion |
![]() | @aws-cdk/aws-glue-alpha ยป GlueVersion |
AWS Glue version determines the versions of Apache Spark and Python that are available to the job.
See also: [https://docs.aws.amazon.com/glue/latest/dg/add-job.html.
If you need to use a GlueVersion that doesn't exist as a static member, you
can instantiate a GlueVersion
object, e.g: GlueVersion.of('1.5')
.](https://docs.aws.amazon.com/glue/latest/dg/add-job.html.
If you need to use a GlueVersion that doesn't exist as a static member, you
can instantiate a GlueVersion
object, e.g: GlueVersion.of('1.5')
.)
Example
declare const bucket: s3.Bucket;
new glue.Job(this, 'ScalaSparkEtlJob', {
executable: glue.JobExecutable.scalaEtl({
glueVersion: glue.GlueVersion.V4_0,
script: glue.Code.fromBucket(bucket, 'src/com/example/HelloWorld.scala'),
className: 'com.example.HelloWorld',
extraJars: [glue.Code.fromBucket(bucket, 'jars/HelloWorld.jar')],
}),
workerType: glue.WorkerType.G_8X,
description: 'an example Scala ETL job',
});
Properties
Name | Type | Description |
---|---|---|
name | string | The name of this GlueVersion, as expected by Job resource. |
static V0_9 | Glue | Glue version using Spark 2.2.1 and Python 2.7. |
static V1_0 | Glue | Glue version using Spark 2.4.3, Python 2.7 and Python 3.6. |
static V2_0 | Glue | Glue version using Spark 2.4.3 and Python 3.7. |
static V3_0 | Glue | Glue version using Spark 3.1.1 and Python 3.7. |
static V4_0 | Glue | Glue version using Spark 3.3.0 and Python 3.10. |
name
Type:
string
The name of this GlueVersion, as expected by Job resource.
static V0_9
Type:
Glue
Glue version using Spark 2.2.1 and Python 2.7.
static V1_0
Type:
Glue
Glue version using Spark 2.4.3, Python 2.7 and Python 3.6.
static V2_0
Type:
Glue
Glue version using Spark 2.4.3 and Python 3.7.
static V3_0
Type:
Glue
Glue version using Spark 3.1.1 and Python 3.7.
static V4_0
Type:
Glue
Glue version using Spark 3.3.0 and Python 3.10.
Methods
Name | Description |
---|---|
static of(version) | Custom Glue version. |
static of(version)
public static of(version: string): GlueVersion
Parameters
- version
string
โ custom version.
Returns
Custom Glue version.