windows上搭建elasticsearch-7.9.3集群

准备两个elasticsearch-7.9.3的解压包

注意如果你之前已经解压单机运行过elasticsearch-7.9.3,一定要重新解压否则集群搭建不成功!!!!!
因为已运行过的文件会自动新建data文件夹,会导致集群搭建不成功。

重新解压两个新的包
在这里插入图片描述

配置集群节点
分别修改elasticsearch.yml、jvm.options文件
node01节点

# ======================== 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: es-itcast-cluster
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node01
#
# 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: 127.0.0.1
#
# Set a custom port for HTTP:
#
http.port: 9200


# TCP的默认监听端口,默认 9300
transport.tcp.port: 9300
#
# 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]"]

# 设置这个参数来保证集群中的节点可以知道其它N个有master资格的节点。默认为1,对于大的集群来说,可以设置大一点的值(2-4)
discovery.zen.minimum_master_nodes: 2

# es7.x 之后新增的配置,写入候选主节点的设备地址,在开启服务后可以被选为主节点
discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301"] 
discovery.zen.fd.ping_timeout: 1m
discovery.zen.fd.ping_retries: 5
#

# es7.x 之后新增的配置,初始化一个新的集群时需要此配置来选举master
cluster.initial_master_nodes: ["node01", "node02"]
#
# 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
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true

修改jvm.options(Node01节点)

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms128m
-Xmx128m

Node02节点:

# ======================== 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: es-itcast-cluster
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node02
#
# 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: 127.0.0.1
#
# Set a custom port for HTTP:
#
http.port: 9201
#
# 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]"]
# TCP的默认监听端口,默认 9300
transport.tcp.port: 9301
# 设置这个参数来保证集群中的节点可以知道其它N个有master资格的节点。默认为1,对于大的集群来说,可以设置大一点的值(2-4)
discovery.zen.minimum_master_nodes: 2
# es7.x 之后新增的配置,写入候选主节点的设备地址,在开启服务后可以被选为主节点
discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301"] 
discovery.zen.fd.ping_timeout: 1m
discovery.zen.fd.ping_retries: 5
#
# 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


# es7.x 之后新增的配置,初始化一个新的集群时需要此配置来选举master
cluster.initial_master_nodes: ["node01", "node02"]
# 是否支持跨域,是:true,在使用head插件时需要此配置
http.cors.enabled: true
# “*” 表示支持所有域名
http.cors.allow-origin: "*"


# 表示该节点会不会作为主节点,true表示会;false表示不会
node.master: true
# 当前节点是否用于存储数据,是:true、否:false
node.data: true

修改jvm.options(Node02节点)

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms128m
-Xmx128m

启动两个elasticsearch

future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_241\jre] does not meet this requirement
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_241\jre] does not meet this requirement
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
  ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
  version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
  Please use a newer version of Java or set MaxDirectMemorySize explicitly.
