unable to set log.user.ttl config

18 views
Skip to first unread message

Guruprasad DV

unread,
Sep 6, 2018, 12:41:06 PM9/6/18
to JanusGraph users
Hi,

When setting the ttl on transaction log in Janusgraph, we are getting the following error:

Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.log.ttl
  at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
  at org.janusgraph.diskstorage.configuration.ConfigOption.get(ConfigOption.java:230)
  at org.janusgraph.diskstorage.configuration.BasicConfiguration.get(BasicConfiguration.java:69)
  at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1459)
  at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164)
  at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133)
  at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:80)
  at com.gs.appbank.sre.common.graph.impl.TitanGraphImpl.newGraph(TitanGraphImpl.java:693)
  at com.gs.appbank.sre.common.graph.impl.AbstractGraph.getGraph(AbstractGraph.java:117)
  at com.gs.appbank.sre.common.graph.impl.AbstractGraph.init(AbstractGraph.java:84)
  at com.gs.appbank.sre.models.GraphContext.lambda$getGraph$38(GraphContext.java:49)
  at com.gs.appbank.sre.models.GraphContext$$Lambda$1/1715998167.apply(Unknown Source)
  at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
  at com.gs.appbank.sre.models.GraphContext.getGraph(GraphContext.java:46)
  at com.gs.appbank.sre.common.graph.schema.SchemaLoader.main(SchemaLoader.java:29)


On debugging, we found that when the graph is opened, local configs (that are specified in the properties file) are compared with configs that the database is already configured with. 
Janusgraph is trying to look for this property in the KCVS store and failing to open the graph. 

I understand that root.log.ttl is a GLOBAL configuration and am trying to set the value using the management API. But i'm not able to even open the graph to get a handle to the management object. 

Could you please help? Thanks in advance!

Thanks,
Guru.

Guruprasad DV

unread,
Sep 6, 2018, 12:42:02 PM9/6/18
to JanusGraph users
Forgot to mention that we are using Cassandra as the backing store.

Thanks,
Guru.
Reply all
Reply to author
Forward
0 new messages