Hi All,
I have installed Elasticsearch 7.2 on CentOS 7. After installation without making any changes to the yml file, I was able to access Elasticsearch using the curl command
curl http://localhost:9200/_cluster/health?pretty
Once I got a successful response, I modified network.host: IP_ADDRESS (IP address of the machine).
Once making the changes, I tried starting the Elasticsearch but it fails to start.
Noticing the following in the log file.
> [2019-10-31T14:21:01,725][INFO ][o.e.x.s.a.s.FileRolesStore] [master-node] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2019-10-31T14:21:02,271][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [master-node] [controller/30093] [Main.cc@110] controller (64 bit): Version 7.2.0 (Build 65aefcbfce449b) Copyright (c) 2019 Elasticsearch BV
[2019-10-31T14:21:02,745][DEBUG][o.e.a.ActionModule ] [master-node] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-10-31T14:21:03,021][INFO ][o.e.d.DiscoveryModule ] [master-node] using discovery type [zen] and seed hosts providers [settings]
[2019-10-31T14:21:03,760][INFO ][o.e.n.Node ] [master-node] initialized
[2019-10-31T14:21:03,761][INFO ][o.e.n.Node ] [master-node] starting ...
[2019-10-31T14:21:03,886][INFO ][o.e.t.TransportService ] [master-node] publish_address {10.202.10.xxx:9300}, bound_addresses {10.202.10.xxx:9300}
[2019-10-31T14:21:03,893][INFO ][o.e.b.BootstrapChecks ] [master-node] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-10-31T14:21:03,913][ERROR][o.e.b.Bootstrap ] [master-node] node validation exception
[1] bootstrap checks failed
[1]: initial heap size [4294967296] not equal to maximum heap size [6442450944]; this can cause resize pauses and prevents mlockall from locking the entire heap
[2019-10-31T14:21:03,916][INFO ][o.e.n.Node ] [master-node] stopping ...
[2019-10-31T14:21:03,931][INFO ][o.e.n.Node ] [master-node] stopped
[2019-10-31T14:21:03,932][INFO ][o.e.n.Node ] [master-node] closing ...
[2019-10-31T14:21:03,942][INFO ][o.e.n.Node ] [master-node] closed
[2019-10-31T14:21:03,944][INFO ][o.e.x.m.p.NativeController] [master-node] Native controller process has stopped - no new native processes can be started
Also, tried changing network.host from IP Address to 0.0.0.0. But no luck.
Please help me out on this.