aws-glue-libs
This repository supports python libraries for local development of glue pyspark batch jobs. Glue streaming is supported in the separate repository aws-glue-streaming-libs.
Contents
This repository contains:
awsglue- the Python libary you can use to author AWS Glue ETL job. This library extends Apache Spark with additional data types and operations for ETL workflows. It's an interface for Glue ETL library in Python.bin- this directory hosts several executables that allow you to run the Python library locally or open up a PySpark shell to run Glue Spark code interactively.
Python versions by Glue Version
Different Glue versions support different Python versions. The following table below is for your reference, which also includes the associated repository's branch for each glue version.
| Glue Version | Python 3 Version | aws-glue-libs branch |
|---|---|---|
| 2.0 | 3.7 | glue-2.0 |
| 3.0 | 3.7 | glue-3.0 |
| 4.0 | 3.10 | glue-4.0 |
| 5.0 | 3.11 | glue-5.0 |
You may refer to AWS Glue's official release notes for more information
Setup guide
If you haven't already, please refer to the official AWS Glue Python local development documentation for the official setup documentation. The following is a summary of the AWS documentation:
The awsglue library provides only the Python interface to the Glue Spark runtime, you need the Glue ETL jar to run it locally. The jar is now available via the maven build system in a s3 backed maven repository. Here are the steps to set up your dev environment locally.
- install Apache Maven from the following location: https://aws-glue-etl-artifacts.s3.amazonaws.com/glue-common/apache-maven-3.6.0-bin.tar.gz
- use
copy-dependenciestarget in Apache Maven to download the jar from S3 to your local dev environment. - download and extract the Apache Spark distribution based on the Glue version you're using:
- Glue version 2.0:
https://aws-glue-etl-artifacts.s3.amazonaws.com/glue-2.0/spark-2.4.3-bin-hadoop2.8.tgz1 - Glue version 3.0:
https://aws-glue-etl-artifacts.s3.amazonaws.com/glue-3.0/spark-3.1.1-amzn-0-bin-3.2.1-amzn-3.tgz - Glue version 4.0:
https://aws-glue-etl-artifacts.s3.amazonaws.com/glue-4.0/spark-3.3.0-amzn-1-bin-3.3.3-amzn-0.tgz - Glue version 5.0: download the Apache Spark 3.5.4 distribution from
https://spark.apache.org
- Glue version 2.0:
- export the
SPARK_HOMEenvironmental variable to the extracted location of the above Spark distribution. For example:Glue version 2.0: export SPARK_HOME=/home/$USER/spark-2.4.3-bin-hadoop2.8 Glue version 3.0: export SPARK_HOME=/home/$USER/spark-3.1.1-amzn-0-bin-3.2.1-amzn-3 Glue version 4.0: export SPARK_HOME=/home/$USER/spark-3.3.0-amzn-1-bin-3.3.3-amzn-0 Glue version 5.0: export SPARK_HOME=/home/$USER/spark-3.5.4-bin-hadoop3 - now you can run the executables in the
bindirectory to start a Glue Shell or submit a Glue Spark application.Glue shell: ./bin/gluepyspark Glue submit: ./bin/gluesparksubmit pytest: ./bin/gluepytest
(The gluepytest script assumes that the pytest module is installed and available in the PATH env variable)
Licensing
The libraries in this repository licensed under the Amazon Software License (the "License"). They may not be used except in compliance with the License, a copy of which is included here in the LICENSE file.
Release Notes
July 26 2023
- According to AWS Glue version support policy, branches for Glue 0.9 and 1.0 are removed as they are already deprecated.
August 27 2021
- The master branch has been modified from representing Glue 0.9 to Glue 3.0, we have also created a glue-0.9 branch to reflect the former state of the master branch with Glue 0.9. To rename your local clone of the older master branch and point to the glue-0.9 branch, you may use the following commands:
git branch -m master glue-0.9
git fetch origin
git branch -u origin/glue-0.9 glue-0.9
git remote set-head origin -a
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awsgluedataplanepython-5.0.0.tar.gz.
File metadata
- Download URL: awsgluedataplanepython-5.0.0.tar.gz
- Upload date:
- Size: 95.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e627996832e8e9fe6163eec741f781c70cf0e14aa017f7d8351d7ebac36957c6
|
|
| MD5 |
07320b9e07472c93ecc7ddd4c5713fdc
|
|
| BLAKE2b-256 |
d669f6c29a6e16ed48b0844122c882a31821fa34e5775c14c9e3bbe76fd8ab92
|
Provenance
The following attestation bundles were made for awsgluedataplanepython-5.0.0.tar.gz:
Publisher:
publish.yml on awslabs/aws-glue-libs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awsgluedataplanepython-5.0.0.tar.gz -
Subject digest:
e627996832e8e9fe6163eec741f781c70cf0e14aa017f7d8351d7ebac36957c6 - Sigstore transparency entry: 2041654327
- Sigstore integration time:
-
Permalink:
awslabs/aws-glue-libs@036111536637c5ec2ed0491070966a3c0e2072ea -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@036111536637c5ec2ed0491070966a3c0e2072ea -
Trigger Event:
push
-
Statement type:
File details
Details for the file awsgluedataplanepython-5.0.0-py3-none-any.whl.
File metadata
- Download URL: awsgluedataplanepython-5.0.0-py3-none-any.whl
- Upload date:
- Size: 73.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a397c5aabdad7ade0b7f238031d029b157c3db72ae5749e89bd4f218566c23f3
|
|
| MD5 |
30c6345ca1ec508e82a04883e6c7e545
|
|
| BLAKE2b-256 |
bf1ea6ed4cb1489911c73e6b4eae243ec84228f2c01f6ecb3386e219500f96eb
|
Provenance
The following attestation bundles were made for awsgluedataplanepython-5.0.0-py3-none-any.whl:
Publisher:
publish.yml on awslabs/aws-glue-libs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awsgluedataplanepython-5.0.0-py3-none-any.whl -
Subject digest:
a397c5aabdad7ade0b7f238031d029b157c3db72ae5749e89bd4f218566c23f3 - Sigstore transparency entry: 2041654831
- Sigstore integration time:
-
Permalink:
awslabs/aws-glue-libs@036111536637c5ec2ed0491070966a3c0e2072ea -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@036111536637c5ec2ed0491070966a3c0e2072ea -
Trigger Event:
push
-
Statement type: