gpt4 book ai didi

elasticsearch - 设置复制到远程Elasticsearch集群时出现问题

转载 作者:行者123 更新时间:2023-12-02 22:27:39 25 4
gpt4 key购买 nike

我在建立到我创建的Elasticsearch远程集群的复制时遇到麻烦。这是我在cb UI和curl中遇到的错误。

{“错误”:{“toBucket”:“验证目标存储桶'可银行化'时出错。err=无法获取存储桶信息。”}}

运行Couchbase Community Edition 5.0.1 build 5003

运行ElasticSearch版本“5.4.0”

{
“名称”:“MtQ6ijh”,
“cluster_name”:“elasticsearch”,
“cluster_uuid”:“rKKA-zCvQGCGZN_tCUm8dQ”,
“版本”:{
“number”:“5.4.0”,
“build_hash”:“780f8c4”,
“build_date”:“2017-04-28T17:43:27.229Z”,
“build_snapshot”:否,
“lucene_version”:“6.5.0”
},
“tagline”:“您知道,要搜索”
}

# ======================== 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.*$

最佳答案

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

如果这不是问题,请查看Elasticsearch日志;这是版本3出现任何连接器错误消息的地方。

顺便说一句,我强烈建议您升级到连接器的版本4。它使用了更强大的复制机制,并且是 future 开发的重点。

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

关于elasticsearch - 设置复制到远程Elasticsearch集群时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57612158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com