# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: test-application
#
# ------------------------------------ Node ------------------------------------
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 0.0.0.0
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
discovery.seed_hosts: ["xx.yyy.zz.aaa"]
discovery.type: singe-node
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
# ---------------------------------- X-Pack Security -----------------------------------
xpack.security.enabled: true
My cluster was working, however I decided to enable x-pack security for TLS encrpytion. To do so, I am following this page here: Set up minimal security for Elasticsearch | Elasticsearch Guide [7.16] | Elastic
However, when I enable x-pack and set discovery.type to single-node, I receive an error.
[2021-12-16T12:38:01,015][ERROR][o.e.b.Bootstrap ] [node-1] Exception
java.lang.IllegalArgumentException: Unknown discovery type [singe-node]
at org.elasticsearch.discovery.DiscoveryModule.<init>(DiscoveryModule.java:209) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.node.Node.<init>(Node.java:887) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) [elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) [elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) [elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) [elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) [elasticsearch-cli-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.Command.main(Command.java:77) [elasticsearch-cli-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) [elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) [elasticsearch-7.16.0.jar:7.16.0]
[2021-12-16T12:38:01,019][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: Unknown discovery type [singe-node]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[elasticsearch-cli-7.16.0.jar:7.16.0]
at org.elasticsearch.cli.Command.main(Command.java:77) ~[elasticsearch-cli-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[elasticsearch-7.16.0.jar:7.16.0]
Caused by: java.lang.IllegalArgumentException: Unknown discovery type [singe-node]
at org.elasticsearch.discovery.DiscoveryModule.<init>(DiscoveryModule.java:209) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.node.Node.<init>(Node.java:887) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[elasticsearch-7.16.0.jar:7.16.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[elasticsearch-7.16.0.jar:7.16.0]
... 6 more