stop oa apps, core, solar
m@melange ~/development/sixth_column/solr-1.1 $ rm solr/customer/data -rf
m@melange ~/development/sixth_column/solr-1.1 $ ./mdm_start_solr.sh
m@melange ~/development/sixth_column/OMSLib/cassandraApi $ ../../apache-cassandra-2.0.6/bin/cqlsh
use osi_oms;
truncate premise;
truncate activejobs;
truncate activecontacts;
truncate activecrewassignments;
make sure you are using a model-specific SystemSettings.json to get the right value for CUSTOMER_XFMR_PREFIX
manual details:
fix up CUSTOMER_XFMR_PREFIX - enable ONLY WHEN RUNNING POWERCO data, otherwise disable it with rename to "__CUSTOMER_XFMR_PREFIX"
cd ~/development/sixth_column/svn/OMS/trunk/oms-core-services-play/conf/startupData
emacs SystemSetting.json
# see id 701 at end of file
# bill also adjusts model export file - no need if using soapui
run_cs.sh [osi|tiny]
cd ~/development/sixth_column/oms-customer-import-java/bin
NOTE that i had to add a bogus space before localhost to keep mediawiki from failing, weird!
REMOVE IT
FOR TINY:
./import cust3 http:// localhost:9101/v1
select count(*) from premise limit 4000000;
count = 42
FOR POWERCO:
./import cust3 http:// localhost:9101/v1
select count(*) from premise limit 4000000;
count = 339850
run_ui.sh (if needed - i dont think you even have to stop it?!)
good to run oa again!
|