Cluster cluster = Cluster.open();
Client client = cluster.connect();
ResultSet results = client.submit("TitanGraph graph = TitanFactory.build()."+
"set(\"gremlin.graph\", \"com.thinkaurelius.titan.core.TitanFactory\")."+
"set(\"storage.backend\", \"cassandrathrift\")."+
"set(\"storage.hostname\", \"10.104.xxx.xxx\")."+
"open();");
20:01:35,709 INFO ConnectionPool:98 - Opening connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 2
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.TimeoutException
at org.apache.tinkerpop.gremlin.driver.Client.submit(Client.java:135)
at org.apache.tinkerpop.gremlin.driver.Client.submit(Client.java:119)
TitanFactory.Builder config = TitanFactory.build();
config.set("storage.backend", "cassandrathrift");
config.set("storage.hostname", "10.104.xxx.xxx");
TitanGraph graph = config.open();
--
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/a0cb1e28-fa96-490a-84d8-aca6a97b2d92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
11:17:37,759 INFO ConnectionPool:98 - Opening connection pool on Host{address=10.104.xxx.xxx/10.104.xxx.xxx:8182, hostUri=ws://10.104.xxx.xxx:8182/gremlin} with core size of 2
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.TimeoutException at org.apache.tinkerpop.gremlin.driver.Client.submit(Client.java:135) at org.apache.tinkerpop.gremlin.driver.Client.submit(Client.java:119)
Cluster cluster = Cluster.open("remote-objects.yaml");
hosts: [10.104.xxx.xxx]port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { custom: [com.thinkaurelius.titan.graphdb.relations.RelationIdentifier] }}
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/981cd8ac-cda5-441b-8eb5-cefcf1905c7b%40googlegroups.com.
Cluster cluster = Cluster.open("remote.yaml");
Client client = cluster.connect();
ResultSet results = client.submit("1");
gremlin> :plugin use tinkerpop.server==>tinkerpop.server activatedgremlin> :remote connect tinkerpop.server conf/remote.yaml==>Connected - bigdata3.inside.glowbyte.com/10.104.xx.xxx:8182gremlin>gremlin> 1==>1
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/e860f092-deab-4fdb-a7b9-e2929b6e94c1%40googlegroups.com.
TitanFactory.Builder config = TitanFactory.build();
config.set("storage.cassandra.keyspace", schema);
config.set("storage.backend", "cassandrathrift");
config.set("storage.hostname", host);
TitanGraph graph = config.open();
Vertex v0 = graph.traversal().V().has(uidKey, UID).next();
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a012b871-f4eb-4cfd-a2d2-b606a0b134ed%40googlegroups.com.
10.104.xx.xxx
in $TITAN_HOME/conf/gremlin-server/gremlin-server.yaml which defaults to localhost../bin/gremlin-server.sh ./conf/gremlin-server/gremlin-server.yaml
10.104.xx.xxx
in $TITAN_HOME/conf/remote.yaml which also defaults to localhost.gremlin> :plugin use tinkerpop.server
==>tinkerpop.server activated
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Connected - bigdata3.inside.glowbyte.com/10.104.xx.xxx:8182
gremlin>
gremlin> :> 1
==>1
10.104.xx.xxx
in $MY_EXAMPLE/conf/driver-settings.yaml which also defaults to localhost.mvn exec:java -Dexec.mainClass="pluradj.titan.tinkerpop3.example.App" -Dlog4j.configuration=file:conf/log4j.properties