-
Notifications
You must be signed in to change notification settings - Fork 1
/
plan.sh
executable file
·42 lines (35 loc) · 838 Bytes
/
plan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/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
DIR=$(cd $(dirname $0) && pwd)
INPUT_DIR=$DIR/inputs
SUBMIT_DIR=$WORKFLOW_DIR/submit
DAX=$WORKFLOW_DIR/dax.xml
TC=$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 \
--input-dir $INPUT_DIR \
--sites $SITE \
--output-site $OUTPUT_SITE \
--cleanup leaf \