Skip to content

How to configure elasticsearch on aws instance?

I’m trying to configure Elasticsearch on the AWS server.
I only have SSH access and have installed Elasticsearch manually by CLI. now I have to configure Elasticsearch on the Magento admin side but it gives me
“class not found error”
this is the file setting

/etc/elasticsearch/elasticsearch.yml

enter image description here

and when I run this command I get this output

curl -X GET “localhost:9200”

{
  "name" : "some ip",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "some uid",
  "version" : {
    "number" : "some number",
    "build_flavor" : "default",
    "build_type" : "deb",
    
  },
  "tagline" : "You Know, for Search"
}

I have removed and changed some info for security reasons.

this is the error I’m getting on admin side
enter image description here