forked from emcgrady/cms_data_pop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunall.sh
executable file
·24 lines (18 loc) · 1.32 KB
/
runall.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
#!/usr/bin/env bash
echo $HOSTNAME|grep -q 'ithdp-client' || return
source /cvmfs/sft.cern.ch/lcg/etc/hadoop-confext/hadoop-setconf.sh analytix 3.2 spark3
dates="2020/*/*"
outprefix="root://eosuser/eos/user/a/aehnis/"
hdfs dfs -rm -R hdfs://analytix/user/$USER/working_set_cmssw
spark-submit generate_working_set.py --source cmssw --out hdfs://analytix/user/$USER/working_set_cmssw --dates $dates
hdfs dfs -cp hdfs://analytix/user/$USER/working_set_cmssw $outprefix
hdfs dfs -rm -R hdfs://analytix/user/$USER/working_set_fwjr
spark-submit generate_working_set.py --source fwjr --out hdfs://analytix/user/$USER/working_set_fwjr --dates $dates
hdfs dfs -cp hdfs://analytix/user/$USER/working_set_fwjr $outprefix
hdfs dfs -rm -R hdfs://analytix/user/$USER/working_set_classads
spark-submit generate_working_set.py --source classads --out hdfs://analytix/user/$USER/working_set_classads --dates $dates
hdfs dfs -cp hdfs://analytix/user/$USER/working_set_classads $outprefix
hdfs dfs -rm -R hdfs://analytix/user/$USER/working_set_xrootd
spark-submit generate_working_set.py --source xrootd --out hdfs://analytix/user/$USER/working_set_xrootd --dates $dates
hdfs dfs -cp hdfs://analytix/user/$USER/working_set_xrootd $outprefix
hdfs dfs -cp hdfs://analytix/project/awg/cms/CMS_DBS3_PROD_GLOBAL/current/BLOCKS/part-m-00000 ${outprefix}dbs_blocks.csv