org.elasticsearch.bootstrap.StartupError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • version 5.0 does not start
    via GitHub by shantanuo
    ,
  • GitHub comment 19987#239651675
    via GitHub by nik9000
    ,
  • Where to set elasticsearch jvm options
    via Stack Overflow by Tjorriemorrie
    ,
  • Figure out what's up with 5.0
    via GitHub by tianon
    ,
    • org.elasticsearch.bootstrap.StartupError: java.lang.RuntimeException: bootstrap checks failed initial heap size [268435456] not equal to maximum heap size [2147483648]; this can cause resize pauses and prevents mlockall from locking the entire heap please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:105) at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:96) at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:88) at org.elasticsearch.cli.Command.main(Command.java:54) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:75) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:68) Caused by: java.lang.RuntimeException: bootstrap checks failed initial heap size [268435456] not equal to maximum heap size [2147483648]; this can cause resize pauses and prevents mlockall from locking the entire heap 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:132) at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:85) at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:65) at org.elasticsearch.bootstrap.Bootstrap$5.validateNodeBeforeAcceptingRequests(Bootstrap.java:178) at org.elasticsearch.node.Node.start(Node.java:471) at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:193) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:257) at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:101) ... 6 more
    No Bugmate found.