【问题标题】:Connect Gremlin shell to Titan Elasticsearch/Cassandra embedded instance?将 Gremlin shell 连接到 Titan Elasticsearch/Cassandra 嵌入式实例?
【发布时间】:2013-10-01 14:16:00
【问题描述】:

我在嵌入式模式下使用 Titan 0.3.2 与 Cassandra 和 Elasticsearch。我正在为我的cassandra-es.properties 使用titan docs 中记录的配置(输入titan.sh/titan.bat):

storage.backend=embeddedcassandra
storage.cassandra-config-dir=config/cassandra.yaml

storage.index.search.backend=elasticsearch
storage.index.search.directory=/tmp/searchindex
storage.index.search.client-only=false
storage.index.search.local-mode=true

但我正在尝试为 bin/cassandra-es.local 获得正确的配置,以通过 Gremlin 客户端外壳(使用 g = TitanFactory.open("cassandra-es.local") )连接到 Titan 服务器。如果我尝试使用下载中包含的默认版本:

storage.backend=cassandrathrift
storage.hostname=127.0.0.1

图表不会知道任何关于 ES 索引 ("Index is unknown or not configured: search") 的信息。

如果我配置它:

storage.backend=cassandrathrift
storage.hostname=127.0.0.1

storage.index.search.backend=elasticsearch
storage.index.search.client-only=false
storage.index.search.directory=/tmp/cassandra/elasticsearch

它将在另一个似乎与服务器使用的端口分开存在的端口上创建一个 ES 实例。

我的问题:(如何)设置 Gremlin 控制台以与 Titan 嵌入式服务器正确通信?

【问题讨论】:

    标签: titan


    【解决方案1】:

    最近在Google group 上对此进行了一些讨论。看起来实际上不可能在一台机器上运行两个 ES 实例,因此解决此问题的一种更简单的方法是在 VM 上单独设置 ES。

    我尝试了这个解决方案,它在cassandra-es.localtitan-server-cassandra-es.properties 中都可以正常工作:

    storage.index.search.backend=elasticsearch
    storage.index.search.hostname=<VM ES server IP>
    storage.index.search.client-only=true
    

    我现在可以从 Gremlin shell 和 Titan 服务器访问相同的 ES 索引。

    【讨论】:

      猜你喜欢
      • 2015-01-21
      • 2017-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-04
      • 1970-01-01
      相关资源
      最近更新 更多