cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Nuxeo ElasticSearch to use Amazon Elasticsearch

Karl_Wiens
Champ in-the-making
Champ in-the-making

From what In understand, connecting a Nuxeo server to AWS Elasticsearch should work. I've configured the Nuxeo server to use the AWS service, and it works for the most part. However, I can no longer get the Admin Analytics page to load.

I set two variables in the nuxeo.conf to make it work, which I found those under this bug report: https://jira.nuxeo.com/browse/NXP-23134

  • elasticsearch.addressList=[[VPC endpoint]]
  • elasticsearch.client=RestClient

This is literally the only documentation I have seen on this, and so have no idea if I have done things properly, or if it's incorrect.

The error I get is repeated stack traces for this:

2018-03-27 16:25:12,898 ERROR [https-jsse-nio-0.0.0.0-8443-exec-1] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] org.apache.http.conn.HttpHostConnectException: Connect to localhost:9200 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

Is there something I'm missing? Has anyone else tried this, or maybe there's a Nuxeo developer that can tell me if I'm on the right track?

Thanks!

3 REPLIES 3

Benjamin_JALON
Confirmed Champ
Confirmed Champ

I had the same error but on docker. I started a Nuxeo Server with following configuration in the docker-compose

ben_
Confirmed Champ
Confirmed Champ

Hi, The documentation to setup Elasticsearch is here: https://doc.nuxeo.com/nxdoc/elasticsearch-setup/#elasticsearch-supported-versions

You have different ways to connect to Elasticsearch but when you use AWS Elasticsearch only the Rest protocol is available.

The configuration of the 2 options are documented on the same page.

About the Admin Analytic page, it uses the Elasticsearch passthrough feature: https://doc.nuxeo.com/nxdoc/elasticsearch-passthrough/

This requires to configure the elasticsearch.httpReadOnly.baseUrl option to match your elasticsearch endpoint.

Note that you can find any nuxeo.conf option like elasticsearch.adminCenter.displayClusterInfo here: https://doc.nuxeo.com/nxdoc/configuration-parameters-index-nuxeoconf/

Thanks to Nuxeo doc days, I will try to improve the documentation so the Elasticsearch Setup page also covers the passthrough option.

Regards ben

Thank you ben

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.