forked from cernopendata/data-curation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
57 lines (39 loc) · 2.08 KB
/
run.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# 1) create EOS file indexes:
#
# simko@aiadm> export EOS_MGM_URL=root://eospublic.cern.ch
# simko@aiadm> python ./code/create_eos_file_indexes.py
# simko@laptop> rsync -avz [email protected]:private/project/opendata/cms-2012-open-data-release/simulated-data/inputs/eos-file-indexes/ ./inputs/eos-file-indexes
# 2) prepare DAS JSON store creation script:
# ./code/create-create-das-json-store.sh > ./outputs/create-das-json-store.sh
# 3) run it on AIADM:
# tibor@laptop> ./code/create-create-das-json-store.sh > ./outputs/create-das-json-store.sh
# cernapcms@lxplus> mkdir tibor
# tibor@laptop> scp outputs/create-das-json-store.sh [email protected]:tibor
# cernapcms@lxplus> cd tibor
# cernapcms@lxplus> voms-proxy-init --voms cms
# cernapcms@lxplus> ./create-das-json-store.sh
# tibor@laptop> mkdir -p ./inputs/das-json-store
# tibor@laptop> scp -r [email protected]:tibor/{config,dataset,parent} ./inputs/das-json-store
# 4) create conffile download script:
#python ./code/create-create-config-store.py > ./outputs/create-config-store.sh
# 5) run conffile download script:
# tibor@laptop> ./code/create-create-config-store.sh > ./outputs/create-config-store.sh
# cernapcms@lxplus> mkdir tibor
# tibor@laptop> scp outputs/create-config-store.sh [email protected]:tibor
# cernapcms@lxplus> cd tibor
# cernapcms@lxplus> voms-proxy-init --voms cms
# cernapcms@lxplus> source ./create-config-store.sh
# tibor@laptop> mkdir -p ./inputs/config-store
# tibor@laptop> scp -r [email protected]:tibor/config-store/* ./inputs/config-store
# *) allocate recIDs
# python ./code/allocate_recids.py
# *) create config file records
python ./code/create_configfile_records.py > ./outputs/cms-configuration-files-2012.json
# *) create MC 2012 records
python ./code/create_dataset_records.py > ./outputs/cms-simulated-datasets-2012.json
# *) check the validity of resulting JSON files:
#jsonlint -q ./outputs/*.json
## *) now you can copy them to COD3 fixtures working directory
#
# \cp outputs/*.json /home/simko/private/src/opendata.cern.ch/cernopendata/modules/fixtures/data/records