Unable to connect Elasticsearch node setup on same or localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 09:46 AM
Failed to connect to elasticsearch, check addressList and clusterName: None of the configured nodes are available: [{#transport#-1}{10.240.206.26}{10.240.206.26:9200}]
java.lang.RuntimeException: Failed to connect to elasticsearch, check addressList and clusterName: None of the configured nodes are available: [{#transport#-1}{10.240.206.26}{10.240.206.26:9200}]
at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.checkClusterHealth(ElasticSearchAdminImpl.java:254)
at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.connect(ElasticSearchAdminImpl.java:137)
at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.
All required configuration are done in nuxeo.conf and Elasticsearch.yml
##-----------------------------------------------------------------------------
Elasticsearch configuration
##-----------------------------------------------------------------------------
Enable or disable Elasticsearch integration, default is true.
elasticsearch.enabled=true
Remote elasticsearch cluster to join, comma separated list of nodes,
if empty use an embedded server, not for production !
elasticsearch.addressList=localhost:9200
Remote elasticsearch cluster name to join.
elasticsearch.clusterName=nuxeoCluster1
Name of the Elasticsearch index for the default document repository
elasticsearch.indexName=nuxeo
Number of replicas (not for embedded mode)
elasticsearch.indexNumberOfReplicas=0
Display Elasticsearch cluster and nodes information in admin center
default is false (always true for embedded mode)
elasticsearch.adminCenter.displayClusterInfo=true
Embedded elasticsearch server accept HTTP request on port 9200.
Only requests from local machine are accepted.
elasticsearch.httpEnabled=true
Comma separated list of CorePageProvider to supersede by Elasticsearch.
default is default_search,DEFAULT_DOCUMENT_SUGGESTION.
#elasticsearch.override.pageproviders=default_search,document_content,section_content,document_content,tree_children,default_document_suggestion,simple_search,advanced_search,nxql_search,DEFAULT_DOCUMENT_SUGGESTION
Enable or disable Elasticsearch as a backend for audit logs.
Default is false in common-base template for upgrade purposes, to not break an existing instance.
Set to true for activation on a new instance.
audit.elasticsearch.enabled=true
Name of the Elasticsearch index for audit logs
audit.elasticsearch.indexName=${elasticsearch.indexName}-audit
Name of the Elasticsearch index for the uid sequencer
seqgen.elasticsearch.indexName=${elasticsearch.indexName}-uidgen
Elasticsearch.yml as follows
cluster.name: nuxeoCluster1 node.name: nuxeo transport.host: 10.240.206.26 transport.tcp.port: 9300 http.port: 9200 network.host: 0.0.0.0
