场景
win10 - linux子系统下启动es
异常
[2021-09-12T10:49:27,700][WARN ][o.e.b.BootstrapChecks ] [DESKTOP-BPG73KH] I/O exception while trying to read [/proc/sys/vm/max_map_count] java.nio.file.NoSuchFileException: /proc/sys/vm/max_map_count at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?] at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219) ~[?:?] at java.nio.file.Files.newByteChannel(Files.java:375) ~[?:?] at java.nio.file.Files.newByteChannel(Files.java:426) ~[?:?] at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420) ~[?:?] at java.nio.file.Files.newInputStream(Files.java:160) ~[?:?] at java.nio.file.Files.newBufferedReader(Files.java:2916) ~[?:?] at java.nio.file.Files.newBufferedReader(Files.java:2948) ~[?:?] at org.elasticsearch.bootstrap.BootstrapChecks$MaxMapCountCheck.getBufferedReader(BootstrapChecks.java:457) ~[elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks$MaxMapCountCheck.getMaxMapCount(BootstrapChecks.java:435) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks$MaxMapCountCheck.getMaxMapCount(BootstrapChecks.java:429) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks$MaxMapCountCheck.check(BootstrapChecks.java:412) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks.check(BootstrapChecks.java:145) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks.check(BootstrapChecks.java:101) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.BootstrapChecks.check(BootstrapChecks.java:83) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Bootstrap$5.validateNodeBeforeAcceptingRequests(Bootstrap.java:232) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.node.Node.start(Node.java:750) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:317) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:402) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) [elasticsearch-cli-7.7.0.jar:7.7.0] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) [elasticsearch-7.7.0.jar:7.7.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.7.0.jar:7.7.0] [2021-09-12T10:49:27,768][WARN ][o.e.b.BootstrapChecks ] [DESKTOP-BPG73KH] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
解决
elasticsearch.yml配置
network.host: 0.0.0.0
待解决,后续更新,探讨请加公众号
参考
https://opster.com/analysis/elasticsearch-i-o-exception-while-trying-to-read/