...
Create a directory in k8s set up where you want to execute titan to janus graph migration.
e.g. /data/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.
View file name TitanToJanusGraphMigration.groovy height 250 Copy "titan.properties" from SDC-BE pod to /data/migration
kubectl cp sdc/sdc-sdc-be-5fb5657f9c-brw46:/var/lib/jetty/config/catalog-be/titan.properties /data/migration Add below field to "titan.properties"
graph.allow-upgrade=true - 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.
e.g. kubectl cp /data/migration/ sdc/sdc-sdc-cs-5c8b5c888d-gt446:/root Enter inside the cassandra pod
e.g. kubectl -n sdc exec -it sdc-sdc-cs-5c8b5c888d-gt446 bash 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>e.g. ./gremlin.sh -l ERROR -e /root/TitanToJanusGraphMigration.groovy /root/titan.properties - Upgrade SDC-BE, SDC-FE pods with images which includes changes of JanusGraph.
...
Create a directory in docker environment where you want to execute titan to janus graph migration.
e.g. /data/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.
View file name TitanToJanusGraphMigration.groovy height 250 Copy "titan.properties" from SDC-BE docker to /data/migration
e.g. docker cp sdc-BE:/var/lib/jetty/config/catalog-be/titan.properties /data/migration Add below field to "titan.properties"
graph.allow-upgrade=true 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>e.g. ./gremlin.sh -l ERROR -e /data/migration/TitanToJanusGraphMigration.groovy /data/migration/titan.properties - Start SDC-BE, SDC-FE dockers with images which includes changes of JanusGraph.