Elasticseach unable to start after "elasticsearch.yml file " configuration

I am have below error after configuring "elasticsearch.yml" file. Version 7.7.1

I have deleted the node file from data directory yet still encountering same error

this is below logs.kindly advice

[elastic@elk1 elasticsearch] ./bin/elasticsearch [2020-06-21T07:45:32,025][INFO ][o.e.e.NodeEnvironment ] [elk1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [19.9gb], net total_space [27.6gb], types [rootfs] [2020-06-21T07:45:32,030][INFO ][o.e.e.NodeEnvironment ] [elk1] heap size [1gb], compressed ordinary object pointers [true] [2020-06-21T07:45:32,223][INFO ][o.e.n.Node ] [elk1] node name [elk1], node ID [IVVthYClTICI1gCbVOgQuw], cluster name [elasticsearch] [2020-06-21T07:45:32,226][INFO ][o.e.n.Node ] [elk1] version[7.7.1], pid[12179], build[default/tar/ad56dce891c901a492bb1ee393f12dfff473a423/2020-05-28T16:30:01.040088Z], OS[Linux/3.10.0-957.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/14.0.1/14.0.1+7] [2020-06-21T07:45:32,226][INFO ][o.e.n.Node ] [elk1] JVM home [/home/elastic/elasticsearch/jdk] [2020-06-21T07:45:32,227][INFO ][o.e.n.Node ] [elk1] JVM arguments [-Xshare:auto, -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, -XX:+ShowCodeDetailsInExceptionMessages, -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,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/elasticsearch-1864090304837260103, -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=/home/elastic/elasticsearch, -Des.path.conf=/home/elastic/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true] ^C[elastic@elk1 elasticsearch] velasticsearch/h/config/elasticsearch.yml
[elastic@elk1 elasticsearch] cd [elastic@elk1 ~] vi elasticsearch/config/elasticsearch.yml
[elastic@elk1 ~] [elastic@elk1 ~]
[elastic@elk1 ~] [elastic@elk1 ~]
[elastic@elk1 ~] [elastic@elk1 ~] cd elasticsearch/
[elastic@elk1 elasticsearch]$ ./bin/elasticsearch
[2020-06-21T07:50:32,641][INFO ][o.e.e.NodeEnvironment ] [elk1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [19.9gb], net total_space [27.6gb], types [rootfs]
[2020-06-21T07:50:32,645][INFO ][o.e.e.NodeEnvironment ] [elk1] heap size [1gb], compressed ordinary object pointers [true]
[2020-06-21T07:50:32,808][INFO ][o.e.n.Node ] [elk1] node name [elk1], node ID [IVVthYClTICI1gCbVOgQuw], cluster name [elasticsearch]
[2020-06-21T07:50:32,811][INFO ][o.e.n.Node ] [elk1] version[7.7.1], pid[12519], build[default/tar/ad56dce891c901a492bb1ee393f12dfff473a423/2020-05-28T16:30:01.040088Z], OS[Linux/3.10.0-957.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/14.0.1/14.0.1+7]
[2020-06-21T07:50:32,812][INFO ][o.e.n.Node ] [elk1] JVM home [/home/elastic/elasticsearch/jdk]
[2020-06-21T07:50:32,812][INFO ][o.e.n.Node ] [elk1] JVM arguments [-Xshare:auto, -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, -XX:+ShowCodeDetailsInExceptionMessages, -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,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/elasticsearch-2379104712841503597, -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=/home/elastic/elasticsearch, -Des.path.conf=/home/elastic/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2020-06-21T07:50:34,958][INFO ][o.e.p.PluginsService ] [elk1] loaded module [aggs-matrix-stats]
[2020-06-21T07:50:34,958][INFO ][o.e.p.PluginsService ] [elk1] loaded module [analysis-common]
[2020-06-21T07:50:34,958][INFO ][o.e.p.PluginsService ] [elk1] loaded module [constant-keyword]
[2020-06-21T07:50:34,959][INFO ][o.e.p.PluginsService ] [elk1] loaded module [flattened]
[2020-06-21T07:50:34,959][INFO ][o.e.p.PluginsService ] [elk1] loaded module [frozen-indices]
[2020-06-21T07:50:34,959][INFO ][o.e.p.PluginsService ] [elk1] loaded module [ingest-common]
[2020-06-21T07:50:34,959][INFO ][o.e.p.PluginsService ] [elk1] loaded module [ingest-geoip]
[2020-06-21T07:50:34,960][INFO ][o.e.p.PluginsService ] [elk1] loaded module [ingest-user-agent]
[2020-06-21T07:50:34,960][INFO ][o.e.p.PluginsService ] [elk1] loaded module [lang-expression]
[2020-06-21T07:50:34,961][INFO ][o.e.p.PluginsService ] [elk1] loaded module [lang-mustache]
[2020-06-21T07:50:34,961][INFO ][o.e.p.PluginsService ] [elk1] loaded module [lang-painless]
[2020-06-21T07:50:34,961][INFO ][o.e.p.PluginsService ] [elk1] loaded module [mapper-extras]
[2020-06-21T07:50:34,961][INFO ][o.e.p.PluginsService ] [elk1] loaded module [parent-join]
[2020-06-21T07:50:34,962][INFO ][o.e.p.PluginsService ] [elk1] loaded module [percolator]
[2020-06-21T07:50:34,962][INFO ][o.e.p.PluginsService ] [elk1] loaded module [rank-eval]
[2020-06-21T07:50:34,962][INFO ][o.e.p.PluginsService ] [elk1] loaded module [reindex]
[2020-06-21T07:50:34,963][INFO ][o.e.p.PluginsService ] [elk1] loaded module [repository-url]
[2020-06-21T07:50:34,963][INFO ][o.e.p.PluginsService ] [elk1] loaded module [search-business-rules]
[2020-06-21T07:50:34,963][INFO ][o.e.p.PluginsService ] [elk1] loaded module [spatial]
[2020-06-21T07:50:34,963][INFO ][o.e.p.PluginsService ] [elk1] loaded module [tasks]
[2020-06-21T07:50:34,964][INFO ][o.e.p.PluginsService ] [elk1] loaded module [transform]
[2020-06-21T07:50:34,964][INFO ][o.e.p.PluginsService ] [elk1] loaded module [transport-netty4]
[2020-06-21T07:50:34,964][INFO ][o.e.p.PluginsService ] [elk1] loaded module [vectors]
[2020-06-21T07:50:34,964][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-analytics]
[2020-06-21T07:50:34,965][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-async-search]
[2020-06-21T07:50:34,965][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-autoscaling]
[2020-06-21T07:50:34,965][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-ccr]
[2020-06-21T07:50:34,966][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-core]
[2020-06-21T07:50:34,966][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-deprecation]
[2020-06-21T07:50:34,966][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-enrich]
[2020-06-21T07:50:34,966][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-eql]
[2020-06-21T07:50:34,967][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-graph]
[2020-06-21T07:50:34,967][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-identity-provider]
[2020-06-21T07:50:34,967][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-ilm]
[2020-06-21T07:50:34,968][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-logstash]
[2020-06-21T07:50:34,968][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-ml]
[2020-06-21T07:50:34,968][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-monitoring]
[2020-06-21T07:50:34,968][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-ql]
[2020-06-21T07:50:34,968][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-rollup]
[2020-06-21T07:50:34,969][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-security]
[2020-06-21T07:50:34,969][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-sql]
[2020-06-21T07:50:34,969][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-voting-only-node]
[2020-06-21T07:50:34,969][INFO ][o.e.p.PluginsService ] [elk1] loaded module [x-pack-watcher]
[2020-06-21T07:50:34,970][INFO ][o.e.p.PluginsService ] [elk1] no plugins loaded
[2020-06-21T07:50:39,435][INFO ][o.e.x.s.a.s.FileRolesStore] [elk1] parsed [0] roles from file [/home/elastic/elasticsearch/config/roles.yml]
[2020-06-21T07:50:40,002][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [elk1] [controller/12713] [Main.cc@110] controller (64 bit): Version 7.7.1 (Build e5ebdcb44d66cd) Copyright (c) 2020 Elasticsearch BV
[2020-06-21T07:50:40,830][INFO ][o.e.d.DiscoveryModule ] [elk1] using discovery type [zen] and seed hosts providers [settings]
[2020-06-21T07:50:41,901][INFO ][o.e.n.Node ] [elk1] initialized
[2020-06-21T07:50:41,902][INFO ][o.e.n.Node ] [elk1] starting ...
[2020-06-21T07:50:42,071][INFO ][o.e.t.TransportService ] [elk1] publish_address {192.168.17.164:9300}, bound_addresses {192.168.17.164:9300}
[2020-06-21T07:50:42,412][INFO ][o.e.b.BootstrapChecks ] [elk1] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /home/elastic/elasticsearch/logs/elasticsearch.log
[2020-06-21T07:50:42,463][INFO ][o.e.n.Node ] [elk1] stopping ...
[2020-06-21T07:50:42,488][INFO ][o.e.n.Node ] [elk1] stopped
[2020-06-21T07:50:42,489][INFO ][o.e.n.Node ] [elk1] closing ...
[2020-06-21T07:50:42,530][INFO ][o.e.n.Node ] [elk1] closed

Please read https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html

Also please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

Thanks dadoonet, I will check and revert

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.