代码之家  ›  专栏  ›  技术社区  ›  Tampa

titan-elasticseach和com.thinkarelius.tita.diskstorage.es.ElasticSearchIndex

  •  0
  • Tampa  · 技术社区  · 10 年前

    我是泰坦的新手。

    我正在使用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 回复  |  直到 10 年前
        1
  •  2
  •   stephen mallette    10 年前

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

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

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

        2
  •  1
  •   xuzhongxing    10 年前

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

    Cassandra 2.0是可以的,尽管Titan 0.4.2包含1.2。