手把手教你搭建Elasticsearch(7.6.2)集群

这篇文章主要介绍了如何在Linux环境下搭建Elasticsearch(7.6.2)集群,亲测有效,需要的朋友可以参考一下。

1、环境准备

Linux系统:CentOS 7
两台虚拟机:
192.168.194.128(master)
192.168.194.130(node1)

2、安装包的下载

提供elasticsearch官网目前最新稳定版本的链接如下:
elasticsearch-7.6.2-linux-x86_64.tar.gz

3、集群搭建

主节点配置(192.168.194.128)

  1. 创建webapps文件:mkdir /data/webapps
  2. 通过tar命令解压文件:tar -zxvf elasticsearch-7.6.2-linux-x86_64.tar.gz
  3. 通过cd命令进入到config目录:cd /data/webapps/elasticsearch-7.6.2/config
  4. 通过vim命令编辑:vim elasticsearch.yml
  5. elasticsearch.yml配置文件修改如下:
# ======================== 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-elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: master
#
# 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: /data/webapps/data
#
# Path to log files:
#
path.logs: /data/webapps/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.194.128
#
# 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 this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.194.128", "192.168.194.130"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["master"]
#
# For more information, consult the discovery and cluster formation 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
  1. 数据和日志目录的创建:
    mkdir /data/webapps/data /data/webapps/logs
  2. 新增elk用户并授权webapps目录属主为elk命令:
 useradd elk
 chown -R elk:elk /data/webapps
  1. 切换elk用户启动elasticsearch集群命令:
 cd /data/webapps/elasticsearch-7.6.2/bin
 su elk ./elasticsearch &
  1. 启动成功之后可以看到日志如下:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2020-05-05T17:40:26,046][INFO ][o.e.e.NodeEnvironment    ] [master] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [5.3gb], net total_space [16.9gb], types [rootfs]
