【发布时间】:2014-09-19 08:48:24
【问题描述】:
我正在使用 TitanGraphDB + Cassandra。我按如下方式启动Titan
cd titan-cassandra-0.3.1
bin/titan.sh config/titan-server-rexster.xml config/titan-server-cassandra.properties
我有一个 Rexster shell,可以用来与上面的 Titan + Cassandra 通信。
cd rexster-console-2.3.0
bin/rexster-console.sh
我正在尝试使用 Titan Graph DB 对网络拓扑进行建模。我想从我的 python 程序中对 Titan Graph DB 进行编程。我为此使用python bulbs 包。我创建图表的代码如下。
from bulbs.titan import Graph
self.g = Graph()
现在我在 IP 地址为 192.168.65.93 的机器上运行了 rexster-console 和 Titan。如果我的 python 应用程序在我使用 self.g = Graph() 的同一台机器上运行。
如果我想从192.168.65.94上的python应用程序连接到在IP为192.168.65.93的机器上运行的Titan AND Rexster怎么办
我该怎么做?我可以传递一些参数(例如配置文件到 Graph())吗?我在哪里可以找到它?
【问题讨论】:
-
这对你有用吗?
标签: python cassandra titan bulbs rexster