Loading seed data to neo4j database
Download neo4j graph.db file and extract it.
Before loading seed data, stop neo4j container.
docker stop sunbird_neo4j
Replace the graph.db file in local path: $sunbird_dbs_path/neo4j/data/databases
with the extracted graph.db file.
Start neo4j container.
docker start sunbird_neo4j
Loading seed data to cassandra database
Download cassandra backup file and extract it.
stop cassandra container.
docker stop sunbird_cassandra
Place the extracted cassandra_backup
folder in local path: $sunbird_dbs_path/cassandra/backups
.
Start cassandra container.
docker start sunbird_cassandra
Start cassandra shell by executing following command and type cqlsh
to start cassandra cypher shell.
docker exec -it sunbird_cassandra sh
Load database schema by executing below command in cypher shell.
cqlsh
source ' /mnt/backups/cassandra_backup/db_schema.cql' ;
Press ctrl + z
to get out of cypher shell and stay in cassandra container shell.
Now, run the following commands to load the data into earlier created tables.
sstableloader -d 127.0.0.1 /mnt/backups/cassandra_backup/data/dev_category_store/category_definition_data-fc4c9690c2bc11eb91450f9648eeaf0a
sstableloader -d 127.0.0.1 /mnt/backups/cassandra_backup/data/dev_hierarchy_store/content_hierarchy-ea2f4a20c2bc11eb91450f9648eeaf0a
sstableloader -d 127.0.0.1 /mnt/backups/cassandra_backup/data/sunbirddev_dialcode_store/system_config-1970bbe0c2c011eb91450f9648eeaf0a