I have am attempting to enable the basic security as provided in the xpack.
I stopped ES across the cluster, then added the key xpack.security.enabled to each .yml. When I attempted to restart the services, elasticsearch failed to start. Not really sure why, seems like the yml isn't written correctly
at org.elasticsearch.common.settings.Settings$Builder.loadFromStream
Jan 03 08:37:28 elasticsearch[15435]: ... 8 more
Jan 03 08:37:28 elasticsearch[15435]: Caused by: while parsing a block mapping
Jan 03 08:37:28 elasticsearch[15435]: in 'reader', line 17, column 1:
Jan 03 08:37:28 elasticsearch[15435]: cluster.name: Elasticsearch_Test
Jan 03 08:37:28 elasticsearch[15435]: ^
Jan 03 08:37:28 elasticsearch[15435]: expected , but found BlockMappingStart
Jan 03 08:37:28 elasticsearch[15435]: in 'reader', line 90, column 2:
Jan 03 08:37:28 elasticsearch[15435]: xpack.security.neabled: true
Jan 03 08:37:28 elasticsearch[15435]: ^
Jan 03 08:37:28 elasticsearch[15435]: at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce
Jan 03 08:37:28 elasticsearch[15435]: at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:15
Jan 03 08:37:28 elasticsearch[15435]: at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:167
Jan 03 08:37:28 elasticsearch[15435]: at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLPa
Jan 03 08:37:28 elasticsearch[15435]: ... 13 more
Jan 03 08:37:28 polkitd[612]: Unregistered Authentication Agent for unix-process:15411:509125164 (system b
Jan 03 08:37:28 systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jan 03 08:37:28 systemd[1]: Failed to start Elasticsearch.
If I comment out the new key services start normally.