【问题标题】:titan- elasticseach and com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndextitan-elasticseach 和 com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
【发布时间】:2014-02-15 04:53:45
【问题描述】:

我是泰坦的新手。

我正在使用 ubuntu 12.04 并使用从 deb 包安装的 cassandra 2.0 和 ES 1.0。

我正在尝试让 ES 与 Titan 合作。

gremlin> g = TitanFactory.open('/var/titan-cassandra-0.4.2/conf/titan-cassandra.properties') 
Could not find implementation class: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex

storage.index.search.backend=elasticsearch
storage.index.search.hostname=127.0.0.1
storage.index.search.cluster-name=elasticsearch
storage.index.search.index-name=titan
storage.index.search.client-only=true
storage.index.search.sniff=false
storage.index.search.local-mode=false

那么..泰坦和ES一起工作吗?

更新...

我现在使用的是 4.2 titan-server-0.4.2.zip 的服务器版本。现在我得到以下内容。

gremlin> g = TitanFactory.open('/var/titan-server-0.4.2/conf/titan-server.properties')
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [0] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@1f6d83b9, error [true], resetting
Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
Display stack trace? [yN] WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [1] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@2e37735d, error [true], resetting
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [2] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@62c436b7, error [true], resetting
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [3] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@21cccaf3, error [true], resetting
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [4] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@597b112, error [true], resetting
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [5] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@76088b4b, error [true], resetting
WARN  org.elasticsearch.transport.netty  - [Key] Message not fully read (response) for [6] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@547da7dd, error [true], resetting

【问题讨论】:

  • 各位,请确保以root 用户的身份调用gremlin shell。

标签: elasticsearch titan


【解决方案1】:

很抱歉,我们无法更及时地解决您的问题。正如今天早上邮件列表中所建议的那样,您可能遇到了依赖性问题,因为该错误表明titan-es-x.y.z.jar 不在身边。你下载的是什么版本的泰坦?注意特征矩阵:

https://github.com/thinkaurelius/titan/wiki/Downloads#wiki-feature-matrix

除非您下载 Titan Server 或 Titan All,否则您不会打包 ES。我们希望改进 Titan 0.5 中的封装,让事情变得更简单。

【讨论】:

  • titan-cassandra-0.4.2.zip 是我安装的版本
  • 所以我必须下载titan-all-0.4.2.zip?即使我不想嵌入 es 和 cassandra?
  • 好吧,如果您没有titan-es*.jar(及其相关依赖项),那么您将收到您所看到的错误,因此请下载我建议的软件包之一,如功能中所述矩阵或尝试找出正确的 jar 组合以包含在您的类路径中以使 titan-es*.jar 正常工作
  • 如果版本兼容性备忘单或发行说明在下载功能矩阵附近被大胆地标注出来会很有帮助。 github.com/thinkaurelius/titan/wiki/Version-Compatibility
  • 在矩阵下方添加了一个链接:github.com/thinkaurelius/titan/wiki/Downloads
【解决方案2】:

您必须使用 ElasticSearch 0.90.5,它对应于 Titan 0.4.2 使用的版本。

Cassandra 2.0 还可以,尽管 Titan 0.4.2 与 1.2 打包在一起。

【讨论】:

    猜你喜欢
    • 2016-01-24
    • 2019-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多