rpuga
rpuga
Explore posts from servers
JJanusGraph
Created by rpuga on 5/27/2024 in #questions
Unable to load GraphSON file
Hi, I'm trying to load a very simple .json graph into JanusGraph from the gremlin console, but I get this error:
gremlin> g.io("/opt/janusgraph/graphson-test1.json").read().iterate();
Label can not be null
gremlin> g.io("/opt/janusgraph/graphson-test1.json").read().iterate();
Label can not be null
although the label is indeed present:
{"vertices":[{"id":"id_test","label":"person","name":"Jack"}],"edges":[]}
{"vertices":[{"id":"id_test","label":"person","name":"Jack"}],"edges":[]}
any idas why? Additional info: I'm using JanusGraph 1.0.0 that is setup to accept custom vertext IDs. All works well, but I'm unable to do bulk loads from .json. Thanks!
8 replies
JJanusGraph
Created by rpuga on 5/26/2024 in #questions
Gremlin statement exceeds the maximum compilation size
Hi all, I'm trying to do some script-based bulk writes to a JanusGraph server, but I get the following error message
'status': {'message': 'The Gremlin statement that was submitted exceeds the maximum compilation size allowed by the JVM, please split it into multiple smaller statements ...}
'status': {'message': 'The Gremlin statement that was submitted exceeds the maximum compilation size allowed by the JVM, please split it into multiple smaller statements ...}
I have set maxContentLength: 524288 in the server .yaml file to allow my client to sbmit larger scripts, because I found a significant performance improvement when submitting a larger set of queries at once. But now I'm hitting the JVM limit for compilation size, which I'd like to increase, if possible. Is there a way to increase the JVM limit? Thanks!
5 replies
JJanusGraph
Created by rpuga on 4/21/2024 in #questions
~20% write performance hit when using custom str IDs?
Hi, I've been experimenting with using custom vertex IDs. I have a process that reads data from a file and writes (or updates with mergeV()) nodes to a JanusGraph 1.0.0 instance with a Cassandra+ES backend. Keeping exactly the same client code and test data, I noticed a 20% write slowdown when writing nodes with custom string IDs, rather than custom int IDs. In both cases, the IDs are exactly the same, with the only difference being that in one case I convert int to string, before submitting the query to the JG server (I'm using parametrized scripts submitted via gremlin-python). Is this a known issue? (I could not find info about this in the documentation)
13 replies
JJanusGraph
Created by rpuga on 1/21/2024 in #questions
Changing default ES index name prefix
Hi, is it possible to change the default prefix of Elasticsearch index names? Currently, when I define a mixed index, JanusGraph creates a correspoing index in ES named janusgraph_<index_name>. I would like to change the prefix for all indices to something like jgtest1_<index_name>. I tried following the documentation (https://docs.janusgraph.org/index-backend/elasticsearch/#janusgraph-indexx-and-indexxelasticsearch-options), adding this line to the JanusGraph server .properties file: index.search.elasticsearch.index-name = jgtest1 however, this does not seem to work. I know that this is a GLOBAL_OFFLINE option, so I stopped the server, changed the Cassandra keyspace name to create a new DB, and then restarted the server. After defining the schema and mixed indices the ES index names are still the same as before. Namely the prefix of the indices that are create is still janusgraph_, instead of jgtest1_. Isn't the index-name option supposed to work? Am I missing somthing? Thanks!
10 replies