AWS Glue Pyspark Fetch Databases and Tables Metadata

1 min read aws, glue, spark, python

Written in 2021. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/aws-glue-pyspark-fetch-databases-and-tables-metadata-playground.

example AWS Glue pyspark job script that fetches all the catalog databases and tables metadata.

see main.py

Notes

ensure --enable-glue-datacatalog is enabled for glue job to allow spark sql to access metadata catalog

Glue Console Script View

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.