[2020-11-19T13:22:33,299][INFO ][o.e.n.Node               ] [node02] version[7.9.3], pid[14152], build[default/zip/c4138e51121ef06a6404866cddc601906fe5c868/2020-10-16T10:36:16.141335Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_241/25.241-b07]
[2020-11-19T13:22:33,303][INFO ][o.e.n.Node               ] [node02] JVM home [C:\Program Files\Java\jdk1.8.0_241\jre]
[2020-11-19T13:22:33,305][INFO ][o.e.n.Node               ] [node02] 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=SPI,JRE, -Xms128m, -Xmx128m, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=C:\Users\Sunny\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -XX:MaxDirectMemorySize=67108864, -Delasticsearch, -Des.path.home=D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node02, -Des.path.conf=D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node02\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2020-11-19T13:22:41,440][INFO ][o.e.p.PluginsService     ] [node02] loaded module [aggs-matrix-stats]
[2020-11-19T13:22:41,440][INFO ][o.e.p.PluginsService     ] [node02] loaded module [analysis-common]
[2020-11-19T13:22:41,440][INFO ][o.e.p.PluginsService     ] [node02] loaded module [constant-keyword]
[2020-11-19T13:22:41,442][INFO ][o.e.p.PluginsService     ] [node02] loaded module [flattened]
[2020-11-19T13:22:41,442][INFO ][o.e.p.PluginsService     ] [node02] loaded module [frozen-indices]
[2020-11-19T13:22:41,442][INFO ][o.e.p.PluginsService     ] [node02] loaded module [ingest-common]
[2020-11-19T13:22:41,443][INFO ][o.e.p.PluginsService     ] [node02] loaded module [ingest-geoip]
[2020-11-19T13:22:41,444][INFO ][o.e.p.PluginsService     ] [node02] loaded module [ingest-user-agent]
[2020-11-19T13:22:41,446][INFO ][o.e.p.PluginsService     ] [node02] loaded module [kibana]
[2020-11-19T13:22:41,446][INFO ][o.e.p.PluginsService     ] [node02] loaded module [lang-expression]
[2020-11-19T13:22:41,448][INFO ][o.e.p.PluginsService     ] [node02] loaded module [lang-mustache]
[2020-11-19T13:22:41,450][INFO ][o.e.p.PluginsService     ] [node02] loaded module [lang-painless]
[2020-11-19T13:22:41,452][INFO ][o.e.p.PluginsService     ] [node02] loaded module [mapper-extras]
[2020-11-19T13:22:41,455][INFO ][o.e.p.PluginsService     ] [node02] loaded module [parent-join]
[2020-11-19T13:22:41,456][INFO ][o.e.p.PluginsService     ] [node02] loaded module [percolator]
[2020-11-19T13:22:41,457][INFO ][o.e.p.PluginsService     ] [node02] loaded module [rank-eval]
[2020-11-19T13:22:41,460][INFO ][o.e.p.PluginsService     ] [node02] loaded module [reindex]
[2020-11-19T13:22:41,460][INFO ][o.e.p.PluginsService     ] [node02] loaded module [repository-url]
[2020-11-19T13:22:41,462][INFO ][o.e.p.PluginsService     ] [node02] loaded module [search-business-rules]
[2020-11-19T13:22:41,466][INFO ][o.e.p.PluginsService     ] [node02] loaded module [searchable-snapshots]
[2020-11-19T13:22:41,468][INFO ][o.e.p.PluginsService     ] [node02] loaded module [spatial]
[2020-11-19T13:22:41,468][INFO ][o.e.p.PluginsService     ] [node02] loaded module [tasks]
[2020-11-19T13:22:41,470][INFO ][o.e.p.PluginsService     ] [node02] loaded module [transform]
[2020-11-19T13:22:41,472][INFO ][o.e.p.PluginsService     ] [node02] loaded module [transport-netty4]
[2020-11-19T13:22:41,472][INFO ][o.e.p.PluginsService     ] [node02] loaded module [vectors]
[2020-11-19T13:22:41,474][INFO ][o.e.p.PluginsService     ] [node02] loaded module [wildcard]
[2020-11-19T13:22:41,474][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-analytics]
[2020-11-19T13:22:41,475][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-async]
[2020-11-19T13:22:41,476][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-async-search]
[2020-11-19T13:22:41,479][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-autoscaling]
[2020-11-19T13:22:41,482][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-ccr]
[2020-11-19T13:22:41,484][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-core]
[2020-11-19T13:22:41,485][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-data-streams]
[2020-11-19T13:22:41,485][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-deprecation]
[2020-11-19T13:22:41,487][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-enrich]
[2020-11-19T13:22:41,487][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-eql]
[2020-11-19T13:22:41,489][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-graph]
[2020-11-19T13:22:41,491][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-identity-provider]
[2020-11-19T13:22:41,492][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-ilm]
[2020-11-19T13:22:41,494][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-logstash]
[2020-11-19T13:22:41,494][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-ml]
[2020-11-19T13:22:41,495][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-monitoring]
[2020-11-19T13:22:41,496][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-ql]
[2020-11-19T13:22:41,497][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-rollup]
[2020-11-19T13:22:41,499][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-security]
[2020-11-19T13:22:41,500][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-sql]
[2020-11-19T13:22:41,503][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-stack]
[2020-11-19T13:22:41,505][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-voting-only-node]
[2020-11-19T13:22:41,507][INFO ][o.e.p.PluginsService     ] [node02] loaded module [x-pack-watcher]
[2020-11-19T13:22:41,508][INFO ][o.e.p.PluginsService     ] [node02] no plugins loaded
[2020-11-19T13:22:44,168][INFO ][o.e.e.NodeEnvironment    ] [node02] using [1] data paths, mounts [[杞欢 (D:)]], net usable_space [53.1gb], net total_space [148.2gb], types [NTFS]
[2020-11-19T13:22:44,170][INFO ][o.e.e.NodeEnvironment    ] [node02] heap size [123.7mb], compressed ordinary object pointers [true]
[2020-11-19T13:22:44,387][INFO ][o.e.n.Node               ] [node02] node name [node02], node ID [w5OfRDhERn-CEDV3QMVhPA], cluster name [es-itcast-cluster]
[2020-11-19T13:22:53,523][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node02] [controller/15236] [Main.cc@114] controller (64 bit): Version 7.9.3 (Build 6c27059cb8397a) Copyright (c) 2020 Elasticsearch BV
[2020-11-19T13:22:54,469][INFO ][o.e.x.s.a.s.FileRolesStore] [node02] parsed [0] roles from file [D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node02\config\roles.yml]
[2020-11-19T13:22:56,798][INFO ][o.e.t.NettyAllocator     ] [node02] creating NettyAllocator with the following configs: [name=unpooled, factors={es.unsafe.use_unpooled_allocator=false, g1gc_enabled=false, g1gc_region_size=0b, heap_size=123.7mb}]
[2020-11-19T13:22:56,933][INFO ][o.e.d.DiscoveryModule    ] [node02] using discovery type [zen] and seed hosts providers [settings]
[2020-11-19T13:22:57,996][WARN ][o.e.g.DanglingIndicesState] [node02] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2020-11-19T13:22:59,210][INFO ][o.e.n.Node               ] [node02] initialized
[2020-11-19T13:22:59,212][INFO ][o.e.n.Node               ] [node02] starting ...
[2020-11-19T13:23:01,459][INFO ][o.e.t.TransportService   ] [node02] publish_address {127.0.0.1:9301}, bound_addresses {127.0.0.1:9301}
[2020-11-19T13:23:02,176][INFO ][o.e.c.c.Coordinator      ] [node02] cluster UUID [cu_AdpIwQm22yHBYSMMKgA]
[2020-11-19T13:23:02,758][INFO ][o.e.c.s.ClusterApplierService] [node02] master node changed {previous [], current [{node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}]}, added {{node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}, term: 3, version: 44, reason: ApplyCommitRequest{term=3, version=44, sourceNode={node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}
[2020-11-19T13:23:03,144][INFO ][o.e.x.s.a.TokenService   ] [node02] refresh keys
[2020-11-19T13:23:03,678][INFO ][o.e.x.s.a.TokenService   ] [node02] refreshed keys
[2020-11-19T13:23:03,720][INFO ][o.e.l.LicenseService     ] [node02] license [f496f230-8ebb-4f1f-a29a-1870f60e3092] mode [basic] - valid
[2020-11-19T13:23:03,725][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [node02] Active license is now [BASIC]; Security is disabled
[2020-11-19T13:23:03,775][INFO ][o.e.h.AbstractHttpServerTransport] [node02] publish_address {127.0.0.1:9201}, bound_addresses {127.0.0.1:9201}
[2020-11-19T13:23:03,793][INFO ][o.e.n.Node               ] [node02] started

future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_241\jre] does not meet this requirement
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_241\jre] does not meet this requirement
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
  ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
  version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
  Please use a newer version of Java or set MaxDirectMemorySize explicitly.
[2020-11-19T13:21:29,319][INFO ][o.e.n.Node               ] [node01] version[7.9.3], pid[4044], build[default/zip/c4138e51121ef06a6404866cddc601906fe5c868/2020-10-16T10:36:16.141335Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_241/25.241-b07]
[2020-11-19T13:21:29,323][INFO ][o.e.n.Node               ] [node01] JVM home [C:\Program Files\Java\jdk1.8.0_241\jre]
[2020-11-19T13:21:29,333][INFO ][o.e.n.Node               ] [node01] 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=SPI,JRE, -Xms128m, -Xmx128m, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=C:\Users\Sunny\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -XX:MaxDirectMemorySize=67108864, -Delasticsearch, -Des.path.home=D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node01, -Des.path.conf=D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node01\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2020-11-19T13:21:36,717][INFO ][o.e.p.PluginsService     ] [node01] loaded module [aggs-matrix-stats]
[2020-11-19T13:21:36,718][INFO ][o.e.p.PluginsService     ] [node01] loaded module [analysis-common]
[2020-11-19T13:21:36,719][INFO ][o.e.p.PluginsService     ] [node01] loaded module [constant-keyword]
[2020-11-19T13:21:36,719][INFO ][o.e.p.PluginsService     ] [node01] loaded module [flattened]
[2020-11-19T13:21:36,719][INFO ][o.e.p.PluginsService     ] [node01] loaded module [frozen-indices]
[2020-11-19T13:21:36,720][INFO ][o.e.p.PluginsService     ] [node01] loaded module [ingest-common]
[2020-11-19T13:21:36,723][INFO ][o.e.p.PluginsService     ] [node01] loaded module [ingest-geoip]
[2020-11-19T13:21:36,725][INFO ][o.e.p.PluginsService     ] [node01] loaded module [ingest-user-agent]
[2020-11-19T13:21:36,726][INFO ][o.e.p.PluginsService     ] [node01] loaded module [kibana]
[2020-11-19T13:21:36,728][INFO ][o.e.p.PluginsService     ] [node01] loaded module [lang-expression]
[2020-11-19T13:21:36,730][INFO ][o.e.p.PluginsService     ] [node01] loaded module [lang-mustache]
[2020-11-19T13:21:36,733][INFO ][o.e.p.PluginsService     ] [node01] loaded module [lang-painless]
[2020-11-19T13:21:36,735][INFO ][o.e.p.PluginsService     ] [node01] loaded module [mapper-extras]
[2020-11-19T13:21:36,736][INFO ][o.e.p.PluginsService     ] [node01] loaded module [parent-join]
[2020-11-19T13:21:36,737][INFO ][o.e.p.PluginsService     ] [node01] loaded module [percolator]
[2020-11-19T13:21:36,738][INFO ][o.e.p.PluginsService     ] [node01] loaded module [rank-eval]
[2020-11-19T13:21:36,740][INFO ][o.e.p.PluginsService     ] [node01] loaded module [reindex]
[2020-11-19T13:21:36,742][INFO ][o.e.p.PluginsService     ] [node01] loaded module [repository-url]
[2020-11-19T13:21:36,743][INFO ][o.e.p.PluginsService     ] [node01] loaded module [search-business-rules]
[2020-11-19T13:21:36,743][INFO ][o.e.p.PluginsService     ] [node01] loaded module [searchable-snapshots]
[2020-11-19T13:21:36,745][INFO ][o.e.p.PluginsService     ] [node01] loaded module [spatial]
[2020-11-19T13:21:36,746][INFO ][o.e.p.PluginsService     ] [node01] loaded module [tasks]
[2020-11-19T13:21:36,747][INFO ][o.e.p.PluginsService     ] [node01] loaded module [transform]
[2020-11-19T13:21:36,748][INFO ][o.e.p.PluginsService     ] [node01] loaded module [transport-netty4]
[2020-11-19T13:21:36,751][INFO ][o.e.p.PluginsService     ] [node01] loaded module [vectors]
[2020-11-19T13:21:36,754][INFO ][o.e.p.PluginsService     ] [node01] loaded module [wildcard]
[2020-11-19T13:21:36,755][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-analytics]
[2020-11-19T13:21:36,756][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-async]
[2020-11-19T13:21:36,757][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-async-search]
[2020-11-19T13:21:36,758][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-autoscaling]
[2020-11-19T13:21:36,760][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-ccr]
[2020-11-19T13:21:36,763][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-core]
[2020-11-19T13:21:36,764][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-data-streams]
[2020-11-19T13:21:36,765][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-deprecation]
[2020-11-19T13:21:36,766][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-enrich]
[2020-11-19T13:21:36,767][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-eql]
[2020-11-19T13:21:36,768][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-graph]
[2020-11-19T13:21:36,770][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-identity-provider]
[2020-11-19T13:21:36,771][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-ilm]
[2020-11-19T13:21:36,773][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-logstash]
[2020-11-19T13:21:36,774][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-ml]
[2020-11-19T13:21:36,774][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-monitoring]
[2020-11-19T13:21:36,775][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-ql]
[2020-11-19T13:21:36,776][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-rollup]
[2020-11-19T13:21:36,776][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-security]
[2020-11-19T13:21:36,778][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-sql]
[2020-11-19T13:21:36,779][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-stack]
[2020-11-19T13:21:36,781][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-voting-only-node]
[2020-11-19T13:21:36,783][INFO ][o.e.p.PluginsService     ] [node01] loaded module [x-pack-watcher]
[2020-11-19T13:21:36,784][INFO ][o.e.p.PluginsService     ] [node01] no plugins loaded
[2020-11-19T13:21:39,874][INFO ][o.e.e.NodeEnvironment    ] [node01] using [1] data paths, mounts [[杞欢 (D:)]], net usable_space [53.1gb], net total_space [148.2gb], types [NTFS]
[2020-11-19T13:21:39,877][INFO ][o.e.e.NodeEnvironment    ] [node01] heap size [123.7mb], compressed ordinary object pointers [true]
[2020-11-19T13:21:40,127][INFO ][o.e.n.Node               ] [node01] node name [node01], node ID [i0RwCQtwTuCzU4FI--vVJQ], cluster name [es-itcast-cluster]
[2020-11-19T13:21:50,571][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node01] [controller/3992] [Main.cc@114] controller (64 bit): Version 7.9.3 (Build 6c27059cb8397a) Copyright (c) 2020 Elasticsearch BV
[2020-11-19T13:21:51,722][INFO ][o.e.x.s.a.s.FileRolesStore] [node01] parsed [0] roles from file [D:\elasticsearch-7.9.3-windows-x86_64\elasticsearch-7.9.3-node01\config\roles.yml]
[2020-11-19T13:21:55,695][INFO ][o.e.t.NettyAllocator     ] [node01] creating NettyAllocator with the following configs: [name=unpooled, factors={es.unsafe.use_unpooled_allocator=false, g1gc_enabled=false, g1gc_region_size=0b, heap_size=123.7mb}]
[2020-11-19T13:21:55,906][INFO ][o.e.d.DiscoveryModule    ] [node01] using discovery type [zen] and seed hosts providers [settings]
[2020-11-19T13:21:57,155][WARN ][o.e.g.DanglingIndicesState] [node01] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2020-11-19T13:21:58,491][INFO ][o.e.n.Node               ] [node01] initialized
[2020-11-19T13:21:58,496][INFO ][o.e.n.Node               ] [node01] starting ...
[2020-11-19T13:22:01,053][INFO ][o.e.t.TransportService   ] [node01] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2020-11-19T13:22:01,944][INFO ][o.e.c.c.Coordinator      ] [node01] cluster UUID [cu_AdpIwQm22yHBYSMMKgA]
[2020-11-19T13:22:02,164][INFO ][o.e.c.s.MasterService    ] [node01] elected-as-master ([1] nodes joined)[{node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 3, version: 41, delta: master node changed {previous [], current [{node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}
[2020-11-19T13:22:02,617][INFO ][o.e.c.s.ClusterApplierService] [node01] master node changed {previous [], current [{node01}{i0RwCQtwTuCzU4FI--vVJQ}{gmum22jcTkC4ZtiHmpvxDg}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=4078948352, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}, term: 3, version: 41, reason: Publication{term=3, version=41}
[2020-11-19T13:22:02,704][INFO ][o.e.h.AbstractHttpServerTransport] [node01] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
[2020-11-19T13:22:02,711][INFO ][o.e.n.Node               ] [node01] started
[2020-11-19T13:22:03,706][INFO ][o.e.l.LicenseService     ] [node01] license [f496f230-8ebb-4f1f-a29a-1870f60e3092] mode [basic] - valid
[2020-11-19T13:22:03,765][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [node01] Active license is now [BASIC]; Security is disabled
[2020-11-19T13:22:03,833][INFO ][o.e.g.GatewayService     ] [node01] recovered [0] indices into cluster_state
[2020-11-19T13:23:02,587][INFO ][o.e.c.s.MasterService    ] [node01] node-join[{node02}{w5OfRDhERn-CEDV3QMVhPA}{V5QhoKDuTH6Jb9bs_WoB9w}{127.0.0.1}{127.0.0.1:9301}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true} join existing leader], term: 3, version: 44, delta: added {{node02}{w5OfRDhERn-CEDV3QMVhPA}{V5QhoKDuTH6Jb9bs_WoB9w}{127.0.0.1}{127.0.0.1:9301}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}
[2020-11-19T13:23:03,758][INFO ][o.e.c.s.ClusterApplierService] [node01] added {{node02}{w5OfRDhERn-CEDV3QMVhPA}{V5QhoKDuTH6Jb9bs_WoB9w}{127.0.0.1}{127.0.0.1:9301}{dilmrt}{ml.machine_memory=4078948352, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}, term: 3, version: 44, reason: Publication{term=3, version=44}

正常运行:
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值