JanusGraph

J

JanusGraph

JanusGraph - Distributed, open source, massively scalable graph database.

Join

List property ordering - mixed index not used as expected

Hi All, Using JanusGraph 1.1.0, it seems that mixed index is not used when order().by() step is used for a property with LIST cardinality. I have tried both with Lucene and Elasticsearch index backends and with none of them the index was used for sorting. For single cardinality submissionDate4 property, it seems that mixed index is utilized for sorting as seen on single property - index used for ordering.png enclosed....
No description

Unable to use mounted configuration

As per documentation https://docs.janusgraph.org/operations/container/#mounted-configuration, I need to provide ro to volume parameter for mounting custom configurations. However, I get below error in container Attaching to wfx-janusgraph-1 wfx-janusgraph-1 | cp: cannot create regular file '/etc/opt/janusgraph/janusgraph.properties': Read-only file system...

ConfiguredGraphFactory works on versions<=0.6.4 but does not work with version>=1.0.0

Hi JanusGraph Folks. I've been tinkering with the stack and JanusGraph and wanted to use ConfiguredGraphFactory in my project. What I came to observe is that JanusGraph's ConfiguredGraphFactory works with the versions less than 0.6.4. Since the major upgrade occured I cannot get it to work. To be more precise I consistently get the error "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."...

The traversal source [g] for alias [g] is not configured on the server.

