elasticsearch8.x报错解决(VMware虚拟机+CentOS)

[2022-08-21T12:24:58,784][ERROR][o.e.b.Bootstrap          ] [es-node-1] Exception
java.lang.IllegalStateException: jar hell!
class: sun.tools.jar.CommandLine
jar1: /usr/local/jdk1.8.0_333/jre/lib/rt.jar
jar2: /usr/local/jdk1.8.0_333/lib/tools.jar
	at org.elasticsearch.jdk.JarHell.checkClass(JarHell.java:315) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:233) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:84) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:215) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:224) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) [elasticsearch-8.3.3.jar:?]
[2022-08-21T12:24:58,794][ERROR][o.e.b.Elasticsearch      ] [es-node-1] fatal exception while booting Elasticsearch
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: jar hell!
class: sun.tools.jar.CommandLine
jar1: /usr/local/jdk1.8.0_333/jre/lib/rt.jar
jar2: /usr/local/jdk1.8.0_333/lib/tools.jar
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:228) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) [elasticsearch-8.3.3.jar:?]
Caused by: java.lang.IllegalStateException: jar hell!
class: sun.tools.jar.CommandLine
jar1: /usr/local/jdk1.8.0_333/jre/lib/rt.jar
jar2: /usr/local/jdk1.8.0_333/lib/tools.jar
	at org.elasticsearch.jdk.JarHell.checkClass(JarHell.java:315) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:233) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:84) ~[elasticsearch-core-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:215) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:224) ~[elasticsearch-8.3.3.jar:?]
	... 1 more

如果在Linux中配置的是jdk1.8,并且在/etc/profile文件中配置如下:

export JAVA_HOME=/usr/local/jdk1.8.0_333
export JRE_HOME=/$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

CLASSPATH修改为export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH

export JAVA_HOME=/usr/local/jdk1.8.0_333
export JRE_HOME=/$JAVA_HOME/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

如果用的是jdk17,应该不会出现此问题。


