Unable to connect Elasticsearch node setup on same or localhost

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.<init>(ElasticSearchAdminImpl.java:121)
at org.nuxeo.elasticsearch.ElasticSearchComponent.start(ElasticSearchComponent.java:197)
at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:341)
at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:571)
at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:629)
at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)
at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)
at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:232)
at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:226)
at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125)
at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:120)
at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

2017-09-25 18:51:07,417 INFO [localhost-startStop-1] [org.nuxeo.elasticsearch.audit.ESAuditBackend] Activate Elasticsearch backend for Audit 2017-09-25 18:51:07,417 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.platform.audit.service.NXAuditEventsService notification of application started failed: null java.lang.NullPointerException

at org.nuxeo.elasticsearch.ElasticSearchComponent.getClient(ElasticSearchComponent.java:265)

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

0 votes

0 answers

4314 views

ANSWER