I am running a janusgraph container locally and trying to execute graph traversal commands via my java application code. (I have verified the janusgraph container connection with backend storage which is a cassandra container) However, I get the error mentioned in the title. I have explicitly set alias in relevant plugin in janusgraph-server.yaml ( org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: { MAPPING_ALIAS: g=graph...

Guava com.google.common.base.Preconditions getting java.lang.IllegalArgumentException: null

I am getting the following error java.lang.IllegalArgumentException: null at com.google.common.base.Preconditions.checkArgument(Preconditions.java:129) ~[janusgraph-driver-1.1.0-shaded.jar:?] ...

Cross-graph querying with Janusgraph

Hello! I am using Janusgraph (embedded), over a ScyllaDB backend, where all my graphs are currently stored in a single keyspace. Is it possible to split these graphs and store them across multiple different keyspaces, but still query across them? ie, a single query may traverse multiple graphs stored in multiple keyspaces....

How to disable embedded gremlin server in Janusgraph docker image?

I would like to host a janusgraph instance with a cassandra storage backend, and have a separate gremlin server running (so I can use it for multiple different graph databases and/or other janusgraph instances). From what I can tell it looks like the standard janusgraph image starts up an embedded/packaged gremlin server by default when I spin it up on my kubernetes cluster. Is it possible to disable this?

CQL query timeout issues

I am trying to create an edge between two vertices, where one of the vertex contains more than 450K edges. But everytime the operation fails with Query Timeout error as shown below: ```Caused by: com.datastax.oss.driver.api.core.DriverTimeoutException: Query timed out after PT12S at com.datastax.oss.driver.internal.core.cql.CqlRequestHandler.lambda$scheduleTimeout$1(CqlRequestHandler.java:207)...

Janusgraph + Solr Cloud + Zookeeper

I am trying to configure Janusgraph 1.1 using Solr 8.11.4 and Zookeeper, but i ran to the same error as mentioned here https://issues.apache.org/jira/browse/ATLAS-4940 , although i see that 8.11.4 is compatible with Janusgraph and while building Janusgraph from Repository i see that also the tests can run with solr. So what is the workaround to solve it?

Janus support of openCypher or GQL

Is this in the roadmap somewhere?

Gremlin console ConfiguredGraphFactory issue with 1.1.0 (working fine on 1.0.0)

Also asked here: https://lists.lfaidata.foundation/g/janusgraph-users/topic/gremlin_console/111118784 Hi All, I am running JanusGraph in container with ConfiguredGraphFactory configured. After upgrading to 1.1.0, ConfiguredGraphFactory.getGraphNames() does not work any more when Gremlin console is used from the container....
Solution:
Thanks @Clément de Groc and @Wleong for the response. For now, we can live with using :> ConfiguredGraphFactory.getGraphNames(). Thanks for the hints.

Janusgraph-Cassandra Storage Backend issue and table clarification

Hello!! 1) I would like to know how the janusgraph stores the data in cassandra as storage backend what's the algo or class used to achieve this process (Java File) 2) How the data is actually stored in edgestore, graphindex tables in cassandra (the concept behind it or on what basis because i am not able to visibily see how the values or stored) it will be helpful if you explain it 3) the data are stored in blob is there any way to retrieve the data in fast manner when bulk data set (in lakhs) are stored in the cassandra-janusgraph database through java connectivity?...

Graph does not support the provided graph computer: SparkGraphComputer

Hi, I'm trying to instantiate a janusgraph server that correctly exports a graph.traversal().withComputer(SparkGraphComputer) As I was unable to find specific documentation on this, I have tried following this: https://stackoverflow.com/questions/45323666/unable-to-use-sparkgraphcomputer-with-tinkerpop-3-2-3-and-janusgraph-0-1-1-in-re ...
Solution:
OK, finally I was able to figure out the issue on my own. To make things work, since JanusGraphFactory fails to create a graph, I replaced
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
with...

Embedded graph with Scylla backend in Java

I'm trying to create an embedded graph in Java (using 11) connected to a Scylla cluster. I stood up the Scylla cluster with Docker using the Scylla University instructions linked to in the Janusgraph docs (https://university.scylladb.com/courses/the-mutant-monitoring-system-training-course/lessons/a-graph-data-system-powered-by-scylladb-and-janusgraph/). The cluster and the Janusgraph server is running just fine. I can connect to the server from a gremlin console and run scripts without issue. However, when I try to create an embedded graph in Java, I get errors indicating the connection cannot be made. To create the graph, I'm using JanusGraphFactory.build().set("storage.backend","cql").set("storage.hostname","172.18.0.3").open() The hostname IP is the IP for one of the Scylla nodes. The primary exception seems to be AllNodesFailedException: Could not reach any contact point, make sure you've provided a valid address....
Solution:
Update: I figured out what I was doing wrong. I needed to bind the port in the docker run command. Adding -p 9042:9042 to the docker command worked.

Wrote claim for id block threshold exception

I am using custom string vertex ids and recently found that below exceptions are coming intermittently:
Wrote claim for id block [9280001, 9360001] in PT1.2S => too slow, threshold is: PT0.3S
Wrote claim for id block [9280001, 9360001] in PT1.2S => too slow, threshold is: PT0.3S
I am using all default configurations for "ids" attribute. ...

Running OLAP queries on Janusgraph outside the Gremlin Console (from Java and G.V())

Hi, I'm able to run OLAP queries against my graph DB from the Gremlin Console, by following the directions provided here: https://docs.janusgraph.org/advanced-topics/hadoop/ However, I would like to also run OLAP queries without using the console, from an embedded Janusgraph Java application as well as from G.V(). In G.V(), I tried this while selecting Groovy Mode for query submission:...
Solution:
Thanks, @gdotv. It would be great if the JanusGraph folks can follow up on how to expse a GraphTraversalSource. In the meantime, I've been able to make progress on the question about using Java, by following this old-ish post by @Bo : https://li-boxuan.medium.com/spark-on-janusgraph-tinkerpop-a-pagerank-example-43950189b159 ...

Support for saving arrays of vectors

Hi, I know that JausGraph by default does not support read / write of arrays or vectors of floating point numbers. Is there a reason why?

Why queries are slow when more than one mixed index in query

ConfiguredGraphFactory.open("tenant51").traversal().V().has('_t', 'infra:container').has('_it', gt(123)).limit(100) is taking 400ms while ConfiguredGraphFactory.open("tenant51").traversal().V().has('_it', gt(123)).limit(100) or ConfiguredGraphFactory.open("tenant51").traversal().V().has('t', 'infra:container').limit(100) ...
No description

Index Creation Help

I need some help understanding the difference between Graph Index, Composite Index, and Vertex Centrix Index, and how to create them. I am currently working in Python but I am unsure on how to utilize these three different types of indices to speed up my queries, any suggestions/explanations would be greatly appreciated Looking at this page from a previous thread that I had created here (https://docs.janusgraph.org/schema/index-management/index-performance/#composite-index) I wasn't too sure where to execute some of the commands listed on the website. Is this going to work with Python?...

Transaction Recovery not working as expected

Hi everyone. I'm following the steps in the Transaction Failure section here Failure & Recovery - JanusGraph for handling when persistence to indexing backends fail. I've enabled the tx write-ahead log and have tried setting up the recovery process. Based on the logs, it seems that the process is initializing properly but I don't see much after that and I don't believe indexing is being retried based on queries using this index. I also see that getStatistics returns 0,0. I'm wondering if anyone had any insight into what's going on here/what I might be missing? We're using cassandra as our backend storage and lucene for indexing at the moment. Thank you!...
Next