Error in java api network client connecting to elastic node

I am facing an issue with while trying to insert/ read from Elasticsearch 7.2 on single node with Spring boot Java transport client referring to the link https://dzone.com/articles/spring-boot-elasticsearch

"exception": "org.elasticsearch.client.transport.NoNodeAvailableException",
"message": "None of the configured nodes are available: [{#transport#-1}{kIFpk2WkSlCzeW2SYAs9Zg}

Settings settings = Settings.builder().put("cluster.name", "docker-cluster").build();
        client = new PreBuiltTransportClient(settings).
                addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(host), port));

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