[2022-08-21T13:27:56,246][INFO ][o.e.n.Node               ] [es-node-1] version[8.3.3], pid[4968], build[tar/801fed82df74dbe537f89b71b098ccaff88d2c56/2022-07-23T19:30:09.227964828Z], OS[Linux/3.10.0-1160.71.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/18.0.2/18.0.2+9-61]
[2022-08-21T13:27:56,251][INFO ][o.e.n.Node               ] [es-node-1] JVM home [/usr/local/elasticsearch-8.3.3/jdk], using bundled JDK [true]
[2022-08-21T13:27:56,251][INFO ][o.e.n.Node               ] [es-node-1] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -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, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-11360277174745489518, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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, -Xms1965m, -Xmx1965m, -XX:MaxDirectMemorySize=1030750208, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/usr/local/elasticsearch-8.3.3/lib, -Djdk.module.main=org.elasticsearch.server]
[2022-08-21T13:27:58,539][INFO ][c.a.c.i.j.JacksonVersion ] [es-node-1] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2022-08-21T13:28:00,293][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [aggs-matrix-stats]
[2022-08-21T13:28:00,294][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [analysis-common]
[2022-08-21T13:28:00,294][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [constant-keyword]
[2022-08-21T13:28:00,294][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [data-streams]
[2022-08-21T13:28:00,294][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [frozen-indices]
[2022-08-21T13:28:00,294][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [ingest-common]
[2022-08-21T13:28:00,295][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [ingest-geoip]
[2022-08-21T13:28:00,295][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [ingest-user-agent]
[2022-08-21T13:28:00,295][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [kibana]
[2022-08-21T13:28:00,295][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [lang-expression]
[2022-08-21T13:28:00,295][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [lang-mustache]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [lang-painless]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [legacy-geo]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [mapper-extras]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [mapper-version]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [old-lucene-versions]
[2022-08-21T13:28:00,296][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [parent-join]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [percolator]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [rank-eval]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [reindex]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repositories-metering-api]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repository-azure]
[2022-08-21T13:28:00,297][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repository-encrypted]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repository-gcs]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repository-s3]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [repository-url]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [runtime-fields-common]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [search-business-rules]
[2022-08-21T13:28:00,298][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [searchable-snapshots]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [snapshot-based-recoveries]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [snapshot-repo-test-kit]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [spatial]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [transform]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [transport-netty4]
[2022-08-21T13:28:00,299][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [unsigned-long]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [vector-tile]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [vectors]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [wildcard]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-aggregate-metric]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-analytics]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-async]
[2022-08-21T13:28:00,300][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-async-search]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-autoscaling]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-ccr]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-core]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-deprecation]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-enrich]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-eql]
[2022-08-21T13:28:00,301][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-fleet]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-graph]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-identity-provider]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-ilm]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-logstash]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-ml]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-monitoring]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-ql]
[2022-08-21T13:28:00,302][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-rollup]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-security]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-shutdown]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-sql]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-stack]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-text-structure]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-voting-only-node]
[2022-08-21T13:28:00,303][INFO ][o.e.p.PluginsService     ] [es-node-1] loaded module [x-pack-watcher]
[2022-08-21T13:28:00,304][INFO ][o.e.p.PluginsService     ] [es-node-1] no plugins loaded
[2022-08-21T13:28:02,105][INFO ][o.e.e.NodeEnvironment    ] [es-node-1] using [1] data paths, mounts [[/ (/dev/mapper/centos-root)]], net usable_space [32.8gb], net total_space [44.9gb], types [xfs]
[2022-08-21T13:28:02,106][INFO ][o.e.e.NodeEnvironment    ] [es-node-1] heap size [1.9gb], compressed ordinary object pointers [true]
[2022-08-21T13:28:02,136][INFO ][o.e.n.Node               ] [es-node-1] node name [es-node-1], node ID [l2Hi_lE4SzaqxGfEaRyCEA], cluster name [es-cluster], roles [transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml, data_hot]
[2022-08-21T13:28:04,323][INFO ][o.e.x.s.Security         ] [es-node-1] Security is enabled
[2022-08-21T13:28:04,559][INFO ][o.e.x.s.a.s.FileRolesStore] [es-node-1] parsed [0] roles from file [/usr/local/elasticsearch-8.3.3/config/roles.yml]
[2022-08-21T13:28:04,922][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [es-node-1] [controller/4995] [Main.cc@123] controller (64 bit): Version 8.3.3 (Build d2d2e518384d45) Copyright (c) 2022 Elasticsearch BV
[2022-08-21T13:28:05,257][INFO ][o.e.t.n.NettyAllocator   ] [es-node-1] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]
[2022-08-21T13:28:05,283][INFO ][o.e.i.r.RecoverySettings ] [es-node-1] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-08-21T13:28:05,310][INFO ][o.e.d.DiscoveryModule    ] [es-node-1] using discovery type [multi-node] and seed hosts providers [settings]
[2022-08-21T13:28:06,183][INFO ][o.e.n.Node               ] [es-node-1] initialized
[2022-08-21T13:28:06,183][INFO ][o.e.n.Node               ] [es-node-1] starting ...
[2022-08-21T13:28:06,191][INFO ][o.e.x.s.c.f.PersistentCache] [es-node-1] persistent cache index loaded
[2022-08-21T13:28:06,191][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [es-node-1] deprecation component started
[2022-08-21T13:28:06,337][INFO ][o.e.t.TransportService   ] [es-node-1] publish_address {MyCentOS/172.17.0.1:9300}, bound_addresses {172.17.0.1:9300}, {192.168.122.1:9300}, {192.168.100.100:9300}, {[fe80::d738:a345:f168:faab]:9300}
[2022-08-21T13:28:06,428][INFO ][o.e.b.BootstrapChecks    ] [es-node-1] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2022-08-21T13:28:06,433][ERROR][o.e.b.Bootstrap          ] [es-node-1] node validation exception
[2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch.
bootstrap check failure [1] of [2]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
bootstrap check failure [2] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2022-08-21T13:28:06,438][INFO ][o.e.n.Node               ] [es-node-1] stopping ...
[2022-08-21T13:28:06,479][INFO ][o.e.n.Node               ] [es-node-1] stopped
[2022-08-21T13:28:06,479][INFO ][o.e.n.Node               ] [es-node-1] closing ...
[2022-08-21T13:28:06,490][INFO ][o.e.n.Node               ] [es-node-1] closed
[2022-08-21T13:28:06,491][INFO ][o.e.x.m.p.NativeController] [es-node-1] Native controller process has stopped - no new native processes can be started

当你看到[o.e.x.m.p.NativeController] [es-node-1] Native controller process has stopped - no new native processes can be started时,往上找[ERRO]

