etl commands below.
ETL Download
Description
Clones the remote ETL script saved in hotglue to your local machine.Sample
Parameters
| Option | Default | Description |
|---|---|---|
--overwrite | ||
-o | false | When enabled, overwrites any files that already exist locally in the download to directory. |
--downloadTo | ||
-d | . | The directory to download the ETL to. Defaults to the local directory. |
ETL Deploy
Description
Deploys the local ETL script to hotglue.Sample
Parameters
| Option | Default | Description |
|---|---|---|
--sourceFolder | ||
-s | . | The directory to upload the ETL script from. Defaults to the local directory. |
ETL Delete
Description
Deletes a deployed ETL script on hotglue.Sample
ETL Set up Local Job Data
Description
Clones hotglue job data to your local machine and creates a.env file with the job’s environment variables.
The file structure and content is identical to the file system your ETL script ran in.
The downloaded etl-output folder will be renamed to etl-output-reference.
We recommend using this command to reproduce ETL failures or back test again successful jobs.
Sample
Parameters
| Option | Default | Description |
|---|---|---|
--include-configs | false | When enabled, also downloads target-config.json, source-config.json, tenant-config.json and sets the API_KEY environment variable. |
--overwrite | ||
-o | false | When enabled, overwrites any files that already exist locally in the download to directory. |
--downloadTo | ||
-d | . | The directory to download the job data to. Defaults to the local directory. |
Running the ETL with the jobs environment variables
After running thesetup-local-run command a .env file will be created containing the same environment variables that were available when the job ran in the hotglue environment.In order to run the ETL with those same environment variables use one of the following methods:
For VSCode and it’s variants
Open the launcher file{project_folder}/.vscode/launch.json and add the envFile entry for launch configuration: