JanusGraph

J

JanusGraph

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

Join

Decoding graphindex values for debugging purpose

I need a help here to be able to decode graphindex table values, I see that it has three columns "key, column1, value", where PRIMARY KEY(key, column1) why column1 is kept as part of the key? Is there any documentation to understand this design? ...

Unable to use text predicates like 'textContains' in gremlin python

I know that it's already mentioned in the janusgraph documentation that these predicates are not supported by gremlin python because they aren't supported by tinkergraph either. I saw in this thread: https://discord.com/channels/981533699378135051/1176188416078139503 that we should write our own serializer and if it's the only way to get it working or is there any alternative...
Solution:
To use JanusGraph-specific predicates, you would need to swap gremlin-python with janusgraph-python I believe: https://github.com/JanusGraph/janusgraph-python#text-predicates Can you give this a try?...

Trying to connect to JanusGraph server/Cassandra with Kotlin client

I'm new to JanusGraph and attempting to connect to a remote server from a Kotlin client. I have created two Docker containers and everything looks good from the logs of JanusGraph:
docker run -d -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 -e CASSANDRA_START_RPC=true cassandra:4.0.6
docker run -d -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 -e CASSANDRA_START_RPC=true cassandra:4.0.6
```...

Best way to migrate JanusGraph data into another Janusgraph instance

Hi team, We have a usecase where we have to migrate the data between two JanusGraph instances. And we also planning to upgrade them as well. So currently we are using 0.6.4, and wanted to move the data into a new JG instance with version 1.0.0. The data size is around 4-7TB. What is the best way to do this? Thank you in advance....

Unable to run two instances of janusgraph using scylla as the storage backend in docker

I am trying to setup two different instances of janusgraph with scylla as the backend but I am not able to get it working.

Permission denied with (almost) default docker-compose.yml

When starting the JanusGraph container I get an "Operation not permitted" error specifically for the janusgraph-default-data (named) volume (the directory for BerkleyDB persistence). My docker-compose.yml file is as follows: ``` services: janusgraph: image: janusgraph/janusgraph:latest...

Metrics around cache usage

embedded janusgraph (java) - 0.6.3 storage - cassandra index - elasticsearch I enabled metrics and am collecting them using a custom reporter. Just wanted to know, are there any metrics for cache size and/or cache evictions ? The only ones I see are misses and retrievals...

Need advice on setting up janusgraph as a microservice

I am trying to build a recommendation system using janusgraph. I already have setup one janusgraph instance with an index backend for just the product and its related entities. Now, I need to add the users to the mix as well. But, I am confused as to whether introduce the User vertices in the product graph instance or should make a separate graph altogether. The reason for wanting a new instance for the users is that, there is a community feature that is included as well where creating personalities based on that user graph will becomes crucial....

What is the latest version of Cassandra is supported by 1.1.0-SNAPSHOT?

I am trying to run the latest SHANPSHOT version if JanusGraph against a Cassandra backend? The Cassandra DB I have running in a container is v5. What is the latest supported? I get the following error on the server startup:...

Syncing data between MongoDB and Janusgraph

My primary data source is MongoDB where collections are already. I need a way to sync the data from MongoDB to Jansugraph. The manual way of doing this is using MongoDB oplogs but I would like to know if there are any other better options before I get into that....

Indexes are not being used even after enabling

I have setup one composite index, one mixed index and one relation index. Although all of them have the 'ENABLED' status, the queries are still doing a full scan. I have attached the schema. Here is the query that I am trying to execute: ```gremlin> g.V().has('_id', '66b0dc9f2bd5e4709894fc29').profile()...
Solution:
Your index byIdTypeAndName includes 3 property keys: _id, type, and name. In that case, you also have to use all 3 property keys in your traversal for the index to work

How to delete static vertex link to another vertex (not static)?

Hello, in the same query i create a static vertex and an edge linked to another vertex not static. When i try to delete static vertex and its related edge in the same query, i get an exception, how can i do it ?...

Sack with List (Split and Merge operations)

Hi all, I am trying to get the following usage of sack working (with JanusGraph) and would appreciate a pointer in the right direction. I have broken the query down to the following, because I want to get the sack working at first. g.withSack([] as Set){set-> set.clone()}{setA,setB -> setA.appendAll(setB); setA}. V() .has('name', 'TS')...

Edge Index stuck at Installed

I have a Janusgraph instance running 1.0.0 with scylladb storage and Elastic indexing. I am trying to follow the example for creating an index on one of my edges: ``` graph.tx().rollback() //Never create new indexes while a transaction is active mgmt = graph.openManagement() time = mgmt.getPropertyKey('time')...

Speeding up Queries Made to JanusGraph

Hi, I am working with Janusgraph and my query is taking a while to execute (around 2.8 seconds), but I would like it to be faster. I read that I should create a composite index to improve speed and performance or something of that sort, but I am unfamiliar with how to do that in Python. Here is my query: g.V().has("person", "name", "Bob").outE("knows").has("weight", P.gte(0.5)).inV().values("name").toList() What my query does is it finds all the nodes that Bob has relationship "knows" with, as long as the weight of the edge to those nodes are >=0.5. Bob has around ~600 nodes that it's connected to with the "knows" relationship. It's fairly slow and takes 2.5-2.8 secs to complete....

Implement new storage backend using Tablestore

Hello, thank you for allowing me to join. This is my first post so apologize if I post my question in the wrong channel. So, I am planning to setup a new storage backend using Tablestore from AlibabaCloud https://www.alibabacloud.com/help/en/tablestore/tablestore-hbase-client, is there a doc on how to get started to integrate a new storage backend in Janusgraph? Thanks in advance...

Is there a way to connect janusgraph to an existing opensearch instance as the index backend?

I have an opensearch instance running already which I want to also use as the index backend for janusgraph.
janusgraph.index.search.backend: elasticsearch
janusgraph.index.search.hostname: <my-opensearch-hostname>:9200
janusgraph.index.search.backend: elasticsearch
janusgraph.index.search.hostname: <my-opensearch-hostname>:9200
...

Janusgraph Servers start throwing Exceptions when load increases

We have 10 instances of Janusgraph servers with 1 CPU each and 10GB of memory limit. It works fine when the number of requests are not much, but when we increase the request load, every instance of server starts throwing "Connection reset by peer" error. Previously we were facing idle connection closing issue, for which we added below configuration in our servers to resolve: evaluationTimeout: 0 idleConnectionTimeout: 0...
No description

Granular configuration options for such as JANUSGRAPH_RELATION_DELIMITER on driver

Hi folks, I'm curious about the possibility to make configuration options such as JANUSGRAPH_RELATION_DELIMITER more granular at the driver level. I know it can currently be set as an environment variable, but I'm wondering if there's thoughts of making this configurable on a per DriverRemoteConnection/Cluster basis client-side. The reason I'm asking is to cater for potential use cases where users on G.V() might need to connect to multiple janusgraph databases with disparate setups. Is that something reasonable/achievable as a potential new feature?...
Solution:
It’s unfortunately not viable, because driver package has no dependencies on config (core) package

Schema creation with groovy script does not work on inmemory setup

Hello, all. We are facing an issue while trying to create a schema by executing a groovy script with an inmemory setup. Below are the steps to reproduce: Create container via docker compose -f docker-compose.yml up -d (see attachments). Use the schema.groovy (see attachments) file to instantiate graph. In order to do this, we must:...
Next