2016-07-15 45 views
0

我已經下載ES並將網絡主機的yml文件配置爲0.0.0.0。然後當我用bin/elasticsearch啓動它時,它給了我以下錯誤。Elasticsearch網絡主機不能設置?

172.16.1.237:9300}, bound_addresses {[::]:9300} 
Exception in thread "main" 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 
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] 
please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster 
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 
     at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:125) 
     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:373) 
     at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:193) 
     at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:252) 
     at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:96) 
     at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:91) 
     at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) 
     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:70) 
     at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:63) 
Refer to the log for complete error details. 

會是什麼問題?

+0

什麼是你有羣集設置和你的服務器的硬件配置是什麼?請發佈您的配置文件。 –

回答

0

重命名elasticsearch.yml文件elasticsearch.json config文件夾中,並添加:

{ 
    "network" : { 
     "host" : "0.0.0.0" 
    } 
} 

或嘗試啓動elasticsearch服務器使用此命令

elasticsearch -Des.network.host=0.0.0.0 
相關問題