Stage 8 - Upgrade JanusGraph (0.3.1 -> 0.5.3)
Objective
Upgrade JanusGraph from 0.3.X to 0.5.3.
Prerequisites
Ensure previous stages have been completed without error.
Make sure that the JanusGraph service is stopped.
Steps
If you are on Linux, and connected to the Internet, the below process is automated and can be run via the syndeia-cloud-3.5_janusgraph_pre-setup.bash script included in the syndeia-cloud-3.5. build_version _janusgraph_setup.zip media
Extract and install JanusGraph
Ensure you have Janusgraph 0.5.3 (Release 0.5.3 · JanusGraph/janusgraph ) downloaded to your home directory.
wget https://github.com/JanusGraph/janusgraph/releases/download/v0.5.3/janusgraph-full-0.5.3.zipUnzip the JanusGraph package to
/opt.sudo unzip janusgraph-full-0.5.3.zip -d /opt/Take ownership of the extracted folder.
sudo chown -R janusgraph:janusgraph /opt/janusgraph-full-0.5.3Create a renamed copy of the file
/opt/janusgraph-full-0.5.3/conf/janusgraph-cql-configurationgraph.propertiesasjanusgraph-cql-configurationgraph-syndeia.properties.sudo -u janusgraph cp /opt/janusgraph-full-0.5.3/conf/janusgraph-cql-configurationgraph.properties /opt/janusgraph-full-0.5.3/conf/janusgraph-cql-configurationgraph-syndeia.propertiesUpdate the following properties in
/opt/janusgraph-full-0.5.3/conf/janusgraph-cql-configurationgraph-syndeia.propertiesfile.graph.graphname=syndeia_cloud_graph_config storage.hostname=<your_Cassandra_host>Add the following properties.
storage.username=syndeia_admin storage.password=<password_specified> graph.allow-upgrade=true
If you installed Elasticsearch on the same machine, add the following properties to use Elasticsearch for search indexing.
index.search.backend=elasticsearch index.search.hostname=localhostCreate a renamed copy of the file
/opt/janusgraph-full-0.5.3/conf/gremlin-server/gremlin-server-configuration.yamlasgremlin-server-configuration-syndeia.yaml.sudo -u janusgraph cp /opt/janusgraph-full-0.5.3/conf/gremlin-server/gremlin-server-configuration.yaml /opt/janusgraph-full-0.5.3/conf/gremlin-server/gremlin-server-configuration-syndeia.yamlUpdate the following property in
/opt/janusgraph-full-0.5.3/conf/gremlin-server/gremlin-server-configuration-syndeia.yamlfile.ConfigurationManagementGraph: conf/janusgraph-cql-configurationgraph-syndeia.properties
Navigate to the new Janusgraph installation folder.
cd /optUpdate the symlink to point to the new installation.
sudo ln -vfns janusgraph-full-0.5.3 janusgraph-currentTake ownership of the extracted folder & symlink.
sudo chown -R janusgraph:janusgraph /opt/janusgraph-current sudo chown -R janusgraph:janusgraph /opt/janusgraph-full-0.5.3Start the JanusGraph service.
sudo systemctl start janusgraphVerify that the JanusGraph service is up (see Verification section below).
Open the
/opt/janusgraph-full-0.5.3/conf/janusgraph-cql-configurationgraph-syndeia.propertiesfile, look for the following entry and delete it.graph.allow-upgrade=trueRestart the JanusGraph service.
sudo systemctl restart janusgraph
Verification
To check the status of the JanusGraph service, use the following command.
sudo systemctl status janusgraphYou can verify that it started if, Active: active (running) shows up in the output.