[2022-08-21T13:28:06,433][ERROR][o.e.b.Bootstrap          ] [es-node-1] node validation exception
[2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch.
bootstrap check failure [1] of [2]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
bootstrap check failure [2] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

编辑 /etc/security/limits.conf

vim /etc/security/limits.conf

插入以下内容:

es soft nofile 65536
es hard nofile 65536

注意:

  1. 上边的es是你运行elasticsearch的Linux用户,es也可以换成*表示全部用户
  2. 此文件修改后需要重新登录用户,才会生效

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

编辑 /etc/sysctl.conf

vim /etc/sysctl.conf

插入以下内容:

vm.max_map_count=262144

保存之后,使用sysctl -p命令,使配置生效。


[2022-08-21T15:52:25,579][INFO ][o.e.n.Node               ] [es-node-3] version[8.3.3], pid[4197], build[tar/801fed82df74dbe537f89b71b098ccaff88d2c56/2022-07-23T19:30:09.227964828Z], OS[Linux/3.10.0-1160.71.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/18.0.2/18.0.2+9-61]
[2022-08-21T15:52:25,583][INFO ][o.e.n.Node               ] [es-node-3] JVM home [/usr/local/elasticsearch-8.3.3/jdk], using bundled JDK [true]
[2022-08-21T15:52:25,583][INFO ][o.e.n.Node               ] [es-node-3] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -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, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-10082483954431907055, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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, -Xms1965m, -Xmx1965m, -XX:MaxDirectMemorySize=1030750208, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/usr/local/elasticsearch-8.3.3/lib, -Djdk.module.main=org.elasticsearch.server]
[2022-08-21T15:52:28,299][INFO ][c.a.c.i.j.JacksonVersion ] [es-node-3] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2022-08-21T15:52:30,401][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [aggs-matrix-stats]
[2022-08-21T15:52:30,401][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [analysis-common]
[2022-08-21T15:52:30,401][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [constant-keyword]
[2022-08-21T15:52:30,401][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [data-streams]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [frozen-indices]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [ingest-common]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [ingest-geoip]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [ingest-user-agent]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [kibana]
[2022-08-21T15:52:30,402][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [lang-expression]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [lang-mustache]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [lang-painless]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [legacy-geo]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [mapper-extras]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [mapper-version]
[2022-08-21T15:52:30,403][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [old-lucene-versions]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [parent-join]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [percolator]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [rank-eval]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [reindex]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repositories-metering-api]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repository-azure]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repository-encrypted]
[2022-08-21T15:52:30,404][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repository-gcs]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repository-s3]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [repository-url]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [runtime-fields-common]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [search-business-rules]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [searchable-snapshots]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [snapshot-based-recoveries]
[2022-08-21T15:52:30,405][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [snapshot-repo-test-kit]
[2022-08-21T15:52:30,406][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [spatial]
[2022-08-21T15:52:30,406][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [transform]
[2022-08-21T15:52:30,406][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [transport-netty4]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [unsigned-long]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [vector-tile]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [vectors]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [wildcard]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-aggregate-metric]
[2022-08-21T15:52:30,407][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-analytics]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-async]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-async-search]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-autoscaling]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-ccr]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-core]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-deprecation]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-enrich]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-eql]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-fleet]
[2022-08-21T15:52:30,408][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-graph]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-identity-provider]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-ilm]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-logstash]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-ml]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-monitoring]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-ql]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-rollup]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-security]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-shutdown]
[2022-08-21T15:52:30,409][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-sql]
[2022-08-21T15:52:30,410][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-stack]
[2022-08-21T15:52:30,410][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-text-structure]
[2022-08-21T15:52:30,410][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-voting-only-node]
[2022-08-21T15:52:30,410][INFO ][o.e.p.PluginsService     ] [es-node-3] loaded module [x-pack-watcher]
[2022-08-21T15:52:30,410][INFO ][o.e.p.PluginsService     ] [es-node-3] no plugins loaded
[2022-08-21T15:52:32,487][INFO ][o.e.e.NodeEnvironment    ] [es-node-3] using [1] data paths, mounts [[/ (/dev/mapper/centos-root)]], net usable_space [33.6gb], net total_space [44.9gb], types [xfs]
[2022-08-21T15:52:32,487][INFO ][o.e.e.NodeEnvironment    ] [es-node-3] heap size [1.9gb], compressed ordinary object pointers [true]
[2022-08-21T15:52:32,492][INFO ][o.e.n.Node               ] [es-node-3] node name [es-node-3], node ID [mXqHr_-0RbGOz9nsURZ96A], cluster name [es-cluster], roles [data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml, data_frozen, ingest]
[2022-08-21T15:52:35,051][INFO ][o.e.x.s.Security         ] [es-node-3] Security is enabled
[2022-08-21T15:52:35,477][INFO ][o.e.x.s.a.s.FileRolesStore] [es-node-3] parsed [0] roles from file [/usr/local/elasticsearch-8.3.3/config/roles.yml]
[2022-08-21T15:52:35,815][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [es-node-3] [controller/4226] [Main.cc@123] controller (64 bit): Version 8.3.3 (Build d2d2e518384d45) Copyright (c) 2022 Elasticsearch BV
[2022-08-21T15:52:36,272][INFO ][o.e.t.n.NettyAllocator   ] [es-node-3] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]
[2022-08-21T15:52:36,296][INFO ][o.e.i.r.RecoverySettings ] [es-node-3] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-08-21T15:52:36,321][INFO ][o.e.d.DiscoveryModule    ] [es-node-3] using discovery type [multi-node] and seed hosts providers [settings]
[2022-08-21T15:52:37,355][INFO ][o.e.n.Node               ] [es-node-3] initialized
[2022-08-21T15:52:37,356][INFO ][o.e.n.Node               ] [es-node-3] starting ...
[2022-08-21T15:52:37,366][INFO ][o.e.x.s.c.f.PersistentCache] [es-node-3] persistent cache index loaded
[2022-08-21T15:52:37,367][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [es-node-3] deprecation component started
[2022-08-21T15:52:37,521][ERROR][o.e.b.Bootstrap          ] [es-node-3] Exception
org.elasticsearch.transport.BindTransportException: Failed to bind to [fe80::d738:a345:f168:faab]:[9300-9399]
	at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:487) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:448) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:143) ~[?:?]
	at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:96) ~[?:?]
	at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:59) ~[?:?]
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.TransportService.doStart(TransportService.java:275) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.node.Node.start(Node.java:1159) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:264) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:224) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) [elasticsearch-8.3.3.jar:?]
Caused by: java.net.BindException: 无法指定被请求的地址
	at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
	at sun.nio.ch.Net.bind(Net.java:555) ~[?:?]
	at sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) ~[?:?]
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) ~[?:?]
	at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:141) ~[?:?]
	at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562) ~[?:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334) ~[?:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) ~[?:?]
	at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) ~[?:?]
	at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973) ~[?:?]
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260) ~[?:?]
	at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356) ~[?:?]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[?:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) ~[?:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) ~[?:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[?:?]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[2022-08-21T15:52:37,528][ERROR][o.e.b.Elasticsearch      ] [es-node-3] fatal exception while booting Elasticsearch
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.transport.BindTransportException: Failed to bind to [fe80::d738:a345:f168:faab]:[9300-9399]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:228) [elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) [elasticsearch-8.3.3.jar:?]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [fe80::d738:a345:f168:faab]:[9300-9399]
	at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:487) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:448) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:143) ~[?:?]
	at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:96) ~[?:?]
	at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:59) ~[?:?]
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.transport.TransportService.doStart(TransportService.java:275) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.node.Node.start(Node.java:1159) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:264) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-8.3.3.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:224) ~[elasticsearch-8.3.3.jar:?]
	... 1 more
