--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1554b6c6-6a3a-4ab3-8800-231a52d24b14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Stephen,
Thanks for the response and creating the issue on jira.
I tried to simplify your process by adding all codes, including :remote ...
to the script, then execute from gremlin shell by bin/gremlin.sh -e ~/tmp/my-script.groovy
:
// File: my-script.groovy
:remote connect tinkerpop.server ~/titan/conf/remote.yaml
:> x = 1
:> y = 2
:> x+y
which yields error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: unexpected token: : @ line 1, column 1.
:remote connect tinkerpop.server /home/users/liulx/confs/titan/conf/remote.yaml
^
1 error
I guess the :remote
and :>
commands is not valid for groovy compiler, thus script execution can’t be done without input in the gremlin shell.
BR,
Todd Leo
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/sETDv5AEUl8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H438VcUmQX09e8ud8KOaVYgkT8MTU8L%3DvTLy%3DnO89awuf0A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAD_PBkS6mS0S%3DnVuQn%3DTg-ru_kZzk5_zzUxpkSP7JMbaxoqy%2Bg%40mail.gmail.com.
Could you also provide a minimal example of how to:
…create a Cluster/Client instance manually in your script and send the remote scripts with client.submit().
or, is there any guides that I can refer to? I’d like to test if running gremlin script remotely works and fits our data import work flow. Then let’s talk about how to improve this feature. : )
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H43_7E09Xtn%3DJsi_6M_NN%2BkfeNT7AsybEp-OkSKjf2qcQAA%40mail.gmail.com.
I’m going to load massive dataset to Titan. The dataset is located on HDFS. After a bit of searching, I found hdfs.ls()
and other provided commands can be used to load and parse the dataset. However, the hdfs
object cannot be found on remote server. Do I need to import something or initiate before using? Or, is there a better way to parse the dataset on(or parsed locally and submit to) the remote server?
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H439UezujLLU%2BdzdvrPO9M_zZetN9S6a%3DXbYip_rZNebj8g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAD_PBkTS57EagZgV%2BV0nrpfOGS6v7HfSHdJSw2oBcR1p37DQjA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H43_%2BPTOwchdZkV3Kezx-9YhSa-hEVYZ098xBEPzNYJSGJg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0534bf60-5eb8-4d4d-9785-c19460d6fdaf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/942f5b9e-1aac-4e7f-9d93-49b1a7cfcb2e%40googlegroups.com.
Hi Stephan,
In TP 2, one can use the following code to determine if two vertices are connected:
gremlin> g.v(1).both.retain([g.v(3)]).hasNext()
==>true
while in Gremlin comes with Titan 1.0 (which corresponds to TP3, I presume), it doesn’t work:
groovy.lang.MissingMethodException: No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.retain() is applicable for argument types: (com.thi
nkaurelius.titan.graphdb.vertices.StandardVertex) values: [v[4184]]
Possible solutions: tail(), wait(), reset(), min(), getAt(int), getAt(java.lang.String)
What is the current method to achieve this?
BR,
Todd Leo
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/sETDv5AEUl8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H438vfxhknEXz5gp53DoZ6jWxcrcOROh%3DU2H3AnFKOfGCWw%40mail.gmail.com.
g.V(1).both().hasId(3).hasNext()
other = g.V(3).next()g.V(1).both().is(other).hasNext()
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAD_PBkSjV1tFd50OpOZmiHRS7ac3FneJTUCXXgbkzpN2WN77dA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seUKmWCNhjr05b3FbmHEme_g94RGaDb%3DzYhLTp4TigypLw%40mail.gmail.com.
gizmo_testing.V(V_OUT_ID).bothE(LABEL).as(VERTEX).inV().hasId(V_IN_ID).select(VERTEX)
{'VERTEX': 'vertex', 'LABEL': 'mapper_test_edge', 'V_OUT_ID': 282, 'V_IN_ID': 288}
x = gizmo_testing.V(V_OUT_ID).bothE("mapper_test_edge").as("vertex").inV().hasId(V_IN_ID).select("vertex"); x{"V_OUT_ID": 531, "V_IN_ID": 536}
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a91bfddb-b979-4884-ad09-cab304ff095a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ea5db3b1-fcd9-4612-9d81-9cdc695f1847%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/8f1f0e3c-1907-4c31-80c3-864040f4db4d%40googlegroups.com.
gremlin> script = new File('gremlin.groovy').getText('UTF-8')gremlin> :> @script
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/17a1aec7-d7e5-469a-9e2d-f5d9a2ecbbcd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/3f15430e-d2a0-4679-802e-caa1f888eddd%40googlegroups.com.