I added x-pack via elasticsearch-plugin. Now I have the following error indicating something wrong with the bootstrap. I also commented out the bootstrap.mlockall settings in elasticsearch.yml,but still got the same error. Any idea?
[2016-11-01T15:09:10,587][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalArgumentException: unknown setting [bootstrap.mlockall] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:271) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:239) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:138) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.node.Node.(Node.java:311) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.node.Node.(Node.java:220) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:191) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:191) ~[elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:112) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:103) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.cli.Command.main(Command.java:62) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) [elasticsearch-5.0.0.jar:5.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73) [elasticsearch-5.0.0.jar:5.0.0]
After commenting out bootstrap.mlockall: xxx, and service stop on all the nodes, I restarted the elastic search. Now I got a different error message.
This time, it seems during the bootstrapping, it has node validation exception.
Thanks so much! Yes, the max file descriptors is set too low. I fixed that. Now it complained a different error. I remembered that when installing the x-pack plugin, it complained about "plugin requires additional permissions" and list a few jdk related permissions. Do those matter?
[2016-11-02T13:02:21,611][INFO ][o.e.n.Node ] [xlab-node9] initialized
[2016-11-02T13:02:21,611][INFO ][o.e.n.Node ] [xlab-node9] starting ...
[2016-11-02T13:02:21,825][INFO ][o.e.t.TransportService ] [xlab-node9] publish_address {172.19.62.4:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}, {172.19.62.4:9300}
[2016-11-02T13:02:21,829][INFO ][o.e.b.BootstrapCheck ] [xlab-node9] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2016-11-02T13:02:31,736][INFO ][o.e.x.m.e.Exporters ] [xlab-node9] skipping exporter [default_local] as it isn't ready yet
[2016-11-02T13:02:31,737][ERROR][o.e.x.m.AgentService ] [xlab-node9] exception when exporting documents
org.elasticsearch.xpack.monitoring.exporter.ExportException: exporters are either not ready or faulty
at org.elasticsearch.xpack.monitoring.exporter.Exporters.export(Exporters.java:188) ~[x-pack-5.0.0.jar:5.0.0]
at org.elasticsearch.xpack.monitoring.AgentService$ExportingWorker.run(AgentService.java:208) [x-pack-5.0.0.jar:5.0.0]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Another thing I found is that elasticsearch is started on just one node, even it keeps throwing out exceptions. But it couldn't discover other nodes specified in the elasticsearch.yml.
discovery.zen.ping.unicast.hosts: ["172.19.62.4", "172.19.62.6", "172.19.62.8"]
When I tried to access 172.19.62.4:9200, it asked for username,password. Is there a default credential for that?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.