[2020-05-05T17:40:26,051][INFO ][o.e.e.NodeEnvironment    ] [master] heap size [990.7mb], compressed ordinary object pointers [true]
[2020-05-05T17:40:26,202][INFO ][o.e.n.Node               ] [master] node name [master], node ID [09uDjprlRZatYXZZPkV_Jg], cluster name [my-elasticsearch]
[2020-05-05T17:40:26,202][INFO ][o.e.n.Node               ] [master] version[7.6.2], pid[56714], build[default/tar/ef48eb35cf30adf4db14086e8aabd07ef6fb113f/2020-03-26T06:34:37.794943Z], OS[Linux/3.10.0-1062.7.1.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
[2020-05-05T17:40:26,202][INFO ][o.e.n.Node               ] [master] JVM home [/data/webapps/elasticsearch-7.6.2/jdk]
[2020-05-05T17:40:26,203][INFO ][o.e.n.Node               ] [master] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=/tmp/elasticsearch-1618788248052746437, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/data/webapps/elasticsearch-7.6.2, -Des.path.conf=/data/webapps/elasticsearch-7.6.2/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2020-05-05T17:40:28,237][INFO ][o.e.p.PluginsService     ] [master] loaded module [aggs-matrix-stats]
[2020-05-05T17:40:28,238][INFO ][o.e.p.PluginsService     ] [master] loaded module [analysis-common]
[2020-05-05T17:40:28,238][INFO ][o.e.p.PluginsService     ] [master] loaded module [flattened]
[2020-05-05T17:40:28,238][INFO ][o.e.p.PluginsService     ] [master] loaded module [frozen-indices]
[2020-05-05T17:40:28,239][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-common]
[2020-05-05T17:40:28,239][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-geoip]
[2020-05-05T17:40:28,239][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-user-agent]
[2020-05-05T17:40:28,239][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-expression]
[2020-05-05T17:40:28,240][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-mustache]
[2020-05-05T17:40:28,240][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-painless]
[2020-05-05T17:40:28,240][INFO ][o.e.p.PluginsService     ] [master] loaded module [mapper-extras]
[2020-05-05T17:40:28,240][INFO ][o.e.p.PluginsService     ] [master] loaded module [parent-join]
[2020-05-05T17:40:28,241][INFO ][o.e.p.PluginsService     ] [master] loaded module [percolator]
[2020-05-05T17:40:28,241][INFO ][o.e.p.PluginsService     ] [master] loaded module [rank-eval]
[2020-05-05T17:40:28,241][INFO ][o.e.p.PluginsService     ] [master] loaded module [reindex]
[2020-05-05T17:40:28,241][INFO ][o.e.p.PluginsService     ] [master] loaded module [repository-url]
[2020-05-05T17:40:28,241][INFO ][o.e.p.PluginsService     ] [master] loaded module [search-business-rules]
[2020-05-05T17:40:28,242][INFO ][o.e.p.PluginsService     ] [master] loaded module [spatial]
[2020-05-05T17:40:28,242][INFO ][o.e.p.PluginsService     ] [master] loaded module [transform]
[2020-05-05T17:40:28,242][INFO ][o.e.p.PluginsService     ] [master] loaded module [transport-netty4]
[2020-05-05T17:40:28,242][INFO ][o.e.p.PluginsService     ] [master] loaded module [vectors]
[2020-05-05T17:40:28,243][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-analytics]
[2020-05-05T17:40:28,243][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ccr]
[2020-05-05T17:40:28,243][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-core]
[2020-05-05T17:40:28,244][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-deprecation]
[2020-05-05T17:40:28,244][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-enrich]
[2020-05-05T17:40:28,244][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-graph]
[2020-05-05T17:40:28,244][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ilm]
[2020-05-05T17:40:28,245][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-logstash]
[2020-05-05T17:40:28,245][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ml]
[2020-05-05T17:40:28,245][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-monitoring]
[2020-05-05T17:40:28,245][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-rollup]
[2020-05-05T17:40:28,246][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-security]
[2020-05-05T17:40:28,246][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-sql]
[2020-05-05T17:40:28,246][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-voting-only-node]
[2020-05-05T17:40:28,246][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-watcher]
[2020-05-05T17:40:28,247][INFO ][o.e.p.PluginsService     ] [master] no plugins loaded
[2020-05-05T17:40:31,977][INFO ][o.e.x.s.a.s.FileRolesStore] [master] parsed [0] roles from file [/data/webapps/elasticsearch-7.6.2/config/roles.yml]
[2020-05-05T17:40:32,645][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [master] [controller/56898] [Main.cc@110] controller (64 bit): Version 7.6.2 (Build e06ef9d86d5332) Copyright (c) 2020 Elasticsearch BV
[2020-05-05T17:40:33,227][DEBUG][o.e.a.ActionModule       ] [master] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2020-05-05T17:40:33,395][INFO ][o.e.d.DiscoveryModule    ] [master] using discovery type [zen] and seed hosts providers [settings]
[2020-05-05T17:40:34,130][INFO ][o.e.n.Node               ] [master] initialized
[2020-05-05T17:40:34,130][INFO ][o.e.n.Node               ] [master] starting ...
[2020-05-05T17:40:34,244][INFO ][o.e.t.TransportService   ] [master] publish_address {192.168.194.128:9300}, bound_addresses {192.168.194.128:9300}
[2020-05-05T17:40:34,531][INFO ][o.e.b.BootstrapChecks    ] [master] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-05-05T17:40:34,551][INFO ][o.e.c.c.Coordinator      ] [master] cluster UUID [GP0BARUOQvu3mJP1SBdnsg]
[2020-05-05T17:40:34,719][INFO ][o.e.c.r.a.AllocationService] [master] updating number_of_replicas to [0] for indices [.apm-agent-configuration, .kibana_task_manager_1, .kibana_1]
[2020-05-05T17:40:34,722][INFO ][o.e.c.s.MasterService    ] [master] elected-as-master ([1] nodes joined)[{master}{09uDjprlRZatYXZZPkV_Jg}{rTf_S7fXRQy9yS-6aZUsIg}{192.168.194.128}{192.168.194.128:9300}{dilm}{ml.machine_memory=3954020352, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 3, version: 39, delta: master node changed {previous [], current [{master}{09uDjprlRZatYXZZPkV_Jg}{rTf_S7fXRQy9yS-6aZUsIg}{192.168.194.128}{192.168.194.128:9300}{dilm}{ml.machine_memory=3954020352, xpack.installed=true, ml.max_open_jobs=20}]}
[2020-05-05T17:40:34,793][INFO ][o.e.c.s.ClusterApplierService] [master] master node changed {previous [], current [{master}{09uDjprlRZatYXZZPkV_Jg}{rTf_S7fXRQy9yS-6aZUsIg}{192.168.194.128}{192.168.194.128:9300}{dilm}{ml.machine_memory=3954020352, xpack.installed=true, ml.max_open_jobs=20}]}, term: 3, version: 39, reason: Publication{term=3, version=39}
[2020-05-05T17:40:34,856][INFO ][o.e.h.AbstractHttpServerTransport] [master] publish_address {192.168.194.128:9200}, bound_addresses {192.168.194.128:9200}
[2020-05-05T17:40:34,856][INFO ][o.e.n.Node               ] [master] started
[2020-05-05T17:40:35,062][INFO ][o.e.l.LicenseService     ] [master] license [99a78ac5-ccb9-408f-8173-dc955cfb05c9] mode [basic] - valid
[2020-05-05T17:40:35,063][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [master] Active license is now [BASIC]; Security is disabled
[2020-05-05T17:40:35,071][INFO ][o.e.g.GatewayService     ] [master] recovered [3] indices into cluster_state
[2020-05-05T17:40:35,476][INFO ][o.e.c.r.a.AllocationService] [master] updating number_of_replicas to [1] for indices [.apm-agent-configuration, .kibana_task_manager_1, .kibana_1]
[2020-05-05T17:40:35,477][INFO ][o.e.c.s.MasterService    ] [master] node-join[{node1}{OrFkPr8YRp-V8FmB6l0MTw}{Ha2qvcezTmKSALjVTbLrvA}{192.168.194.130}{192.168.194.130:9300}{dilm}{ml.machine_memory=3954020352, ml.max_open_jobs=20, xpack.installed=true} join existing leader], term: 3, version: 43, delta: added {{node1}{OrFkPr8YRp-V8FmB6l0MTw}{Ha2qvcezTmKSALjVTbLrvA}{192.168.194.130}{192.168.194.130:9300}{dilm}{ml.machine_memory=3954020352, ml.max_open_jobs=20, xpack.installed=true}}
[2020-05-05T17:40:35,746][INFO ][o.e.c.s.ClusterApplierService] [master] added {{node1}{OrFkPr8YRp-V8FmB6l0MTw}{Ha2qvcezTmKSALjVTbLrvA}{192.168.194.130}{192.168.194.130:9300}{dilm}{ml.machine_memory=3954020352, ml.max_open_jobs=20, xpack.installed=true}}, term: 3, version: 43, reason: Publication{term=3, version=43}
[2020-05-05T17:40:35,782][INFO ][o.e.c.r.a.AllocationService] [master] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.apm-agent-configuration][0], [.kibana_task_manager_1][0], [.kibana_1][0]]]).
[2020-05-05T17:40:36,254][INFO ][o.e.c.r.a.AllocationService] [master] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).

