Titan to JanusGraph Migration
Instructions for K8s set up
Create a directory in k8s set up where you want to execute titan to janus graph migration.
Download JanusGraph gremlin in-built package from URL at /data/migration. https://github.com/JanusGraph/janusgraph/releases/download/v0.3.1/janusgraph-0.3.1-hadoop2.zip
Copy "TitanToJanusGraphMigration.groovy" script to /data/migration. Script location is : \asdctool\src\main\java\org\openecomp\sdc\asdctool\impl. Also attached script.
Copy "titan.properties" from SDC-BE pod to /data/migration
Add below field to "titan.properties"
Take backup of entire sdc keyspaces in cassandra.
All users should be blocked from using system
Copy "janusgraph-0.3.1-hadoop2.zip" , "TitanToJanusGraphMigration.groovy" , "titan.properties" to cassandra pod.
Enter inside the cassandra pod
Execute migration script
Navigate to /root and unzip"janusgraph-0.3.1-hadoop2.zip" .
Navigate to bin folder and run below command.
Command : ./gremlin.sh -l <LOG_LEVEL> -e <Path_To_migration_Script_File> <Path_To_Properties_File>Upgrade SDC-BE, SDC-FE pods with images which includes changes of JanusGraph.
===========================================================================================
Instructions for docker environment
Create a directory in docker environment where you want to execute titan to janus graph migration.
Download JanusGraph gremlin in-built package from URL at /data/migration and unzip it. https://github.com/JanusGraph/janusgraph/releases/download/v0.3.1/janusgraph-0.3.1-hadoop2.zip
Copy "TitanToJanusGraphMigration.groovy" script to /data/migration. Script location is : \asdctool\src\main\java\org\openecomp\sdc\asdctool\impl. Also attached script.
Copy "titan.properties" from SDC-BE docker to /data/migration
Add below field to "titan.properties"
Take backup of entire sdc keyspaces in cassandra.
Stop and remove SDC-BE , SDC-FE dockers.
Execute migration script
Navigate to "janusgraph-0.3.1-hadoop2/bin" folder and run below command.
Command : ./gremlin.sh -l <LOG_LEVEL> -e <Path_To_migration_Script_File> <Path_To_Properties_File>Start SDC-BE, SDC-FE dockers with images which includes changes of JanusGraph.