Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 4: Test your ETL in manual mode

Code Block
breakoutModewide
/home/unix/analytics/TigerETL3/runEtlAgent.sh Task db=analyticsetl 'task=jqlTask(taskName=bqms_exploded_samples)' 'delta=MillisDelta.manual(2021-mar-21 00:00:00,2021-mar-22 00:00:00)'
Image Modified

RUN3 is variable you should have defined in your TigerEnvironment (if it gives you trouble you can just replace it with /home/unix/analytics/TigerETL3/runEtlAgent.sh)

Step 5: Prepare a delta-tracker

...

Step 6: Test your ETL in delta-driven mode

Code Block
breakoutModewide
$RUN3 Task db=analyticsetl 'task=jqlTask(taskName=BQMS_ISSUE)' 'delta=MillisDelta.loadFromDb'
Image Modified

Step 7: Schedule a cronjob to reach full automation

In order to avoid interference with production, you might want to put it 1st in your private crontab

crontab -e

Code Block
HOST=analytics
MAILTO=atanas@broadinstitute.org
PATH=/bin:/broad/software/free/Linux/redhat_7_x86_64/pkgs/jdk1.8.0_121/bin:$PATH
TIGER_HOME=/home/unix/analytics/TigerETL3
SPARK_HOME=/local/spark-2.3.1-bin-hadoop2.7
RUN=/home/unix/analytics/TigerETL/runEtlAgent2
RUN3=/home/unix/analytics/TigerETL3/runEtlAgent.sh
# +--------- Minute (0-59)                    | Output Dumper: >/dev/null 2>&1
# | +------- Hour (0-23)                      | Multiple Values Use Commas: 3,12,47
# | | +----- Day Of Month (1-31)              | Do every X intervals: */X  -> Example: */15 * * * *  Is every 15 minutes
# | | | +--- Month (1 -12)                    | Aliases: @reboot -> Run once at startup; @hourly -> 0 * * * *;
# | | | | +- Day Of Week (0-6) (Sunday = 0)   | @daily -> 0 0 * * *; @weekly -> 0 0 * * 0; @monthly ->0 0 1 * *;
# | | | | |                                   | @yearly -> 0 0 1 1 *;
# * * * * * COMMAND
#
YOUR-CRONJOB-HERE

Have it running like this for couple of days and then move your cronjob to production crontab.

HAPPY END (smile)

Some thoughts:

  1. So called “JQL-explosion” (splitting given field - say “SampleIDs -“ into items and combining them with the rest of fields for given ticket) seems convenient however it is very wasteful - all non-exploded fields will be duplicated as many times as #samples are found. This could possibly lead to performance problems.

...