Error when trying to insert into the elastic index from java program

hello,

I am getting the error bellow when trying to insert new rows into the elastic index, from a java program, the error is random:

org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{X-6AmoEXTTe3AA0mZlVwbw}{10.100.115.XXX}{10.100.115.XXX:9300}]
        at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:240) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:44) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:380) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:402) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:390) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:34) ~[elasticsearch-7.13.2.jar!/:7.13.2]
        at ma.eai.logloading.DbLoader.loadMapProxy(DbLoader.java:720) ~[classes!/:13.0]
        at ma.eai.logloading.FileLoader.loadProxyFileToDb(FileLoader.java:366) [classes!/:13.0]
        at ma.eai.logloading.FileLoader.loadFileToDb(FileLoader.java:49) [classes!/:13.0]
        at ma.eai.elastic.standaloneelastic.LogLoaderCommandLineRunner.run(LogLoaderCommandLineRunner.java:289) [classes!/:13.0]
        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:781) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
        at ma.eai.elastic.standaloneelastic.StandaloneElasticExampleApplication.main(StandaloneElasticExampleApplication.java:12) [classes!/:13.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) ~[na:1.8.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[na:1.8.0]
        at java.lang.reflect.Method.invoke(Method.java:508) ~[na:1.8.0]
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [standalone-elastic-12.0.jar:13.0]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [standalone-elastic-12.0.jar:13.0]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [standalone-elastic-12.0.jar:13.0]
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [standalone-elastic-12.0.jar:13.0]

the elastic version used is 7.8.0 on a redhat 8.1

here is my elastic config yml:

cluster.name: myapplikibana
node.name: node-1
path.data: /elastic/data
path.logs: /elastic/logs
transport.tcp.port: 9300
http.port: 9200
network.host: 10.100.115.XXX
http.bind_host: 0.0.0.0
http.publish_host: 10.100.115.XXX
transport.host: 0.0.0.0
cluster.initial_master_nodes: ["node-1"]
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length

thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.