首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >设置到远程elasticsearch群集的复制时出现问题

设置到远程elasticsearch群集的复制时出现问题
EN

Stack Overflow用户
提问于 2019-08-22 22:56:31
回答 1查看 89关注 0票数 2

我在设置到我创建的elasticsearch远程集群的复制时遇到了问题。这是我在cb和curl中得到的错误。

{“errors”:{“toBucket”:“验证目标存储桶'bankable‘时出错,获取存储桶信息的err=Failed。”}}

运行Couchbase Community Edition 5.0.1 build 5003

运行ElasticSearch版本"5.4.0“

{ "name“:"MtQ6ijh","cluster_name”:"elasticsearch","cluster_uuid“:"rKKA-zCvQGCGZN_tCUm8dQ","version”:{ "number“:"5.4.0","build_hash”:"780f8c4","build_date“:"2017-04-28T17:43:27.229Z","build_snapshot”:false,"lucene_version“:"6.5.0”},"tagline“:”你知道,为了搜索“}

代码语言:javascript
复制
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
#network.host: 192.168.0.1
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
#discovery.zen.minimum_master_nodes: 3
#
# For more information, consult the zen discovery module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

couchbase.password: [correctPass]
couchbase.username: [correctUser]
couchbase.port: 9091
couchbase.maxConcurrentRequests: 1024
http.cors.enabled: true
http.cors.allow-origin : /http://localhost(:[0-9]+)?/
couchbase.ignoreFailures: true
couchbase.keyFilter: org.elasticsearch.transport.couchbase.capi.RegexKeyFilter
couchbase.keyFilter.type: exclude
couchbase.keyFilter.keyFiltersRegex.Histoty: ^Histo.*$
EN

回答 1

Stack Overflow用户

发布于 2019-10-15 03:55:19

Couchbase Elasticsearch连接器的版本3要求目标索引已经存在。您需要首先在Elasticsearch中创建“bankable”索引。

如果这不是问题所在,请查看Elasticsearch日志;对于版本3,任何连接器错误消息都会出现在那里。

顺便说一句,我强烈建议升级到连接器的版本4。它使用更健壮的复制机制,是未来开发的重点。

免责声明:我在Couchbase工作,维护Elasticsearch连接器。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57612158

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档