Versions Compared

Key

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

...

Helpful Admin Commands

Remove

cd ~/code/opt/mapping-service-admin/admin/remover
// DO NOT DO THIS mvn install -PMapRecords -D$rc -Drefset.id=447562003
mvn install -PTerminology -D$rc -Dterminology=ICD10 -Dversion=2016

...

Note: (this should also be able to be run with this: 

Get maintenance window

cd ~/code/opt/mapping-service-admin/admin/remover  
mvn install -PMapMembers -D$rc -Drefset.id=447562003)
cd ~/code/opt/mapping-service-admin/admin/loader
set file = /home/ihtsdo/data/doc/release/20170131/icd10/der2_iisssccRefset_ExtendedMapSnapshot_INT_20170131.txt
perl -ne '@_=split/\t/; print if $_[4] eq "447562003"' $file > /tmp/x.txt
mvn install -PMapRecords -D$rc -Dinput.file=/tmp/x.txt -Dmember.flag=true -Drecord.flag=false

...

a.terminology = b.sourceTerminology and a.terminologyVersion = b.sourceTerminologyVersion;


Compute

cd ~/code/opt/mapping-service-admin/admin/loader
mvn install -PComputeWorkflow -D$rc -Drefset.id=447562003

Release

cd ~/code/opt/mapping-service-admin/admin/release
mvn install -PBeginRelease -D$rc -Drefset.id=447562003 -Dtest.mode.flag=true
mvn install -PRelease -D$rc -Drefset.id=447562003 -Doutput.dir=. -Dtime=20170731 -Dmodule.id=449080006 -Dtest.mode.flag=true
mvn install -PFinishRelease -D$rc -Drefset.id=447562003 (This process currently takes 36 hours. 26 of these hours is in loading the refset members at the end.)
mvn install -PBeginEditingCycle -D$rc -Drefset.id=447562003

...

1.) Get maintenance window. Take server down 
2.) cd ~/code/opt/mapping-service-admin/admin/remover 
3.) mvn install -PTerminology -Drun.config=/home/ihtsdo/config/config.properties -Dterminology=SNOMEDCT -Dversion=latest
4.) cd ~/code/opt/mapping-service-admin/admin/loader
5.) mvn install -PRF2-snapshot -Drun.config=/home/ihtsdo/config/config.properties -Dterminology=SNOMEDCT -Dinput.dir=/home/ihstdo/data/xSnomedCT_InternationalRF2_ALPHA_20170731T120000Z/Snapshot

...