サービス · Analytics · CLF-C02 の発展
AWS Glue
Serverless ETL and the Data Catalog: crawl data, transform it, and write it as Parquet.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- Glue is serverless, pay as you go and does ETL (extract, transform, load).
- Crawlers find data and its structure. The Data Catalog lists the tables.
- Athena, EMR and Redshift read tables from the Data Catalog.
Glue
- When
- Serverless ETL, least operations
- Limit
- Spark and Python jobs
- When
- Hadoop, Hive, HBase or tuned Spark
- Limit
- You manage the cluster
- When
- Small, event-driven transforms
- Limit
- 15 minutes per run
| Choose | When | Limit |
|---|---|---|
| Serverless ETL, least operations | Spark and Python jobs | |
| Hadoop, Hive, HBase or tuned Spark | You manage the cluster | |
| Small, event-driven transforms | 15 minutes per run |
概要
A crawler scans a data store, such as an S3 prefix, works out the format and columns, and creates or updates a table in the Data Catalog. An ETL job is serverless Apache Spark (or Python) code that Glue runs for you. You pay for the capacity the job uses while it runs. Job bookmarks remember what a job already processed, so the next run reads only new data.
The classic exam job: convert CSV or JSON files to Parquet. Parquet is columnar and compressed, so Athena and Redshift Spectrum scan far less data. Glue Studio builds jobs visually. Glue DataBrew cleans and prepares data with no code. Glue can also run on a schedule, on demand, or on an event.
覚えること
- Crawlers fill the Data Catalog. The catalog is shared by Athena, EMR, Redshift Spectrum and Lake Formation.
- ETL jobs are serverless Spark. No cluster to manage.
- Job bookmarks process only new data on each run.
- Typical job: CSV or JSON to Parquet, partitioned by date.
- Glue Studio is visual. DataBrew is no-code data preparation.
試験では
- “Serverless ETL” or “convert CSV to Parquet on a schedule” points to AWS Glue.
- “Discover the schema of data in S3” points to a Glue crawler.
- “Skip files that were already processed” points to job bookmarks.
- “Custom Hadoop or Spark cluster with specific libraries” points to EMR instead.
混同しやすいもの
Amazon EMRManaged Spark and Hadoop clusters. Use Spot task nodes, S3 storage and short-lived clusters to save money.
Amazon AthenaServerless SQL on S3. You pay for data scanned, so use partitions, Parquet and compression.
AWS Lake FormationBuild a data lake on S3 and secure it in one place, down to columns and rows.