Questions tagged [gremlin-server]

Gremlin Server is a component of Apache TinkerPop that allows for the remote execution of Gremlin-based traversals.

516 questions
2
votes
1 answer

Transactions with Gremlin-Server and JanusGraph

I need some help understanding transactions for gremlin-server and janusgraph. Checking the capabilities of a Graph instance via features for gremlin-server: gremlin> :remote connect tinkerpop.server conf/gremlin-server.yaml ==>Configured…
norym
  • 602
  • 2
  • 8
  • 18
2
votes
1 answer

Janusgraph doesn't allow to set vertex Id even after setting this property `graph.set-vertex-id=true`

I'm running janusgraph server backed by Cassandra. It doesn't allow me to use custom vertex ids. I do see the following log when the janusgraph gremlin server is starting. Local setting graph.set-vertex-id=true (Type: FIXED) is overridden by…
Abhiram
  • 362
  • 1
  • 2
  • 14
2
votes
1 answer

Connection refused when connecting to JanusGraph using gremlin-go

I fail to connect to JanusGraph via gremlin-go - connection is refused. According to gremlin-go documentation, it allows to connect to any graph database that supports TinkerPop3, e.g. JanusGraph, Neo4J etc.. Starting JanusGraph: docker run --name…
norym
  • 602
  • 2
  • 8
  • 18
2
votes
2 answers

cassandra Backup from one node to another node

I'm new to cassandra and gremlin.i am using gremlin to enter and retrive the data from cassandra .i want to take a bakup and restore it on new node.i took a snapshot using nodetool.i am also using elasticsearch for indexing.please help me with some…
2
votes
2 answers

Gremlin: sorting nodes by weights provided by the client

Hello dear gremlin jedi, I have a bunch of nodes with different labels in my graph: g.addV("book").property(:genre, "horror").as("b1") .addV("book").property(:genre, "biography").as("b2") .addV("book").property(:genre, "sci-fi").as("b3") …
zhulik
  • 133
  • 4
2
votes
1 answer

Neptune - RuntimeError: Connection was already closed in pythongremlin

I keep getting the following error even after implementing backoff. connection -> db.py import os import logging import sys from gremlin_python.driver import serializer from gremlin_python.driver.protocol import GremlinServerError from…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
2
votes
0 answers

Unable to configure muiltiple graphs on Janusgraph

Trying to set Janusgraph Docker with Cassandra and ES as backend. When starting with following gremlin-server.yaml configuration it comes up properly and data gets saved in (janusgraph) tables in cassandra. `host: 0.0.0.0` `port: 8182` …
atul ahire
  • 127
  • 9
2
votes
1 answer

How to see the stored data of Cassandra db for janusgraph database by cqlsh

I am new to janusgraph as well as to janusgraph. Now I am able to connect janusgraph with cassandra as backend storage and solr and index storage Currently I am starting gremlin server by the command - sh gremlin-server.sh…
2
votes
1 answer

Edge with id already exists - Gremlin

I am using the following to upsert an edge using Gremlin. I am following the recipe as mentioned here. This is the code I am using. The code runs in a lambda which talks to a cluster hosted in Amazon Neptune public void createEdge(final String…
CHID
  • 1,625
  • 4
  • 24
  • 43
2
votes
1 answer

Gremlin Value Map With Array of Edges

I am trying to query a vertex with Node Gremlin and AWS Neptune for its properties and get all vertices connected to it by an 'out' edge and all of their properties as well in a single output. For instance, if I have a 'Baker' vertex with an edge…
2
votes
1 answer

Janusgraph(GremlinServer) Import improve performance

I'm trying to import graph data of 1GB (consists of ~100k vertices, 3.6 million edges) which is gryo format. I tried to import through gremlin-client, I'm getting the following…
chikku
  • 863
  • 1
  • 7
  • 19
2
votes
2 answers

Gremlin: OLAP vs dividing query

I have a query (link below) I must execute once per day or once per week in my application to find groups of connected users. In the query I check all possible groups for each user of the application (not all users are evaluated but could be a lot).…
fermmm
  • 1,078
  • 1
  • 9
  • 17
2
votes
1 answer

Mutation Listener Event Strategy with remote JanusGraph is throwing serialization exception

I'd like to listen to mutations on a remote JanusGraph and I'm unable to figure out the correct setup to make it work. JanusGraph stack: JanusGraph docker image **0.5.2 (which is using Apache TinkerPop Gremlin 3.4.6) with cql-es…
NejcT
  • 147
  • 2
  • 6
2
votes
1 answer

Gremlin: select().count() always returns 1 when called inside choose()

select("anything").count() always returns 1 when called inside choose() Why this happens? Is there any elegant and not slow to execute workaround for this problem? With "elegant and not slow" I mean a solution where I don't have to write the search…
fermmm
  • 1,078
  • 1
  • 9
  • 17
2
votes
1 answer

Gremlin query to traverse graph bottom to top capturing vertex children

We use Gremlin 3.2 compatible database. Actually, we try Cosmos DB in graph/gremlin mode. But I am looking to gremlin query so not necessary it is related only to Cosmos DB The graph looks like on the image below I have created a query that is able…