I'm getting an exception when I tried a small piece of code (my first line of code with Janus in Java) for which I couldn't find any solution
cp janusgraph-cassandra-es-server.properties JanusGraph-configurationmanagement.properties
gremlin-server-configuration.yaml
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphs: {
graph: conf/gremlin-server/janusgraph-cassandra-es-server.properties,
ConfigurationManagementGraph: conf/gremlin-server/JanusGraph-configurationmanagement.properties
}
import org.janusgraph.core.ConfiguredGraphFactory;
Set<String> names = ConfiguredGraphFactory.getGraphNames();
produces the following exception
org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException: Please add a key named "ConfigurationManagementGraph" to the "graphs" property in your YAML file and restart the server to be able to use the functionality of the ConfigurationManagementGraph class.
at org.janusgraph.graphdb.management.ConfigurationManagementGraph.getInstance(ConfigurationManagementGraph.java:97)
at org.janusgraph.core.ConfiguredGraphFactory.getConfigGraphManagementInstance(ConfiguredGraphFactory.java:163)
at org.janusgraph.core.ConfiguredGraphFactory.getGraphNames(ConfiguredGraphFactory.java:119)
if I use the same property file as given in documentation
gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=cassandrathrift
graph.graphname=ConfigurationManagementGraph
storage.hostname=127.0.0.1
I get this exception
1624 [main] ERROR org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager - system_add_keyspace failed for keyspace=ConfigurationManagementGraph
InvalidRequestException(why:Keyspace names must be case-insensitively unique ("ConfigurationManagementGraph" conflicts with "configurationmanagementgraph"))
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result$system_add_keyspace_resultStandardScheme.read(Cassandra.java:44882)
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result$system_add_keyspace_resultStandardScheme.read(Cassandra.java:44860)
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result.read(Cassandra.java:44794)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_keyspace(Cassandra.java:1580)
at org.apache.cassandra.thrift.Cassandra$Client.system_add_keyspace(Cassandra.java:1567)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureKeyspaceExists(CassandraThriftStoreManager.java:500)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureColumnFamilyExists(CassandraThriftStoreManager.java:545)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureColumnFamilyExists(CassandraThriftStoreManager.java:539)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.openDatabase(CassandraThriftStoreManager.java:328)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.openDatabase(CassandraThriftStoreManager.java:67)
at org.janusgraph.diskstorage.keycolumnvalue.KeyColumnValueStoreManager.openDatabase(KeyColumnValueStoreManager.java:43)
at org.janusgraph.diskstorage.Backend.getStandaloneGlobalConfiguration(Backend.java:453)
at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1378)
at org.janusgraph.core.JanusGraphFactory.lambda$open$0(JanusGraphFactory.java:152)
at org.janusgraph.graphdb.management.JanusGraphManager.openGraph(JanusGraphManager.java:210)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:151)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:101)
at org.janusgraph.graphdb.management.JanusGraphManager.lambda$new$0(JanusGraphManager.java:65)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.janusgraph.graphdb.management.JanusGraphManager.<init>(JanusGraphManager.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:110)
at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:89)
at org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:110)
at org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:354)
1629 [main] ERROR org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor - Could not invoke constructor on class org.janusgraph.graphdb.management.JanusGraphManager (defined by the 'graphManager' setting) with one argument of class Settings
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:121)
at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:89)
at org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:110)
at org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:354)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:110)
... 3 more
Caused by: org.janusgraph.core.JanusGraphException: Could not open global configuration
at org.janusgraph.diskstorage.Backend.getStandaloneGlobalConfiguration(Backend.java:455)
at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1378)
at org.janusgraph.core.JanusGraphFactory.lambda$open$0(JanusGraphFactory.java:152)
at org.janusgraph.graphdb.management.JanusGraphManager.openGraph(JanusGraphManager.java:210)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:151)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:101)
at org.janusgraph.graphdb.management.JanusGraphManager.lambda$new$0(JanusGraphManager.java:65)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.janusgraph.graphdb.management.JanusGraphManager.<init>(JanusGraphManager.java:64)
... 8 more
Caused by: org.janusgraph.diskstorage.PermanentBackendException: Permanent failure in storage backend
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureColumnFamilyExists(CassandraThriftStoreManager.java:567)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureColumnFamilyExists(CassandraThriftStoreManager.java:539)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.openDatabase(CassandraThriftStoreManager.java:328)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.openDatabase(CassandraThriftStoreManager.java:67)
at org.janusgraph.diskstorage.keycolumnvalue.KeyColumnValueStoreManager.openDatabase(KeyColumnValueStoreManager.java:43)
at org.janusgraph.diskstorage.Backend.getStandaloneGlobalConfiguration(Backend.java:453)
... 16 more
Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Temporary failure in storage backend
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureKeyspaceExists(CassandraThriftStoreManager.java:512)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureColumnFamilyExists(CassandraThriftStoreManager.java:545)
... 21 more
Caused by: InvalidRequestException(why:Keyspace names must be case-insensitively unique ("ConfigurationManagementGraph" conflicts with "configurationmanagementgraph"))
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result$system_add_keyspace_resultStandardScheme.read(Cassandra.java:44882)
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result$system_add_keyspace_resultStandardScheme.read(Cassandra.java:44860)
at org.apache.cassandra.thrift.Cassandra$system_add_keyspace_result.read(Cassandra.java:44794)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_keyspace(Cassandra.java:1580)
at org.apache.cassandra.thrift.Cassandra$Client.system_add_keyspace(Cassandra.java:1567)
at org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager.ensureKeyspaceExists(CassandraThriftStoreManager.java:500)
... 22 more
@cegprakash — please use GitHub only to report specific bugs or feature requests.
For general questions or open-ended discussion, please use either the Gitter channel or the janusgraph-users@ mailing list: https://github.com/janusgraph/janusgraph/#community .
See also my answers to your questions on Stack Overflow:
@cegprakash — please use GitHub only to report specific bugs or feature requests.
For general questions or open-ended discussion, please use either the Gitter channel or the
janusgraph-users@mailing list: https://github.com/janusgraph/janusgraph/#community .See also my answers to your questions on Stack Overflow:
Hi I have followed your steps but it does not work.. sad
Most helpful comment
@cegprakash — please use GitHub only to report specific bugs or feature requests.
For general questions or open-ended discussion, please use either the Gitter channel or the
janusgraph-users@mailing list: https://github.com/janusgraph/janusgraph/#community .See also my answers to your questions on Stack Overflow: