Deleting all your data (DEV TESTING ONLY!) - Orodan/Hilary GitHub Wiki

If you've been working on something for a while, it's possible you might want to start fresh. In general, the process is to:

  1. Shut down your rabbitmq, cassandra, elasticsearch, redis, hilary servers

  2. Clear out RabbitMQ to ensure you don't have tasks hanging around:

    $ rabbitmqctl stop_app
    $ rabbitmqctl reset
    $ rabbitmqctl start_app
    
  3. Delete any persistent Redis files (dump.rdb) and flush Redis using the redis-cli flushall command

  4. Delete the elasticsearch index on the file-system from the elasticsearch data directory

  5. Delete the user-uploaded files, by default, these are on the same folder level als 3akai-ux or Hilary

  6. Delete the 'oae' index from the Cassandra data directory, delete the cassandra commitlog file and everything inside the saved_caches directory as well $ ./bin/cqlsh cassandra> drop keyspace "oae"; $ rm -rf /var/lib/cassandra/*

  7. Start rabbitmq, cassandra, elasticsearch and redis (not Hilary, wait for these components to become available again)

  8. Start a single Hilary server so that it may recreate the Cassandra column families, rabbitmq queues, ElasticSearch index etc... without contention with other Hilary instances

  9. Start the rest of your Hilary servers.