plan.sh 868 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

SITE=hopper
OUTPUT_SITE=hopper

if [ $# -ne 1 ]; then
    echo "Usage: $0 WORKFLOW_DIR"
    exit 1
fi

WORKFLOW_DIR=$1

if [ -d "$WORKFLOW_DIR" ]; then
    WORKFLOW_DIR=$(cd $WORKFLOW_DIR && pwd)
else
    echo "No such directory: $WORKFLOW_DIR"
    exit 1
fi

20
21
source $WORKFLOW_DIR/env.sh

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DIR=$(cd $(dirname $0) && pwd)
SUBMIT_DIR=$WORKFLOW_DIR/submit
DAX=$WORKFLOW_DIR/dax.xml
TC=$WORKFLOW_DIR/tc.txt
RC=$WORKFLOW_DIR/rc.txt
SC=$DIR/sites.xml
PP=$DIR/pegasus.properties

echo "Planning workflow..."
pegasus-plan \
    -Dpegasus.catalog.site.file=$SC \
    -Dpegasus.catalog.replica=File \
    -Dpegasus.catalog.replica.file=$RC \
    -Dpegasus.catalog.transformation.file=$TC \
    --conf $PP \
    --dax $DAX \
    --dir $SUBMIT_DIR \
39
    --relative-dir $CASENAME \
40
41
42
43
44
    --sites $SITE \
    --output-site $OUTPUT_SITE \
    --cleanup none \
    --force