titan- elasticseach and com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex

时间:2014-02-15 04:53:45

标签: elasticsearch titan

我是泰坦的新手。

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

我想让ES与泰坦合作。

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

2 个答案:

答案 0 :(得分:2)

抱歉,我们无法及时解决您的问题。正如今天早上在邮件列表上所建议的那样,您可能存在依赖性问题,因为该错误表明titan-es-x.y.z.jar没有出现。你下载了什么版本的Titan?注意特征矩阵:

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

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

答案 1 :(得分:1)

您必须使用ElasticSearch 0.90.5,这与Titan 0.4.2使用的版本相对应。

Cassandra 2.0没问题,虽然Titan 0.4.2打包1.2。