Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This is taken wholesale from the script that generates our AWS Marketplace build and has not been tested on standalone installs.

Download the 3 attachments to this page onto your platform (preload_data_enron.tgz, preload_data_wits.tgz, preload_data.tgz) to the "/mnt" directory. 

Run the following bash script:

# 1] Upload the database
cd /mnt
tar xzvf preload_data.tgz
mongorestore saved/
# 1.5] Tidy up the uploaded database
#TODO need to remove all users from the DB, these some from the AWS build and do not exist here
rm -rf saved/
# 2] Index the uploaded data
java -jar /opt/infinite-home/lib/infinit.e.mongo-indexer.jar --doc --rebuild --query '{}' --limit 2000
java -jar /opt/infinite-home/lib/infinit.e.mongo-indexer.jar --assoc --rebuild --query '{}'
java -jar /opt/infinite-home/lib/infinit.e.mongo-indexer.jar --entity --rebuild --query '{}'
# 3] Put the files in place (not critical, but otherwise can't view the files from the GUI and will get source errors)
mkdir -p /mnt/infinite_data/enron
cd /mnt/infinite_data/enron
tar xzvf /mnt/preload_data_enron.tgz
cd /
tar xzvf /mnt/preload_data_wits.tgz
  • No labels