从以上启动日志,我们可以看到集群的状态由黄变绿,说明集群是健康的。
Cluster health status changed from [YELLOW] to [GREEN]
10. 在谷歌浏览器输入链接url:http://192.168.194.128:9200/,可以看到如下结果,至此我们elasticsearch集群主节点已经搭建完成了。

{
  "name" : "master",
  "cluster_name" : "my-elasticsearch",
  "cluster_uuid" : "GP0BARUOQvu3mJP1SBdnsg",
  "version" : {
    "number" : "7.6.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

从节点配置(192.168.194.130)

  1. 从节点配置和主节点配置除了elasticsearch.yml文件不同,其他都相同,下面是从节点的elasticsearch.yml配置,如下所示:
# ======================== 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-elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node1
#
# 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: /data/webapps/data
#
# Path to log files:
#
path.logs: /data/webapps/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.194.130
#
# 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 this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.194.130", "192.168.194.128"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# For more information, consult the discovery and cluster formation 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
  1. 启动从节点在谷歌浏览器输入链接url:http://192.168.194.130:9200/,可以看到如下结果,至此我们elasticsearch集群主节点已经搭建完成了。
{
  "name" : "node1",
  "cluster_name" : "my-elasticsearch",
  "cluster_uuid" : "GP0BARUOQvu3mJP1SBdnsg",
  "version" : {
    "number" : "7.6.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

4、总结

elasticsearch集群默认不能使用root用户启动,所以我们需要创建一个非root的用户,本篇文章作者创建了elk用户。如果采用root用户启动,可以看到报错信息如下:

java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) [elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) [elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) [elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125) [elasticsearch-cli-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) [elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.6.2.jar:7.6.2]
[2020-05-05T12:03:47,415][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [localhost.localdomain] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:174) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125) ~[elasticsearch-cli-7.6.2.jar:7.6.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.6.2.jar:7.6.2]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.6.2.jar:7.6.2]
        ... 6 more

如果您觉得有帮助,欢迎收藏点赞哦 ~ ~ 多谢~

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值