Hello everyone,
I want to use Gremlin to connect to Spark GraphX as following image, and then in step 1, use Java API to send Web Socket request to Gremlin, and have the Spark GraphX to implement the graph calculation.

Here is what I have now:
Since Tinkerpop 3.0.2 -- Tinkerpop 3.1.0 does not support Spark plugin, I downloaded the Tinkerpop 3.1.1 source code Maven project from Github, and build the Maven project to get the Tinkerpop 3.1.1 snapshot.
The build is successful, and I can run the Tinkerpop 3.1.1 in Linux box. I can see the Spark plugin when I start the Tinkerpop Server.

Here is my question:
1. I can see tinkerpop.spark after I start the gremlin.sh, so how can I connect to this tinkerpop.spark ? How can I know if the tinkerpop.spark is running or not ?
2. How to write the graph data to tinkerpop.spark through gremlin ?
3. I want to use Java to send Web Socket request to Gremlin. The first step is to establish the connection to the server through the following code which connect to localhost as default.
But if I want to connect a remote machine, how can I do that ? I checked the API "
public static Cluster open(String configurationFile)". How can I get the sample of this
configurationFile file , and also the sample of the String address in "
public static Cluster.Builder build(String address)" .
Cluster cluster = Cluster.open();
Client client = cluster.connect();
I really appreciate if someone can help me with this.
Thanks,
Kyle