ES: 7.10.2-SNAPSHOT with basic/trial license.
I want to run elasticsearch with xpack enabled as basic authentication.
xpack.security.enabled: true
xpack.security.authc.realms:
native.realm1:
order: 0
running into some error,
{"type": "server", "timestamp": "2020-12-30T19:24:16,441Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "initialized" }
{"type": "server", "timestamp": "2020-12-30T19:24:16,441Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "starting ..." }
{"type": "server", "timestamp": "2020-12-30T19:24:16,655Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "publish_address {10.2.0.211:9300}, bound_addresses {0.0.0.0:9300}" }
{"type": "server", "timestamp": "2020-12-30T19:24:17,049Z", "level": "WARN", "component": "o.e.t.TcpTransport", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "exception caught on transport layer [Netty4TcpChannel{localAddress=/10.2.0.211:9300, remoteAddress=/10.2.0.168:48996}], closing connection",
"stacktrace": ["java.lang.IllegalStateException: transport not ready yet to handle incoming requests",
"at org.elasticsearch.transport.TransportService.onRequestReceived(TransportService.java:952) ~[elasticsearch-7.10.2-SNAPSHOT.jar:7.10.2-SNAPSHOT]"
{"type": "server", "timestamp": "2020-12-30T19:24:17,066Z", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks" }
{"type": "server", "timestamp": "2020-12-30T19:24:17,327Z", "level": "INFO", "component": "o.e.c.c.Coordinator", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "setting initial configuration to VotingConfiguration{RfG3uLsUSze64mBdYnhG9Q,tElKUqcfTmWIvSg4wqVoSg,{bootstrap-placeholder}-elasticsearch-master-2}" }
{"type": "server", "timestamp": "2020-12-30T19:24:17,750Z", "level": "INFO", "component": "o.e.c.s.MasterService", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "elected-as-master ([2] nodes joined)[{elasticsearch-master-0}{RfG3uLsUSze64mBdYnhG9Q}{n0YikIJ3TTKQXgMOzr9qSw}{10.2.0.211}{10.2.0.211:9300}{cdhilmrstw}{ml.machine_memory=2147483648, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, {elasticsearch-master-1}{tElKUqcfTmWIvSg4wqVoSg}{RDZ4JSeYT4-ugjkRY5LyNA}{10.2.0.168}{10.2.0.168:9300}{cdhilmrstw}{ml.machine_memory=2147483648, ml.max_open_jobs=20, xpack.installed=true, transform.node=true} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{elasticsearch-master-0}{RfG3uLsUSze64mBdYnhG9Q}{n0YikIJ3TTKQXgMOzr9qSw}{10.2.0.211}{10.2.0.211:9300}{cdhilmrstw}{ml.machine_memory=2147483648, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}, added {{elasticsearch-master-1}{tElKUqcfTmWIvSg4wqVoSg}{RDZ4JSeYT4-ugjkRY5LyNA}{10.2.0.168}{10.2.0.168:9300}{cdhilmrstw}{ml.machine_memory=2147483648, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}" }
{"type": "server", "timestamp": "2020-12-30T19:24:17,761Z", "level": "WARN", "component": "o.e.c.s.MasterService", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "failing [elected-as-master ([2] nodes joined)[{elasticsearch-master-0}{RfG3uLsUSze64mBdYnhG9Q}{n0YikIJ3TTKQXgMOzr9qSw}{10.2.0.211}{10.2.0.211:9300}{cdhilmrstw}{ml.machine_memory=2147483648, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, {elasticsearch-master-1}{tElKUqcfTmWIvSg4wqVoSg}{RDZ4JSeYT4-ugjkRY5LyNA}{10.2.0.168}{10.2.0.168:9300}{cdhilmrstw}{ml.machine_memory=2147483648, ml.max_open_jobs=20, xpack.installed=true, transform.node=true} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_]]: failed to commit cluster state version [1]",
"stacktrace": ["org.elasticsearch.cluster.coordination.FailedToCommitClusterStateException: node is no longer master for term 1 while handling publication",
"at org.elasticsearch.cluster.coordination.Coordinator.publish(Coordinator.java:1083) ~[elasticsearch-7.10.2-SNAPSHOT.jar:7.10.2-SNAPSHOT]"
{"type": "server", "timestamp": "2020-12-30T19:24:17,774Z", "level": "INFO", "component": "o.e.c.c.JoinHelper", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "failed to join {elasticsearch-master-0}{RfG3uLsUSze64mBdYnhG9Q}{n0YikIJ3TTKQXgMOzr9qSw}{10.2.0.211}{10.2.0.211:9300}{cdhilmrstw}{ml.machine_memory=2147483648, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} with JoinRequest{sourceNode={elasticsearch-master-0}{RfG3uLsUSze64mBdYnhG9Q}
What am I missing?
Thanks.