Running Gremlin-Hadoop with Java API

81 views
Skip to first unread message

tud

unread,
Apr 16, 2015, 9:53:47 AM4/16/15
to aureliu...@googlegroups.com
Hello everyone,
I try to run a example

gremlin> g = HadoopFactory.open('conf/hadoop/titan-graphson.properties')

gremlin> g.V.out.path

How can i run this example with Java API ?
Thanks
Tud

Daniel Kuppitz

unread,
Apr 16, 2015, 10:16:23 AM4/16/15
to aureliu...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/be880c13-ae78-45b9-9430-d6f143951636%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tud

unread,
Apr 16, 2015, 10:38:47 AM4/16/15
to aureliu...@googlegroups.com
Hi Daniel ,
thanks you for your answer.I think, that is for GremlinPipeline .I need something here for HadoopPipeline

Cheers
Tud

Daniel Kuppitz

unread,
Apr 16, 2015, 10:40:20 AM4/16/15
to aureliu...@googlegroups.com
It's almost the same, except  the fact that a HadoopPipeline is executed using .submit().


Cheers,
Daniel


tud

unread,
Apr 16, 2015, 11:50:31 AM4/16/15
to aureliu...@googlegroups.com
I tried  to run with submit() .but getting one exception .Could you show me a whole code java example ?

Thanks
Tud

Daniel Kuppitz

unread,
Apr 16, 2015, 11:59:54 AM4/16/15
to aureliu...@googlegroups.com
The sample provided in the docs (link in my previous answer) is a complete example. You can even turn it into a one-liner.

HadoopFactory.open('conf/hadoop/titan-graphson.properties').V().out('father').property('name').submit()

Besides that you should find a few more examples on the mailing list.

Cheers,
Daniel


Reply all
Reply to author
Forward
0 new messages