首页 > 解决方案 > 如何更改 blazegraph 存储数据的目录?

问题描述

我正在尝试更改 blazegraph 存储其数据的目录。

现在,数据存储在/var/lib/blazegraph/blazegraph.jnl我尝试更改 BLZG_DATA 中/etc/default/blazegraph/usr/bin/blazegraph但数据仍存储在/var/lib/blazegraph/.

我正在运行 ubuntu cosmic 和以下 blazegraph:

buildVersion=2.1.4
gitCommit=738d05f08cffd319233a4bfbb0ec2a858e260f9c

标签: rdfblazegraph

解决方案


在 Linux Debian 上的 Tomcat 中运行 Blazegraph 2.1.5 的解决方案

更改这些文件

./tomcat/webapps/blazegraph/WEB-INF/GraphStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=bigdata.jnl
./tomcat/webapps/blazegraph/WEB-INF/classes/RWStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=bigdata.jnl

./tomcat/webapps/blazegraph/WEB-INF/GraphStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=/your/desired/path/bigdata.jnl
./tomcat/webapps/blazegraph/WEB-INF/classes/RWStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=/your/desired/path/bigdata.jnl

推荐阅读