Re: using In-Memory in JanusGraph Verison 0.5.2 Throws Exception
Boxuan Li <libo...@...>
Make sure you have included janusgraph-inmemory in your dependency.
toggle quoted messageShow quoted text
Cheers, Boxuan
On Friday, December 18, 2020 at 4:07:10 PM UTC+8 kri...@... wrote: Hi folks
|
|
Re: using In-Memory in JanusGraph Verison 0.5.2 Throws Exception
Nicolas Trangosi <nicolas...@...>
Hi, Have you added the janusgraph-inmemory dependency in your pom.xml file? <dependency> <groupId>org.janusgraph</groupId> <artifactId>janusgraph-inmemory</artifactId> <version>${janusgraph.version}</version> <scope>test</scope> </dependency> Nicolas
Hi folks --
![]() Ce message et ses pièces jointes peuvent contenir des informations confidentielles ou privilégiées et ne doivent donc pas être diffusés, exploités ou copiés sans autorisation. Si vous avez reçu ce message par erreur, veuillez le signaler a l'expéditeur et le détruire ainsi que les pièces jointes. Les messages électroniques étant susceptibles d'altération, DCbrain décline toute responsabilité si ce message a été altéré, déformé ou falsifié. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, DCbrain is not liable for messages that have been modified, changed or falsified. Thank you.
|
|
using In-Memory in JanusGraph Verison 0.5.2 Throws Exception
"kri...@gmail.com" <krishna...@...>
Hi folks
i have updated janusgraph version from 0.4.1 to 0.5.2. all my previous unit testcases with inmemory config throws expection below. should i want to add any more particular dependency to my project for running inmemory graph? can you please help me regarding this issue. using below config for inmemory janusgraph instance. graph = JanusGraphFactory.build().set("storage.backend", "inmemory") .set("graph.timestamps",TimestampProviders.NANO) .open(); java.lang.IllegalArgumentException: Could not find implementation class: org.janusgraph.diskstorage.inmemory.InMemoryStoreManager at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:60) at org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:440) at org.janusgraph.diskstorage.Backend.getStorageManager(Backend.java:411) at org.janusgraph.graphdb.configuration.builder.GraphDatabaseConfigurationBuilder.build(GraphDatabaseConfigurationBuilder.java:50) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:161) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:132) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:122) at org.janusgraph.core.JanusGraphFactory$Builder.open(JanusGraphFactory.java:261) Thanks & Regards Krishna Sailesh
|
|
Re: Aggregating edges based on the source & target vertex attributes
Kevin Schmidt <ktsc...@...>
Thanks for improving it! Always good to learn more.
On Thu, Dec 17, 2020 at 6:11 AM HadoopMarc <bi...@...> wrote:
|
|
Re: Aggregating edges based on the source & target vertex attributes
HadoopMarc <bi...@...>
And here a small variation without the keys and with some code formatting: g.V().as('a').outE().as('e').inV().as('b'). group().by( union(select('a').values('organization'), select('b').values('organization')).fold() ).by( select('e').by('collaborationHours').sum() ).unfold() ==>[marketing, engineering]=2 ==>[sales, marketing]=2 ==>[engineering, sales]=3 ==>[engineering, marketing]=2 Marc Op donderdag 17 december 2020 om 14:50:11 UTC+1 schreef kt...@...:
|
|
Re: Aggregating edges based on the source & target vertex attributes
Kevin Schmidt <ktsc...@...>
Vishu, This may not be optimal, but seems to work: g.E().hasLabel('collaboration').as('e').outV().values('organization').as('1').select('e').inV().values('organization').as('2').select('e').group().by(select('1', '2')).by(values('collaborationHours').sum()).unfold(); ==>{1=engineering, 2=marketing}=2 ==>{1=marketing, 2=engineering}=2 ==>{1=engineering, 2=sales}=3 ==>{1=sales, 2=marketing}=2 Note, you have some leading spaces in your Gremlin on 'collaborationHours' I had to remove, and with the data you provided the engineering/sales total is 3, not 4. Kevin
On Wed, Dec 16, 2020 at 11:57 PM vishnu gajendran <ggvis...@...> wrote: Hello,
|
|
Re: JanusGraph 0.5.2 and BigTable
BO XUAN LI <libo...@...>
Hi Assaf,
toggle quoted messageShow quoted text
I am not familiar with GKE but I can try to answer some of your questions: > how does a traversal behave when looking up based on an index key when the key is not yet indexed > org.janusgraph.diskstorage.locking.PermanentLockingException: Local lock contention at org.janusgraph.diskstorage.locking.AbstractLocker.writeLock(AbstractLocker.java:327) This usually happens when you have multiple local threads (running on the same JVM instance) contending for the same lock. You might want to check your application logic. Best regards, Boxuan
|
|
Re: JanusGraph 0.5.2 and BigTable
"ow...@gmail.com" <owner...@...>
You can try to use composite index for checking mixedindex delay
toggle quoted messageShow quoted text
четверг, 17 декабря 2020 г. в 13:16:43 UTC+3, Assaf Schwartz:
Could this be related to delays in indexing? I don't know how to figure out of such exists, but assuming this happens -
|
|
Re: JanusGraph 0.5.2 and BigTable
Assaf Schwartz <schw...@...>
Could this be related to delays in indexing? I don't know how to figure out of such exists, but assuming this happens -
toggle quoted messageShow quoted text
how does a traversal behave when looking up based on an index key when the key is not yet indexed?
On Thursday, December 17, 2020 at 10:54:32 AM UTC+2 Assaf Schwartz wrote: Hi All,
|
|
Re: JanusGraph 0.5.2 and BigTable
Assaf Schwartz <schw...@...>
From time to time, usually after setting up a fresh copy of the BT and Janus, I'll encounter errors relating to locking. However this doesn't happen every time.
toggle quoted messageShow quoted text
Sorry, I can't see to be able copy the logs nicely from the GCP Cloud logging. org.janusgraph.diskstorage.locking.PermanentLockingException: Local lock contention
at org.janusgraph.diskstorage.locking.AbstractLocker.writeLock(AbstractLocker.java:327)
at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingStore.acquireLock(ExpectedValueCheckingStore.java:103)
at org.janusgraph.diskstorage.keycolumnvalue.KCVSProxy.acquireLock(KCVSProxy.java:51)
at org.janusgraph.diskstorage.BackendTransaction.acquireIndexLock(BackendTransaction.java:255)
at org.janusgraph.graphdb.database.StandardJanusGraph.prepareCommit(StandardJanusGraph.java:591)
at org.janusgraph.graphdb.database.StandardJanusGraph.commit(StandardJanusGraph.java:712)
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.commit(StandardJanusGraphTx.java:1425)
at org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph$GraphTransaction.doCommit(JanusGraphBlueprintsGraph.java:297)
at org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.commit(AbstractTransaction.java:104)
at org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor.onTraversalSuccess(TraversalOpProcessor.java:471)
at org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor.handleIterator(TraversalOpProcessor.java:603)
at org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor.lambda$iterateBytecodeTraversal$4(TraversalOpProcessor.java:411)
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)
On Thursday, December 17, 2020 at 10:54:32 AM UTC+2 Assaf Schwartz wrote: Hi All,
|
|
JanusGraph 0.5.2 and BigTable
Assaf Schwartz <schw...@...>
Hi All,
I'm experiencing an issues with running JanusGraph (on top of GKE) against BigTable. This is the general setup description:
Description of the problem:
I've also validated that db-caching is turned off. Help! :) Many thanks in advance, Assaf
|
|
Re: Use index for sorting
toom <to...@...>
Thank you very much, I'll try that.
toggle quoted messageShow quoted text
Toom.
On Thursday, December 17, 2020 at 8:28:52 AM UTC+1 ow...@... wrote:
|
|
Re: Use index for sorting
"ow...@gmail.com" <owner...@...>
We use special strategy that rewrite order comparator for supporting missing values https://gist.github.com/mad/6bef960d51d7a0d89a8c310851023303 пятница, 4 декабря 2020 г. в 09:59:13 UTC+3, t...@...:
|
|
Aggregating edges based on the source & target vertex attributes
vishnu gajendran <ggvis...@...>
Hello,
I request your help regarding the janus graph query which I am trying to construct. Let's consider the following graph where each vertex denotes a person and the edge between any two vertex denotes collaboration between them. Vertices: p1 = graph.addVertex('person') p1.property('personId', 1) p1.property('organization', "engineering") p2 = graph.addVertex('person') p2.property('personId', 2) p2.property('organization', "sales") p3 = graph.addVertex('person') p3.property('personId', 3) p3.property('organization', "marketing") p4 = graph.addVertex('person') p4.property('personId', 4) p4.property('organization', "engineering") Edges: p1.addEdge('collaboration', p2, 'collaborationHours', 1) p1.addEdge('collaboration', p3, 'collaborationHours', 2) p2.addEdge('collaboration', p3, 'collaborationHours', 2) p3.addEdge('collaboration', p4, '
collaborationHours', 2) p4.addEdge('collaboration', p2, '
collaborationHours', 2) Expected Result is the following table: Organization1 Organization2 Total Collaboration Hours Engineering Sales 4 Engineering Marketing 2 Sales Marketing 2 Marketing Engineering 2 Here, I am trying to aggregate the "person to person" graph into "organization to organization" graph. Does JanusGraph support such aggregation queries? If yes, can you please help me with the query for the same? Thanks
|
|
Re: Condition where-inV-is does not work
HadoopMarc <bi...@...>
Hi Anton, To compare objects you need the eq() predicate, not the is() step (see https://tinkerpop.apache.org/docs/current/reference/#a-note-on-predicates). Also note that JanusGraph uses RelationIdentifier objects as id's. So, give the following a try (not tested): g.V(110792).as('a').V(41099392).outE('LINK').where(inV().eq('a')) Best wishes, Marc Op woensdag 16 december 2020 om 10:03:33 UTC+1 schreef Anton Eroshenko:
|
|
Re: addE doesn't create more than 1 edge
Anton Eroshenko <erosh...@...>
Thanks for your explanation. I got the idea, that "many" side of "one-to-many" relationship should go first when adding edges.
toggle quoted messageShow quoted text
On Wednesday, December 16, 2020 at 2:03:31 AM UTC+7 Amiya wrote:
|
|
Re: Condition where-inV-is does not work
Anton Eroshenko <erosh...@...>
Thanks for reply. In real query I don't have an ID, that's why I use traversal in where clause. Tried this one, but it does not work either:
g.V(41099392).outE('LINK').where(inV().hasId(V(110792).id()))
On Wednesday, December 16, 2020 at 1:45:50 AM UTC+7 Amiya wrote:
|
|
Re: How to improve traversal query performance
Manabu Kotani <smallcany...@...>
Hi Marc,
toggle quoted messageShow quoted text
Thank you for your too much advice. I will keep learning about Gremlin query for better performance. Thanks a lot! Manabu. 2020年12月11日金曜日 22:40:21 UTC+9 HadoopMarc:
|
|
Re: addE doesn't create more than 1 edge
Amiya <amiyakr...@...>
Marc is correct about "It is not a bug: the addE() step only adds one edge per traverser". I think query by Mark will create a self link. Below query might work (not tested) g.V().hasLabel('Activity').as('a'). V().has('person', 'id', within('p1', 'p2')).addE('LINK').from('a')
On Tuesday, 15 December 2020 at 20:36:56 UTC+5:30 HadoopMarc wrote:
|
|
Re: Condition where-inV-is does not work
Amiya <amiyakr...@...>
On Tuesday, 15 December 2020 at 20:45:40 UTC+5:30 Anton Eroshenko wrote:
|
|