Please look at my /etc/Elasticsearch/Elasticsearch.yml file and see if there is anything I need to change.:
sudo cat /etc/Elasticsearch/Elasticsearch.yml
======================== Elasticsearch Configuration =========================
NOTE: Elasticsearch comes with reasonable defaults for most settings.
Before you set out to tweak and tune the configuration, make sure you
understand what are you trying to accomplish and the consequences.
The primary way of configuring a node is via this file. This template lists
the most important settings you may want to configure for a production cluster.
Please consult the documentation for further information on configuration options:
---------------------------------- Cluster -----------------------------------
Use a descriptive name for your cluster:
#cluster.name: my-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: localhost
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: ["host1", "host2"]
Bootstrap the cluster using an initial set of master-eligible nodes:
#cluster.initial_master_nodes: ["node-1", "node-2"]
For more information, consult the discovery and cluster formation module documentation.
---------------------------------- Various -----------------------------------
Require explicit names when deleting indices:
#action.destructive_requires_name: true
cluster.name: Elasticsearch
node.name: eooubuserver
eugene@eooubuserver:~$
Also , below is what I have in the tail end of the file /var/log/elasticsearch/elasticsearch.log:
sudo cat /var/log/elasticsearch/elasticsearch.log | tail
[2021-10-06T11:50:31,206][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-shutdown]
[2021-10-06T11:50:31,220][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-sql]
[2021-10-06T11:50:31,221][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-stack]
[2021-10-06T11:50:31,225][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-text-structure]
[2021-10-06T11:50:31,226][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-voting-only-node]
[2021-10-06T11:50:31,226][INFO ][o.e.p.PluginsService ] [eooubuserver] loaded module [x-pack-watcher]
[2021-10-06T11:50:31,247][INFO ][o.e.p.PluginsService ] [eooubuserver] no plugins loaded
[2021-10-06T11:50:32,057][INFO ][o.e.e.NodeEnvironment ] [eooubuserver] using [1] data paths, mounts [[/ (/dev/sda2)]], net usable_space [183gb], net total_space [219gb], types [ext4]
[2021-10-06T11:50:32,067][INFO ][o.e.e.NodeEnvironment ] [eooubuserver] heap size [1.4gb], compressed ordinary object pointers [true]
[2021-10-06T11:50:32,417][INFO ][o.e.n.Node ] [eooubuserver] node name [eooubuserver], node ID [VjrkdT_KQuOXoARgpGfzLg], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
I still continue to get
"connection refused" :
~$ curl -X GET "http://localhost:9200"
curl: (7) Failed to connect to localhost port 9200: Connection refused
even with 'sudo', I get the same result.