Aiman
Aiman
Explore posts from servers
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
@Bo @porunov Is there anything you could help on this?
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
Yes I'll shift the code from scala to java.
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
Since my code has the remote connection configured ; we have access to the client. How would we generate tx log one using the client?
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
@Oleksandr Porunov My requirement is - whenever a vertex is created / updated a transaction log must be generated which should have the properties created/updated.
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
Can I get any sample code, because the documentation seems unclear to me.
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
@Bo
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
Yeah Okay, but please can you share something
16 replies
JJanusGraph
Created by Aiman on 6/24/2024 in #questions
How do we generate transaction logs ?
@TSC @Committer Any help on this ?
16 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
Thank you @spmallette
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
Based on the data type i need to perform some operations from the code.
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
Let me brief out about my problem statement. I want to create a vertex which has property values of different data types [ex: List, String ,Map] . When I retrieve a vertex, alter gremlin command such that it returns its data type.
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
I've restarted the janusgraph server and ran these
gremlin> g.addV('domain').property(list,'language', 'English').property(list,'language', 'Kannada') .property(list,'language', 'Hindi').next()
==>v[4304]
gremlin> res = g.V(4304).properties('language').value().next()
==>English
gremlin> res.getClass()
==>class java.lang.String
gremlin> g.addV('domain').property(list,'language', 'English').property(list,'language', 'Kannada') .property(list,'language', 'Hindi').next()
==>v[4304]
gremlin> res = g.V(4304).properties('language').value().next()
==>English
gremlin> res.getClass()
==>class java.lang.String
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
How was location created ? Since I'm getting an error while creating
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
@triggan What are the prerequisites to be followed before executing the query?
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
I've restarted the JanusGraph Server and followed the below steps
✦ ❯ bin/gremlin.sh
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
Jun 19, 2024 7:36:10 PM org.yaml.snakeyaml.internal.Logger warn
WARNING: Failed to find field for org.apache.tinkerpop.gremlin.driver.Settings.serializers
19:36:11 INFO org.apache.tinkerpop.gremlin.driver.Connection.<init> - Created new connection for ws://localhost:8182/gremlin
19:36:11 INFO org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init> - Opening connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 1
==>Configured localhost/127.0.0.1:8182-[c215817f-7de5-4c70-bdfc-6549b5f5b7bb]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[c215817f-7de5-4c70-bdfc-6549b5f5b7bb] - type ':remote console' to return to local mode
gremlin> g = graph.traversal()
==>graphtraversalsource[standardjanusgraph[inmemory:[127.0.0.1]], standard]
gremlin> g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim')
Property value [[English, Hindi]] is of type class java.util.ArrayList is not supported
Type ':help' or ':h' for help.
Display stack trace? [yN]
✦ ❯ bin/gremlin.sh
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
Jun 19, 2024 7:36:10 PM org.yaml.snakeyaml.internal.Logger warn
WARNING: Failed to find field for org.apache.tinkerpop.gremlin.driver.Settings.serializers
19:36:11 INFO org.apache.tinkerpop.gremlin.driver.Connection.<init> - Created new connection for ws://localhost:8182/gremlin
19:36:11 INFO org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init> - Opening connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 1
==>Configured localhost/127.0.0.1:8182-[c215817f-7de5-4c70-bdfc-6549b5f5b7bb]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[c215817f-7de5-4c70-bdfc-6549b5f5b7bb] - type ':remote console' to return to local mode
gremlin> g = graph.traversal()
==>graphtraversalsource[standardjanusgraph[inmemory:[127.0.0.1]], standard]
gremlin> g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim')
Property value [[English, Hindi]] is of type class java.util.ArrayList is not supported
Type ':help' or ':h' for help.
Display stack trace? [yN]
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
I'm confused. I've done the same thing
gremlin> g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim')
==>v[8200]
gremlin> res = g.V(8200).properties('language').value().next()
==>[English, Hindi]
gremlin> res.getClass()
==>class java.lang.String
gremlin> g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim')
==>v[8200]
gremlin> res = g.V(8200).properties('language').value().next()
==>[English, Hindi]
gremlin> res.getClass()
==>class java.lang.String
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim').next() This is the query i used
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
What was your create query?
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
gremlin> res = g.V(4104).properties('language').value().next()
==>[English, Hindi]
gremlin> res.getClass()
==>class java.lang.String
gremlin> res = g.V(4104).properties('language').value().next()
==>[English, Hindi]
gremlin> res.getClass()
==>class java.lang.String
32 replies
ATApache TinkerPop
Created by Aiman on 6/19/2024 in #questions
Expecting java.lang.ArrayList/java.lang.List instead of java.lang.String. Where am I going wrong?
g.addV('domain').property('language', ['English', 'Hindi']).property('name', 'aim').next()
32 replies