Caused by: java.net.BindException: 无法指定被请求的地址
	at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
	at sun.nio.ch.Net.bind(Net.java:555) ~[?:?]
	at sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) ~[?:?]
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) ~[?:?]
	at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:141) ~[?:?]
	at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562) ~[?:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334) ~[?:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) ~[?:?]
	at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) ~[?:?]
	at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973) ~[?:?]
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260) ~[?:?]
	at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356) ~[?:?]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[?:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) ~[?:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) ~[?:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[?:?]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[2022-08-21T15:52:37,533][INFO ][o.e.n.Node               ] [es-node-3] stopping ...
[2022-08-21T15:52:37,588][INFO ][o.e.n.Node               ] [es-node-3] stopped
[2022-08-21T15:52:37,589][INFO ][o.e.n.Node               ] [es-node-3] closing ...
[2022-08-21T15:52:37,596][INFO ][o.e.n.Node               ] [es-node-3] closed
[2022-08-21T15:52:37,597][INFO ][o.e.x.m.p.NativeController] [es-node-3] Native controller process has stopped - no new native processes can be starte

当我们使用虚拟机克隆后,首先要修改一下配置信息。

1.修改主机名
vim /etc/hostname
2.修改UUID

首先通过uuidgen获取UUID

uuidgen

在这里插入图片描述
将获得UUID复制下来,修改**/etc/sysconfig/network-scripts/ifcfg-ens33中的UUID**属性值

vim /etc/sysconfig/network-scripts/ifcfg-ens33

在这里插入图片描述

3.修改静态IP
vim /etc/sysconfig/network-scripts/ifcfg-ens33

在这里插入图片描述

4.修改hosts文件
vim /etc/hosts

在这里插入图片描述
重启网络服务

systemctl restart network.service
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值