-------------------------
The information in this message is private and confidential and may be legally privileged. If you have received this message in error, please notify us and remove it from your system. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
For more information:
Twitter: @semblent1
LinkedIn: https://www.linkedin.com/company/semblent
The Internet: www.semblent.com
-------------------------
The information in this message is private and confidential and may be legally privileged. If you have received this message in error, please notify us and remove it from your system. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
For more information:
Twitter: @semblent1
LinkedIn: https://www.linkedin.com/company/semblent
The Internet: www.semblent.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/d1caf887-b59b-4074-82b3-d74ca0091828%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/bb7946d5-9f7e-47e0-b2e0-48937c7bbe72%40googlegroups.com.
Hi Stephen,
What is your use case to connect multiple Gremlin Server or, multiple graphs in one Gremlin Server(is this possible?)?
I’m having troubles with the former when trying to connect to different tables in HBase, as I use separate gremlin-server.yaml
with separate port and tablename, and start Gremlin Server with gremlin-server.sh my-new-gremlin-server.yaml
. Then in gremlin shell, connect to the Gremlin Server by specifying a separate remote.yaml
with the new port to connect. However, it appears that I have connected to the original graph with nodes and edges data which I created before. Does anyone tried this way, or there exists other ways to connect to multiple graphs simultaneously?
BR,
Todd Leo
--
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/b27be872-ae1f-4f35-b6eb-9211482ff9e7%40googlegroups.com.
Hi Stephen,
Good to know multiple graphs can be server from a single Gremlin Server. When you say,
…add additional entries to the “graphs” key in the server config file.
did you mean add the following entries in gremlin-server.yaml
:
graphs: {
graph: conf/gremlin-server/titan-hbase-TABLE-1.properties,
graph: conf/gremlin-server/titan-hbase-TABLE-2.properties,
...
graph: conf/gremlin-server/titan-hbase-TABLE-n.properties
}
and, how to specify the graph I’d like to connect afterwards?
Regards to the multiple Gremlin Servers I mentioned, it should be no longer considered now that multiple graphs can be hosted by a single Gremlin Server.
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/6l9-z5g7FYI/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-H43997%3DdQC30t__T7z3y4991iEG9b_%2B8veFB0oDkBHQAasw%40mail.gmail.com.
storage.hbase.table
defined in each properties file (default table name is 'titan')graphs: {
graph1: conf/gremlin-server/titan-hbase-TABLE-1.properties,
graph2: conf/gremlin-server/titan-hbase-TABLE-2.properties,
...
graphn: conf/gremlin-server/titan-hbase-TABLE-n.properties
}
// define the default TraversalSource to bind queries to.
g1 = graph1.traversal();
g2 = graph2.traversal();
gn = graphn.traversal();
Very well Jason, didn’t realize graph instance name corresponds to the entrie of conf files in gremlin-server.yaml
. Is this documented anywhere? It might also helpful to others.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/be829684-648f-4797-8c3f-d5c6100da278%40googlegroups.com.
No the issue is not solved yet. I added two graphs in gremlin-server.yaml
, with each corresponding titan-hbase.properties
specifying different HBase tables(“titan” and “new”). The problem remains, as I described in the first E-mail I sent:
it appears that I have connected to the original graph with nodes and edges data which I created before.
Here is the code I’ve used in gremlin shell:
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Connected - localhost/127.0.0.1:8182
gremlin> :> g=graph1.traversal(); g.V().values('name')
==>david
gremlin> :> g2=graph2.traversal(); g2.V().values('name')
==>david // This is odd because graph2 is supposed empty
gremlin> :> graph1.addVertex("name", "todd") // To verify, let's add a new node to graph1
==>v[4320]
gremlin> :> graph1.tx().commit()
==>null
gremlin> :> g=graph1.traversal(); g.V().values('name')
==>david
==>todd
gremlin> :> g=graph2.traversal(); g.V().values('name')
==>david
==>todd // Clearly, this node is present for both graphs!!
gremlin-server.yaml
graphs: {
graph1: conf/gremlin-server/titan-hbase.properties,
graph2: conf/gremlin-server/titan-hbase-new.properties
}
# Other parts of this file remains unchanged
titan-hbase.properties
gremlin.graph=com.thinkaurelius.titan.core.TitanFactory
storage.backend=hbase
storage.hostname=127.0.0.1
storage.hbase.tablename=titan
titan-hbase-new.properties
gremlin.graph=com.thinkaurelius.titan.core.TitanFactory
storage.backend=hbase
storage.hostname=127.0.0.1
storage.hbase.tablename=new
remote.yaml is also unchanged.
BR,
Todd Leo
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAD_PBkTw6Ao-SwmUefxkdLCqmo13swtxbgyFKrJnkysyTDfDhQ%40mail.gmail.com.
storage.hbase.table
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/32796ea7-74f3-4ac4-aa46-20766adf69e8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/32796ea7-74f3-4ac4-aa46-20766adf69e8%40googlegroups.com.
g2_traversal = g2.traversal();
or
g2.traversal().methodOnlyAvailableOnATraversal(...);
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a51534d6-2c1a-4408-8d90-e50d965ac350%40googlegroups.com.
graphs: { graph: conf/tinkergraph-empty.properties, mark: conf/tinkergraph-mark.properties,}
globals << [g : graph.traversal()]globals << [markg: mark.traversal()]