Getting " failed to connect to node [{#transport#-1}{nE-IOaK-SLWdBf7f80Yo2g}{localhost}{127.0.0.1:9300}], ignoring..."

I get this error when I try to connect to the ElasticSearch v7.2. Here is my setting in elastic.yml file

cluster.name: eml
node.name: eml
path.logs: d:/temp/logs/elastic
http.port: 9200

Here is my application.properties settings:

spring.data.elasticsearch.cluster-name = eml
spring.data.elasticsearch.cluster-nodes=localhost:9300
elasticsearch.host = localhost
elasticsearch.port = 9200
elasticsearch.username=
elasticsearch.password=
elasticsearch.clustername = eml

I use Spring Boot to connect. but also use HighLevelClient API

Here is my code to configure HighLevel Client.

@Configuration
@Slf4j
public class ElasticHighLevelClientConfig {

@Value("${elasticsearch.host}")
private String host;

@Value("${elasticsearch.port}")
private int port;

@Value("${elasticsearch.username}")
private String userName;

@Value("${elasticsearch.password}")
private String password;

@Bean(name = "myEsClient", destroyMethod = "close")
public RestHighLevelClient myRestClient() {
	final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
	credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(userName, password));
	RestClientBuilder builder = RestClient.builder(new HttpHost(host, port)).setHttpClientConfigCallback(
			httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));
	RestHighLevelClient client = new RestHighLevelClient(builder);
	return client;

}

}