Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Arne B.
    @arneboe
    Using a threaded traversal also does not change anything: "graph.tx().createThreadedTx().traversal().V().count()". It still crashes
    Arne B.
    @arneboe
    is it at all possible to access the same graph on a gremlin-server from two different applications at the same time? No matter what I do, one application always closes the transaction of the other application
    Vinayak Shiddappa Bali
    @VINAYAK179
    Hello How can I connect graphs created using ConfiguredGraphFactory with Java client
    Thank You
    Vinayak Shiddappa Bali
    @VINAYAK179
    Hello,
    I am adding nodes along with properties to graph from an csv file using Groovy script. The following part of code works for me:
    g.addV('person')
    .property('entity', entity)
    .property('attr1', attr1)
    .property('attr2', attr2)
    .next()
    But the problem is there are more properties I can't write them one by one.
    Hence is there any solution for adding properties dynamically. I tried using the for loop but it also gives error. Following is the code:
    g.addV('Vendor')
    for (int j=0;j<columns.length;j++){
    .property("Label_"+columns[j],line[j])
    }
    .next()
    where columns and line contains all the labels and values for the property.
    Please share solution to this problem as soon as possible.
    Thank You
    pra527vin
    @pra527vin
    I have following configuration for janusgraph running in single node cluster with SSD
    cassandra :3.1.1
    janusgraph: 0.2.0 (Remote graph mode)
    solr : 7.0.0
    while making date queries like
    g.V().hasLabel('NewsDocument').has('publishedDate', between(1564596900000, 1567275299999)).where(__.out('belongsTo').has('identifier', '00ec7d90c8944a84-a2dbe22c09e0d46c'))
    it takes too long time
    I have indexed published date as well as identifier
    is there any solutions to reduce time for these queries
    As well as if I try to do queries like
    g.V()
    .hasLabel('NewsPaper').has('identifier', '00ec7d90c8944a84-a2dbe22c09e0d46c')
    .in('belongsTo').has('publishedDate', between(1564596900000, 1567275299999))
    It give Exception like this
    "message":"java.lang.Long cannot be cast to java.util.Date","Exception-Class":"java.lang.ClassCastException","exceptions":["java.lang.ClassCastException"]
    Vinayak Shiddappa Bali
    @VINAYAK179
    Hello I am creating graphs using ConfiguredGraphFactory. Is there any way so that I can only access graphs created with a specific username and not other's.
    Vinayak Shiddappa Bali
    @VINAYAK179
    Hello Can we execute a string as command in gremlin console
    Alex Tashev
    @alexgit
    Hi
    I'm reading the docs here: https://docs.janusgraph.org/0.3.2/search-predicates.html
    under 26.7 i says "https://docs.janusgraph.org/0.3.2/search-predicates.html"
    does that mean the opposite is true, i.e. composite indexes cannot index properties with SET or LIST cardinalities?
    • If you are using Elasticsearch then you can index properties with SET and LIST cardinality
    zhougengx
    @zhougengx
    when I start server with ConfiguredGraphFactory ,how can i use it with java ,can you give me some example
    pra527vin
    @pra527vin
    can anybody provide me documentation of how to visualize Janusgraph with Gephi
    Neo Chen
    @zihuancc
    Hi, can I increase 'maxParameters’ to solve this error?
    The max number of supported arguments is 255, but found 4695
    Florian Hockmann
    @FlorianHockmann
    @pra527vin Usage of Gephi is documented in the TinkerPop docs: http://tinkerpop.apache.org/docs/current/reference/#gephi-plugin
    @zihuancc How do you get that error?
    Neo Chen
    @zihuancc
    @FlorianHockmann
    This script, accepts params
     r=[];
     for (j=0; j< 9392; j++) 
    {
            g.V().or(has("__uid__", args_3),has("__uid__", args_5),
    …. 
                  until(loops().is(j)).
                    repeat(bothE().otherV()).
                  bothE().otherV().and(has(“col",args_1)).
                  path().dedup().
                  fill(r);
    }
    repeat has() thousands times
    Florian Hockmann
    @FlorianHockmann
    And what is throwing the exception here?
    Neo Chen
    @zihuancc
    Go client , remote query
    Florian Hockmann
    @FlorianHockmann
    Do you have a stack trace?
    Neo Chen
    @zihuancc
     WARN  org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor  - Exception processing a script on request 
    …  (this part: gremlin script )
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
    General error during class generation: The max number of supported arguments is 255, but found 4695
    
    java.lang.IllegalArgumentException: The max number of supported arguments is 255, but found 4695
    Florian Hockmann
    @FlorianHockmann
    Ah, so you're sending that script as a Groovy script to evaluate it on the server completely and you provide 4695 arguments for the script?
    Can't you put some of the arguments in an array and iterate over that?
    Neo Chen
    @zihuancc
    Yes, 4695 arguments
    Neo Chen
    @zihuancc
    org.apache.tinkerpop.gremlin.server.op.OpProcessorException: The [eval] message contains 1435 bindings which is more than is allowed by the server 300 configuratio

    hi, after test ,the groovy bind args is relate to the configuration in gremlin-server.yaml (maxParameters)😊

    http://tinkerpop.apache.org/docs/3.3.3/reference/#opprocessor-configurations

    Yeshwanth Kumar
    @morpheyesh
    Hi, I have a janusgraph setup with hbase and solr. Just getting my feet wet and would like to know the best visualizer for it.
    Florian Hockmann
    @FlorianHockmann
    Hi @morpheyesh, there are a few possibilities to visualize JanusGraph data that we list in our README: https://github.com/JanusGraph/janusgraph#visualization
    Brian Miller
    @bkmdev
    Does anyone know how to resolve the following error when attempting to startup JG 0.3.1 (backend = Cassandra 3.11.4) via CQL driver? (note, per #468, the account has full permission to all keyspaces and is a superuser):
    [pool-12-thread-1] ERROR org.janusgraph.graphdb.management.JanusGraphManager - Failed to open graph foo with the following error: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.cql.CQLStoreManager.
    Brian Miller
    @bkmdev
    n/m, I think I figured out the cause, believe it may have been the non-meta graph init commands were still hardcoded to localhost VS the FQDN (the server was recently reconfigured to have Casssandra externally bound VS on localhost)
    Abhijeet Kumar
    @arcticOak2

    Hello everyone, My janus server was running all fine and to access it from my local machine, I changed the configuration

    1. Added network.host to $JANUSGRAPH_HOME/elasticsearch/config/elasticsearch.yml using the IP address of the machine

    2. Updated the host in $JANUSGRAPH_HOME/conf/gremlin-server/gremlin-server.yaml using the IP address of the machine (JanusGraph docs)

    3. Updated the listen_address and rpc_address in $JANUSGRAPH_HOME/conf/cassandra/cassandra.yaml using the IP address of the machine

    Then I restarted the janus and everything worked fine. Now, when I’m trying to execute the query, I’m getting error

    58789 [gremlin-server-exec-4] ERROR org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager  - Could not create GremlinScriptEngine for gremlin-groovy
    java.lang.IllegalStateException: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script4
        at org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.lambda$createGremlinScriptEngine$16(DefaultGremlinScriptEngineManager.java:464)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
        at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:272)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
        at org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.createGremlinScriptEngine(DefaultGremlinScriptEngineManager.java:450)
        at org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.getEngineByName(DefaultGremlinScriptEngineManager.java:219)
        at org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.lambda$getEngineByName$0(CachedGremlinScriptEngineManager.java:57)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
        at org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.getEngineByName(CachedGremlinScriptEngineManager.java:57)
        at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:263)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script4
        at org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:397)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
        at org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.lambda$createGremlinScriptEngine$16(DefaultGremlinScriptEngineManager.java:460)
        ... 24 more
    Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script4
        at org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:713)
        at org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval
    hos-omar
    @hos-omar
    JanusGraph/janusgraph#1788
    Any thoughts about this please?
    Vinayak Shiddappa Bali
    @VINAYAK179
    Hello How to take input from user in Gremlin console or groovy script for data loading
    Vladislav Lasmann
    @VladislavLasmann
    Hey guys, do i need a storage backend like cassandra to operate janusgraph in a cluster?
    chinnaiah
    @chinnadw_twitter
    @VladislavLasmann yes you need to have apache cassandra or apache hbase googel big tabel or oracle berkly db
    Yeshwanth Kumar
    @morpheyesh
    Hi, A little off topic but has anyone used apache atlas with janusgraph, hbase and solr backend? I have such a setup and trying to connect my gremlin cli and traverse through existing graph. Is there a way to list all existing graph definitions etc?
    Yeshwanth Kumar
    @morpheyesh
    Or maybe, is there a way to view all the existing graphs that are present in hbase/solr?
    Florian Hockmann
    @FlorianHockmann
    @morpheyesh One graph usually maps to one keyspace / table / whatever in the backend and JanusGraph needs to know which keyspace it should use to connect to your backend. So, I don't think that it's possible to just list all graphs. You can however print the schema of one graph
    Yeshwanth Kumar
    @morpheyesh

    makes sense. I am reverse engineering from an existing janusgraph(hbase+solr) setup. I am able to see the indices and docs on solr and my application(atlas) that uses janus works just fine. I am trying to connect and traverse with gremlin cli.
    I ideally run janusgraph server with a specific config with ConfigurationManagementGraph: conf/janusgraph-hbase-solr.properties set.

    I then start gremlin cli, start a session with remote.yaml. Then I do this

    graph = JanusGraphFactory.open(...janusgraph-hbase-solr.properties)

    g.V() does gives me v[4256]

    I am not sure if am doing something wrong. I am trying to traverse with an existing graph on gremlin cli

    Apologies for noob question :)
    Florian Hockmann
    @FlorianHockmann
    How exactly do you want to traverse the graph? Or to put it in another way: What information do you want to get from the graph with your traversal?
    Abhijeet Kumar
    @arcticOak2
    Why unique indexes can only be created on vertices ?
    I can handle it from my side, but I just want to know the reason because for me setting up the property keys on edge is same like on vertex.
    Quarterback
    @saralov
    Edge's Multiplicity?
    Yeshwanth Kumar
    @morpheyesh
    Maybe display random 20 edges? Traversing is secondary, first - i am trying to connect to the existing graph/data.
    ie: there is a hbase with graph data and solr with edge and vertex indexes, now I want to use gremlin cli to view the data/traverse etc.
    I guess I will give the docs a proper read for sure. :)
    Florian Hockmann
    @FlorianHockmann
    @arcticOak2 I'm not sure, but it may be the result of how JanusGraph stores edges as adjacency lists together with the vertices which probably makes it hard to ensure uniqueness based on properties.
    Abhijeet Kumar
    @arcticOak2
    ohh ok, thanks for the information. I’ll try to explore the code where exactly this is written.
    @FlorianHockmann
    Gerardo Huck
    @gerardohuck

    Hello!
    My team and I are operating on a JanusGraph+CassandraDB setup, and investigating recent slow down of writes/insertions.
    We are looking into the source code of the connector, and found that after inserting there's this statement: "sleepAfterWrite(txh, commitTime);"

    https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-cql/src/main/java/org/janusgraph/diskstorage/cql/CQLStoreManager.java#L474
    https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-cql/src/main/java/org/janusgraph/diskstorage/cql/CQLStoreManager.java#L510

    Tried to look into Git history, but this comes from the first version of the connector so not a lot of details... Not entirely sure if this is our main culprit, but also we don't understand the need for it (and any speed up is always appreciated!)

    • Does anyone know why is this there?
    Vinayak Shiddappa Bali
    @VINAYAK179

    Hello , I am trying to implement graph algorithms on the graph. Following is the query to implement the betweenness algorithm.

    g.V().as("v").repeat(both().simplePath().as("v")).emit().filter(project("x","y","z").by(select(first, "v")).by(select(last, "v")).by(select(all, "v").count(local)).as("triple").coalesce(select("x","y").as("a").select("triples").unfold().as("t").select("x","y").where(eq("a")).select("t"),store("triples")).select("z").as("length").select("triple").select("z").where(eq("length"))).select(all, "v").unfold().groupCount().next()

    Output -
    ==>v[4304]=14
    ==>v[8192]=28
    ==>v[4096]=28
    ==>v[4248]=20
    ==>v[4328]=20
    ==>v[4344]=14

    I just want all the information about the node that is label, properties, etc along with the result. Can any suggest changes in the query.
    Thank You !!!