This guide will step you through how to schedule a glue job, from the AWS console, that runs on the liberator data in the raw zone.
Scheduling your glue job will mean that it will run whenever new liberator data is added in the data platform so that your transformed data in, say, the refined zone is based on the most up to date data, with no manual intervention.
- You have created a glue job that transforms the liberator data in the raw zone. There is guidance on creating a glue job and a workshop if you need help with this.
- You have access to the Hackney Data Platform
Sign in to the AWS Management Console
In AWS Glue Studio, Check the properties for all of the Data targets in your glue job. Ensure you have the following properties set in the "Data target properties" tab.
- The Format is set to "Glue Parquet"
- Under "Data Catalog update options", the option "Create a table in the Data Catalog and on subsequent runs, update the schema and add new partitions" is selected.
- A "Database" and "Table name" should also be filled in.
This is so that the job will update the tables in AWS Athena after it runs, without having to run a crawler.
Naviagte to AWS Glue Workflows.
Select the workflow called
parking-liberator-data-workflow, a diagram should appear at the bottom.
There should be a trigger (diamond shaped) labeled
trigger-liberator-jobs. If this trigger doesn't exist follow these steps to create it.
Click on the trigger shape, then on the "Action" dropdown and select "Add jobs/crawlers to trigger".
Click on the "Jobs" tab. Find and select the job you just created.
Click "Add". Your job should appear in the diagram, connected to the trigger.
Your job is now scheduled to run when new liberator data is added to the platform.
- Click on "Action" to display the dropdown and select "Add trigger".
- Click on the "Add new" tab, put
trigger-liberator-jobsin the Name field then click "Add'. A new diamond shape will appear in the diagram with a broken link symbol, this is the trigger you have just added and it now needs to be linked to the rest of the workflow.
- Click on the shape, then on the "Action" dropdown and select "Add jobs/crawlers to watch".
Ensure the "Jobs" tab is selected. Select the job
Copy parking Liberator landing zone to rawfrom, then list then click "Add".
- Continue following the instructions above.