graph.traversal().withComputer(SparkGraphComputer.class);
--
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/d19dadbb-359e-408e-878b-5aad3bf9b262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I don't think this will work. If it is cached on the input rdd side and the SparkGraphComputer is creating a new instance of the InputRDD every time, there is no way to cache it. I assume that you are creating a new instance of the input rdd every time because the spark context could be shut down in between the executions of the SparkGraphComputer which would invalidate the pair rdd, so that makes sense. I just wish there was a way to indicate when the context was shutdown and when it restarted, so that the input rdd could be constructed less frequently. Thanks Marko!
Two things:1. TinkerPop does not create the RDD. The graph vendor does. Thus, if its cached, returned the cached value.2. You can persist the Spark context. Please look into SparkContextStorage.
--
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/d747da7b-9eb4-4b87-8e01-f5b13c84a6e6%40googlegroups.com.