After googling I tried making some changes in the elasticsearch.yml file like changing network.host: 0.0.0.0 / 127.0.0.1, http.port: 9200, network.bind_host: 0, making the min and max heap size to be the same and also tried changing the discovery.zen.minimum_master_nodes to 2,3, etc. But all in vain. I am getting the following exception, please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster.
The complete log is as follows:-
[2016-06-10 11:43:19,846][INFO ][node ] [X-X] version[5.0.0-alpha2], pid[5504], build[e3126df/2016-04-26T12:08:58.960Z]
[2016-06-10 11:43:19,849][INFO ][node ] [X-X] initializing ...
[2016-06-10 11:43:21,728][INFO ][plugins ] [X-X] modules [lang-mustache, lang-painless, ingest-grok, reindex, lang-expression, lang-groovy], plugins []
[2016-06-10 11:43:21,826][INFO ][env ] [X-X] using [1] data paths, mounts [[System (C:)]], net usable_space [210.1gb], net total_space [299.5gb], spins? [unknown], types [NTFS]
[2016-06-10 11:43:21,828][INFO ][env ] [X-X] heap size [247.5mb], compressed ordinary object pointers [true]
[2016-06-10 11:43:33,436][INFO ][node ] [X-X] initialized
[2016-06-10 11:43:33,437][INFO ][node ] [X-X] starting ...
[2016-06-10 11:43:33,703][INFO ][transport ] [X-X] publish_address {X.X.X.X:9300}, bound_addresses {[::]:9300}
[2016-06-10 11:43:33,718][ERROR][bootstrap ] [X-X] Exception
java.lang.RuntimeException: bootstrap checks failed
please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster.
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:93)
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:66)
at org.elasticsearch.bootstrap.Bootstrap$5.validateNodeBeforeAcceptingRequests(Bootstrap.java:191)
at org.elasticsearch.node.Node.start(Node.java:323)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:206)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:269)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:111)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:106)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:91)
at org.elasticsearch.cli.Command.main(Command.java:53)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:74)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)
Suppressed: java.lang.IllegalStateException: please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster.
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:94)
... 11 more
[2016-06-10 11:43:33,739][INFO ][node ] [X-X] stopping ...
[2016-06-10 11:43:33,778][INFO ][node ] [X-X] stopped
[2016-06-10 11:43:33,779][INFO ][node ] [X-X] closing ...
[2016-06-10 11:43:33,823][INFO ][node ] [X-X] closed