|
Re: ConfiguredGraphFactory and Authentication not working
Hi Vinayak,
Could you try in the gremlin-server.yaml with just:
graphs: {
ConfigurationManagementGraph: conf/janusgraph-cql-configurationgraph.properties
}
So, without the graph, graph1 and graph2
Hi Vinayak,
Could you try in the gremlin-server.yaml with just:
graphs: {
ConfigurationManagementGraph: conf/janusgraph-cql-configurationgraph.properties
}
So, without the graph, graph1 and graph2
|
By
hadoopmarc@...
·
#5637
·
|
|
Re: ConfiguredGraphFactory and Authentication not working
Hi All,
Investigated the issue further. We I start janusgraph by default janusgraph schema is created, but I need configuredmanagementgraph. Request you to please help regarding it .
Thanks &
Hi All,
Investigated the issue further. We I start janusgraph by default janusgraph schema is created, but I need configuredmanagementgraph. Request you to please help regarding it .
Thanks &
|
By
Vinayak Bali
·
#5636
·
|
|
Re: JanusGraphIndex how to retrieve constraint (indexOnly) specified for the global index?
Thanks. Still, my earlier answer remains unsatisfactory. Somehow, a new JanusGraph instance must be able to load an existing schema from the system table and have the information about label
Thanks. Still, my earlier answer remains unsatisfactory. Somehow, a new JanusGraph instance must be able to load an existing schema from the system table and have the information about label
|
By
hadoopmarc@...
·
#5635
·
|
|
ConfiguredGraphFactory and Authentication not working
Hi All,
Followed the following blogs for configuring authentication and ConfiguredGraphFactory
Hi All,
Followed the following blogs for configuring authentication and ConfiguredGraphFactory
|
By
Vinayak Bali
·
#5634
·
|
|
Re: JanusGraphIndex how to retrieve constraint (indexOnly) specified for the global index?
Thank you, Index class is having tx() transaction description, but I have not found it there as well,
I have added these comments to 1163 as suggested.
Regards, CM
Thank you, Index class is having tx() transaction description, but I have not found it there as well,
I have added these comments to 1163 as suggested.
Regards, CM
|
By
cmilowka
·
#5633
·
|
|
Re: JanusGraphIndex how to retrieve constraint (indexOnly) specified for the global index?
Confirmed, could not find it either. Could you please add it as a comment to:
https://github.com/JanusGraph/janusgraph/issues/1163
Unless someone comes up with a solution, it seems you will have to
Confirmed, could not find it either. Could you please add it as a comment to:
https://github.com/JanusGraph/janusgraph/issues/1163
Unless someone comes up with a solution, it seems you will have to
|
By
hadoopmarc@...
·
#5632
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Vinayak,
Speeding up your query depends on your setup. 15.000 vertices/second is already fast. Is this the janusgraph inmemory backend? Or ScyllaDB?
In a perfect world, not there yet, your query
Hi Vinayak,
Speeding up your query depends on your setup. 15.000 vertices/second is already fast. Is this the janusgraph inmemory backend? Or ScyllaDB?
In a perfect world, not there yet, your query
|
By
hadoopmarc@...
·
#5631
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi All,
The query shared by HadoopMarc works. The query, I executed returns 752650 nodes and 297302 edges as a count. The time taken is around 1min. Is there any way to optimize it further ???
Thank
Hi All,
The query shared by HadoopMarc works. The query, I executed returns 752650 nodes and 297302 edges as a count. The time taken is around 1min. Is there any way to optimize it further ???
Thank
|
By
Vinayak Bali
·
#5630
·
|
|
Re: Gremlin Query to return count for nodes and edges
Good query from @hadoopmarcand I like @cmilowka's suggestion, although I needed to modify it veryslightly as follows:
g.V().hasLabel('A').union(__.count(), __.outE().count(), __.outE().inV().count()
Good query from @hadoopmarcand I like @cmilowka's suggestion, although I needed to modify it veryslightly as follows:
g.V().hasLabel('A').union(__.count(), __.outE().count(), __.outE().inV().count()
|
By
Graham Wallis <graham_wallis@...>
·
#5629
·
|
|
JanusGraphIndex how to retrieve constraint (indexOnly) specified for the global index?
Global indexes can be limited to the "constraint" by indexOnly() step, from JanusGraph documentation:
mgmt.buildIndex('byNameAndLabel',
Global indexes can be limited to the "constraint" by indexOnly() step, from JanusGraph documentation:
mgmt.buildIndex('byNameAndLabel',
|
By
cmilowka
·
#5628
·
|
|
Re: Gremlin Query to return count for nodes and edges
It may work as well, to count totals of all in and out edges for "A" label:
g.V().hasLabel('A').union( __.count(), __. outE().count(), __.inV().count() )
It may work as well, to count totals of all in and out edges for "A" label:
g.V().hasLabel('A').union( __.count(), __. outE().count(), __.inV().count() )
|
By
cmilowka
·
#5627
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Vinayak,
A new attempt:
g = TinkerFactory.createModern().traversal()
g.withSideEffect('vs', new HashSet()).withSideEffect('es', new HashSet()).
Hi Vinayak,
A new attempt:
g = TinkerFactory.createModern().traversal()
g.withSideEffect('vs', new HashSet()).withSideEffect('es', new HashSet()).
|
By
hadoopmarc@...
·
#5626
·
|
|
Re: Changing graphname at runtime
You really have to try this out and see. I can only answer from what I read in the ref docs.
> Do I need to ConfiguredGraphFactory.close(GRAPH) before I update its configuration?
The docs say the
You really have to try this out and see. I can only answer from what I read in the ref docs.
> Do I need to ConfiguredGraphFactory.close(GRAPH) before I update its configuration?
The docs say the
|
By
hadoopmarc@...
·
#5625
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Graham,
Tried itm the output is as
Hi Graham,
Tried itm the output is as
|
By
Vinayak Bali
·
#5624
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Vinayak
You could do this:
g.V().hasLabel('A').as('a').outE().as('e').inV().as('b').select('a','e','b').by(count())
That should producesomething like:
==>{a=1, e=1,b=1}
Best regards,
Hi Vinayak
You could do this:
g.V().hasLabel('A').as('a').outE().as('e').inV().as('b').select('a','e','b').by(count())
That should producesomething like:
==>{a=1, e=1,b=1}
Best regards,
|
By
Graham Wallis <graham_wallis@...>
·
#5623
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Marc,
I am using the following query to return the results.
g.V().hasLabel('A').as('a').outE().as('e').inV().as('b').select('a','e','b').by(valueMap().by(unfold()))
Want the count of unique nodes
Hi Marc,
I am using the following query to return the results.
g.V().hasLabel('A').as('a').outE().as('e').inV().as('b').select('a','e','b').by(valueMap().by(unfold()))
Want the count of unique nodes
|
By
Vinayak Bali
·
#5622
·
|
|
Re: Gremlin Query to return count for nodes and edges
Hi Vinayak,
Try:
g.V().project('v', 'vcount', 'ecount').by(identity()).by(count()).by(bothE().count())
Best wishes, Marc
Hi Vinayak,
Try:
g.V().project('v', 'vcount', 'ecount').by(identity()).by(count()).by(bothE().count())
Best wishes, Marc
|
By
hadoopmarc@...
·
#5621
·
|
|
Gremlin Query to return count for nodes and edges
Hi All,
Wanted to return the count of nodes and edges returned by the query. Tired a few queries but they are not working. Can someone please share a single query, which returns both the count?
Thanks
Hi All,
Wanted to return the count of nodes and edges returned by the query. Tired a few queries but they are not working. Can someone please share a single query, which returns both the count?
Thanks
|
By
Vinayak Bali
·
#5620
·
|
|
Re: Changing graphname at runtime
OK, so that I'm clear, what you're suggesting is that I try something like:
// Create and open main graph
map = new HashMap();
map.put("storage.backend", “hbase);
map.put("storage.hostname",
OK, so that I'm clear, what you're suggesting is that I try something like:
// Create and open main graph
map = new HashMap();
map.put("storage.backend", “hbase);
map.put("storage.hostname",
|
By
Diglio A. Simoni
·
#5619
·
|
|
Re: Janusgraph 0.5.3 potential memory leak
Sadly, that quick fix is not only fast but also incorrect. It requires to iterate the `Iterator` twice which causes incorrect results.
Sadly, that quick fix is not only fast but also incorrect. It requires to iterate the `Iterator` twice which causes incorrect results.
|
By
rngcntr
·
#5618
·
Edited
|